![]() |
ATLAS Offline Software
|
#include <StorageSvc/DbColumn.h>
Public Types | |
| enum | Options { PRIMARY_KEY = 1 << 0, NOT_NULL = 1 << 1, UNIQUE = 1 << 2, CLUSTERED = 1 << 3, NONCLUSTERED = 1 << 4 } |
| enum | Type { UNKNOWN = 0, UCHAR, USHORT, UINT, ULONG, CHAR, SHORT, INT, LONG, BOOL, FLOAT, DOUBLE, STRING, NTCHAR, LONG_STRING, LONG_NTCHAR, OBJECT_REF, CONTAINED_REF, TOKEN, BLOB, ANY, POINTER, LONGLONG, ULONGLONG, NATIVE_TYPES = 1000 } |
Public Member Functions | |
| DbColumn (const DbColumn &)=default | |
| Default copy constructor. More... | |
| DbColumn & | operator= (const DbColumn &)=default |
| DbColumn (const std::string &column_name, int object_type, int object_offset, int object_size, int number_of_elements=1, int opt=0) | |
| Initializing constructor for fixed size arrays. More... | |
| DbColumn (const std::string &nam, const std::string &clazz, int object_type, int object_offset) | |
| Initializing constructor for composite columns. More... | |
| virtual | ~DbColumn () |
| Standard destructor. More... | |
| bool | isValid () const |
| Is it a valid (known) data type ? More... | |
| const std::string & | name () const |
| Access to column name. More... | |
| const std::string & | typeName () const |
| Access to OS independent type name. More... | |
| int | options () const |
| Access to options. More... | |
| int | offset () const |
| Offset of column from this pointer. More... | |
| int | size () const |
| Size of a single object within the column. More... | |
| int | nElement () const |
| Number of elements. More... | |
| int | typeID () const |
| Integer type identifier. More... | |
| const std::string | toString () const |
| Create string representation of the type information object. More... | |
| DbStatus | fromString (const std::string &string_rep) |
| Load type information object from string representation. More... | |
Static Public Member Functions | |
| static const std::string | typeName (int typ) |
| Access type name by type identifier from RTTI. More... | |
Private Member Functions | |
| DbColumn () | |
| Cache class information (if available) Do not allow unwanted instantiations by users. More... | |
Private Attributes | |
| std::string | m_typeName |
| OS independent type name. More... | |
| std::string | m_colName |
| Column name. More... | |
| int | m_offset |
| Offset from object pointer. More... | |
| int | m_nElem |
| For fixed size arrays: number of object elements. More... | |
| int | m_opts |
| Column options. More... | |
| int | m_size |
| Object size. More... | |
| int | m_type |
| Storage Type identifier. More... | |
Friends | |
| class | DbTypeInfo |
Description: Definition of the generic column in a (relational) Database.
Definition at line 35 of file DbColumn.h.
| Enumerator | |
|---|---|
| PRIMARY_KEY | |
| NOT_NULL | |
| UNIQUE | |
| CLUSTERED | |
| NONCLUSTERED | |
Definition at line 37 of file DbColumn.h.
| enum pool::DbColumn::Type |
| Enumerator | |
|---|---|
| UNKNOWN | |
| UCHAR | |
| USHORT | |
| UINT | |
| ULONG | |
| CHAR | |
| SHORT | |
| INT | |
| LONG | |
| BOOL | |
| FLOAT | |
| DOUBLE | |
| STRING | |
| NTCHAR | |
| LONG_STRING | |
| LONG_NTCHAR | |
| OBJECT_REF | |
| CONTAINED_REF | |
| TOKEN | |
| BLOB | |
| ANY | |
| POINTER | |
| LONGLONG | |
| ULONGLONG | |
| NATIVE_TYPES | |
Definition at line 44 of file DbColumn.h.
|
inlineprivate |
| pool::DbColumn::DbColumn | ( | const std::string & | column_name, |
| int | object_type, | ||
| int | object_offset, | ||
| int | object_size, | ||
| int | number_of_elements = 1, |
||
| int | opt = 0 |
||
| ) |
Initializing constructor for fixed size arrays.
| pool::DbColumn::DbColumn | ( | const std::string & | nam, |
| const std::string & | clazz, | ||
| int | object_type, | ||
| int | object_offset | ||
| ) |
Initializing constructor for composite columns.
|
inlinevirtual |
Load type information object from string representation.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const std::string pool::DbColumn::toString | ( | ) | const |
Create string representation of the type information object.
|
inline |
|
inline |
|
static |
Access type name by type identifier from RTTI.
|
friend |
Definition at line 55 of file DbColumn.h.
|
private |
Column name.
Definition at line 59 of file DbColumn.h.
|
private |
For fixed size arrays: number of object elements.
Definition at line 63 of file DbColumn.h.
|
private |
Offset from object pointer.
Definition at line 61 of file DbColumn.h.
|
private |
Column options.
Definition at line 65 of file DbColumn.h.
|
private |
Object size.
Definition at line 67 of file DbColumn.h.
|
private |
Storage Type identifier.
Definition at line 69 of file DbColumn.h.
|
private |
OS independent type name.
Definition at line 57 of file DbColumn.h.
1.8.18