Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbNTupleConversionRules_Default< long > Struct Template Reference

The specialization for platform dependent "long" type of C++. More...

#include <CdbBdbNTupleConversionRules.hh>

List of all members.

Public Types

typedef long Transient
typedef long long Persistent

Static Public Member Functions

const Persistent to_persistent (const Transient &value)
const Transient to_transient (const Persistent &value)


Detailed Description

template<>
struct CdbBdbNTupleConversionRules_Default< long >

The specialization for platform dependent "long" type of C++.

Accordint to Objectivity/DDL documentation the 'long' type is 32 bit integer on all platforms except DEC Alpha. And it's 64 bit integer on DEC Alpha.

In GNU C++ compiler (at least before and including 2.95.3) the 'long' is typedef-ed as 'long int', which would confuse DDL compiler. The DDL won't be able to map this type any any of known elementary persistent types of predefined width.

SOLUTION: Map C++ 'long' into DDL 'long long', which is known to DDL as 64 bit type.

Definition at line 66 of file CdbBdbNTupleConversionRules.hh.


Member Typedef Documentation

typedef long long CdbBdbNTupleConversionRules_Default< long >::Persistent
 

Definition at line 69 of file CdbBdbNTupleConversionRules.hh.

typedef long CdbBdbNTupleConversionRules_Default< long >::Transient
 

Definition at line 68 of file CdbBdbNTupleConversionRules.hh.


Member Function Documentation

const Persistent CdbBdbNTupleConversionRules_Default< long >::to_persistent const Transient   value [inline, static]
 

Definition at line 71 of file CdbBdbNTupleConversionRules.hh.

const Transient CdbBdbNTupleConversionRules_Default< long >::to_transient const Persistent   value [inline, static]
 

Definition at line 72 of file CdbBdbNTupleConversionRules.hh.


The documentation for this struct was generated from the following file:
Generated on Mon Dec 5 18:22:17 2005 for CDB by doxygen1.3-rc3