EvEmu
0.8.4
11 September 2021
|
Helper class for column description. More...
#include "RowsetToSQL.h"
Public Types | |
enum | ColumnType { TYPE_INTEGER, TYPE_FLOAT, TYPE_STRING, TYPE_WSTRING, TYPE_UNKNOWN, TYPE_ERROR } |
Public Member Functions | |
ReaderColumnContentDesc () | |
ColumnType | type () const |
bool | isNull () const |
const char * | typeString () const |
const char * | nullString () const |
void | Process (const PyRep::PyType t) |
Processes PyRep type to determine type of column. More... | |
Protected Attributes | |
ColumnType | mType |
bool | mIsNull |
Static Protected Attributes | |
static const char *const | smTypeStrings [] |
static const char *const | smNullStrings [] |
Helper class for column description.
Describes single column.
Definition at line 41 of file RowsetToSQL.h.
Known column types.
Enumerator | |
---|---|
TYPE_INTEGER | |
TYPE_FLOAT | |
TYPE_STRING | |
TYPE_WSTRING | |
TYPE_UNKNOWN | |
TYPE_ERROR |
Definition at line 45 of file RowsetToSQL.h.
ReaderColumnContentDesc::ReaderColumnContentDesc | ( | ) |
|
inline |
Definition at line 62 of file RowsetToSQL.h.
References mIsNull.
Referenced by nullString().
|
inline |
Definition at line 67 of file RowsetToSQL.h.
References isNull(), and smNullStrings.
Referenced by ReaderToSQL().
void ReaderColumnContentDesc::Process | ( | const PyRep::PyType | t | ) |
Processes PyRep type to determine type of column.
[in] | t | PyRep type. |
Definition at line 57 of file RowsetToSQL.cpp.
References mIsNull, mType, PyRep::PyTypeBool, PyRep::PyTypeFloat, PyRep::PyTypeInt, PyRep::PyTypeLong, PyRep::PyTypeNone, PyRep::PyTypeString, PyRep::PyTypeWString, TYPE_ERROR, TYPE_FLOAT, TYPE_INTEGER, TYPE_STRING, TYPE_UNKNOWN, and TYPE_WSTRING.
|
inline |
Definition at line 60 of file RowsetToSQL.h.
References mType.
Referenced by typeString().
|
inline |
Definition at line 65 of file RowsetToSQL.h.
References smTypeStrings, and type().
Referenced by ReaderToSQL().
|
protected |
Whether column may be NULL.
Definition at line 80 of file RowsetToSQL.h.
|
protected |
|
staticprotected |
Whether column may be NULL, in SQL.
Definition at line 85 of file RowsetToSQL.h.
Referenced by nullString().
|
staticprotected |
Known types of column, in SQL.
Definition at line 83 of file RowsetToSQL.h.
Referenced by typeString().