|
EvEmu
0.8.4
11 September 2021
|
Python object "blue.DBRowDescriptor". More...
#include "PyDatabase.h"


Public Member Functions | |
| DBRowDescriptor () | |
| DBRowDescriptor (PyList *keywords) | |
| DBRowDescriptor (const DBQueryResult &res) | |
| DBRowDescriptor (const DBResultRow &row) | |
| uint32 | ColumnCount () const |
| PyString * | GetColumnName (uint32 index) const |
| DBTYPE | GetColumnType (uint32 index) const |
| uint32 | FindColumn (const char *name) const |
| bool | VerifyValue (uint32 index, PyRep *value) |
| Verifies value for certain column. More... | |
| void | AddColumn (const char *name, DBTYPE type) |
Public Member Functions inherited from PyObjectEx_Type1 | |
| PyObjectEx_Type1 (PyToken *type, PyTuple *args, bool enclosed=false) | |
| PyObjectEx_Type1 (PyObjectEx_Type1 *args1, PyTuple *args2, bool enclosed=false) | |
| PyObjectEx_Type1 (PyToken *type, PyTuple *args, PyDict *keywords, bool enclosed=false) | |
| PyObjectEx_Type1 (PyToken *type, PyTuple *args, PyList *keywords, bool enclosed=false) | |
| PyToken * | GetType () const |
| PyTuple * | GetArgs () const |
| PyDict * | GetKeywords () const |
| PyRep * | FindKeyword (const char *keyword) const |
Public Member Functions inherited from PyObjectEx | |
| PyObjectEx (bool is_type_2, PyRep *header) | |
| PyObjectEx (const PyObjectEx &oth) | |
| PyObjectEx (PyObjectEx &&oth)=delete | |
| PyObjectEx & | operator= (const PyObjectEx &oth) |
| PyObjectEx & | operator= (PyObjectEx &&oth)=delete |
| PyRep * | Clone () const |
| Clones object. More... | |
| bool | visit (PyVisitor &v) const |
| Visits object. More... | |
| PyRep * | header () const |
| bool | isType2 () const |
| list_type & | list () |
| const list_type & | list () const |
| dict_type & | dict () |
| const dict_type & | dict () const |
Public Member Functions inherited from PyRep | |
| PyType | GetType () const |
| bool | IsInt () const |
| bool | IsLong () const |
| bool | IsFloat () const |
| bool | IsBool () const |
| bool | IsBuffer () const |
| bool | IsString () const |
| bool | IsWString () const |
| bool | IsToken () const |
| bool | IsTuple () const |
| bool | IsList () const |
| bool | IsDict () const |
| bool | IsNone () const |
| bool | IsSubStruct () const |
| bool | IsSubStream () const |
| bool | IsChecksumedStream () const |
| bool | IsObject () const |
| bool | IsObjectEx () const |
| bool | IsPackedRow () const |
| const char * | TypeString () const |
| PyInt * | AsInt () |
| const PyInt * | AsInt () const |
| PyLong * | AsLong () |
| const PyLong * | AsLong () const |
| PyFloat * | AsFloat () |
| const PyFloat * | AsFloat () const |
| PyBool * | AsBool () |
| const PyBool * | AsBool () const |
| PyBuffer * | AsBuffer () |
| const PyBuffer * | AsBuffer () const |
| PyString * | AsString () |
| const PyString * | AsString () const |
| PyWString * | AsWString () |
| const PyWString * | AsWString () const |
| PyToken * | AsToken () |
| const PyToken * | AsToken () const |
| PyTuple * | AsTuple () |
| const PyTuple * | AsTuple () const |
| PyList * | AsList () |
| const PyList * | AsList () const |
| PyDict * | AsDict () |
| const PyDict * | AsDict () const |
| PyNone * | AsNone () |
| const PyNone * | AsNone () const |
| PySubStruct * | AsSubStruct () |
| const PySubStruct * | AsSubStruct () const |
| PySubStream * | AsSubStream () |
| const PySubStream * | AsSubStream () const |
| PyChecksumedStream * | AsChecksumedStream () |
| const PyChecksumedStream * | AsChecksumedStream () const |
| PyObject * | AsObject () |
| const PyObject * | AsObject () const |
| PyObjectEx * | AsObjectEx () |
| const PyObjectEx * | AsObjectEx () const |
| PyPackedRow * | AsPackedRow () |
| const PyPackedRow * | AsPackedRow () const |
| void | Dump (FILE *into, const char *pfx) const |
| Dumps object to file. More... | |
| void | Dump (LogType type, const char *pfx) const |
| Dumps object to console. More... | |
| virtual int32 | hash () const |
| virtual function to generate a hash value of a object. More... | |
Public Member Functions inherited from RefObject | |
| RefObject (size_t initRefCount) | |
| Initializes reference count. More... | |
| virtual | ~RefObject () |
| Destructor; must be virtual. More... | |
| size_t | GetCount () |
Protected Member Functions | |
| virtual | ~DBRowDescriptor () |
| PyTuple * | _GetColumnList () const |
| PyTuple * | _GetColumn (size_t index) const |
Protected Member Functions inherited from PyObjectEx_Type1 | |
| virtual | ~PyObjectEx_Type1 () |
Protected Member Functions inherited from PyObjectEx | |
| virtual | ~PyObjectEx () |
Protected Member Functions inherited from PyRep | |
| PyRep (PyType t) | |
| PyRep (const PyRep &oth) | |
| PyRep (PyRep &&oth)=delete | |
| PyRep & | operator= (const PyRep &oth)=default |
| PyRep & | operator= (PyRep &&oth)=default |
| virtual | ~PyRep () |
Protected Member Functions inherited from RefObject | |
| void | IncRef () const |
| Increments reference count of object by one. More... | |
| void | DecRef () const |
| Decrements reference count of object by one. More... | |
Static Protected Member Functions | |
| static PyTuple * | _CreateArgs () |
Static Protected Member Functions inherited from PyObjectEx_Type1 | |
| static PyTuple * | _CreateHeader (PyToken *type, PyTuple *args, bool enclosed=false) |
| static PyTuple * | _CreateHeader (PyObjectEx_Type1 *args1, PyTuple *args2, bool enclosed=false) |
| static PyTuple * | _CreateHeader (PyToken *type, PyTuple *args, PyDict *keywords, bool enclosed=false) |
| static PyTuple * | _CreateHeader (PyToken *type, PyTuple *args, PyList *keywords, bool enclosed=false) |
Python object "blue.DBRowDescriptor".
This object is used by PyPackedRow and CRowSet to describe stored columns.
Definition at line 41 of file PyDatabase.h.
| DBRowDescriptor::DBRowDescriptor | ( | ) |
Definition at line 34 of file PyDatabase.cpp.
| DBRowDescriptor::DBRowDescriptor | ( | PyList * | keywords | ) |
| [in] | keywords | Some sort of keyword list. |
Definition at line 39 of file PyDatabase.cpp.
| DBRowDescriptor::DBRowDescriptor | ( | const DBQueryResult & | res | ) |
| [in] | result | Query result to build column list from. |
Definition at line 44 of file PyDatabase.cpp.
References AddColumn(), DBQueryResult::ColumnCount(), DBQueryResult::ColumnName(), and DBQueryResult::ColumnType().

| DBRowDescriptor::DBRowDescriptor | ( | const DBResultRow & | row | ) |
| [in] | result | Row to build column list from. |
Definition at line 52 of file PyDatabase.cpp.
References AddColumn(), DBResultRow::ColumnCount(), DBResultRow::ColumnName(), and DBResultRow::ColumnType().

|
inlineprotectedvirtual |
Definition at line 103 of file PyDatabase.h.
|
staticprotected |
Definition at line 114 of file PyDatabase.cpp.
References args, and PyTuple::SetItem().

|
protected |
Definition at line 109 of file PyDatabase.cpp.
References _GetColumnList(), PyRep::AsTuple(), and PyTuple::GetItem().
Referenced by GetColumnName(), and GetColumnType().


|
protected |
Definition at line 104 of file PyDatabase.cpp.
References PyRep::AsTuple(), PyObjectEx_Type1::GetArgs(), and PyTuple::GetItem().
Referenced by _GetColumn(), AddColumn(), and ColumnCount().


| void DBRowDescriptor::AddColumn | ( | const char * | name, |
| DBTYPE | type | ||
| ) |
Adds new column.
| [in] | name | Name of new column. |
| [in] | type | Type of new column. |
Definition at line 96 of file PyDatabase.cpp.
References _GetColumnList(), PyTuple::items, and PyTuple::SetItem().
Referenced by StaticDataMgr::CreateHeader(), DBRowDescriptor(), LiveUpdateDB::GenerateUpdates(), InventoryItem::GetChargeStatusRow(), SovereigntyDataMgr::GetCurrentSovData(), InventoryItem::GetItemStatusRow(), marshal_EVEMarshalTest(), and StaticDataMgr::SetBPMatlType().


| uint32 DBRowDescriptor::ColumnCount | ( | ) | const |
Definition at line 60 of file PyDatabase.cpp.
References _GetColumnList(), and PyTuple::size().
Referenced by FindColumn(), MarketDB::GetMarketGroups(), UnmarshalStream::LoadPackedRow(), and PyDumpVisitor::VisitPackedRow().


| uint32 DBRowDescriptor::FindColumn | ( | const char * | name | ) | const |
| [in] | name | Name of column index of which should be returned. |
Definition at line 75 of file PyDatabase.cpp.
References ColumnCount(), GetColumnName(), PyString::hash(), and PyDecRef.

| [in] | index | Index of column name of which should be returned. |
Definition at line 65 of file PyDatabase.cpp.
References _GetColumn(), PyRep::AsString(), and PyTuple::GetItem().
Referenced by CIndexedRowSet::_CreateKeywords(), CFilterRowSet::_CreateKeywords(), FindColumn(), and PyDumpVisitor::VisitPackedRow().


| [in] | index | Index of column type of which should be returned. |
Definition at line 70 of file PyDatabase.cpp.
References _GetColumn(), PyRep::AsInt(), PyTuple::GetItem(), and PyInt::value().
Referenced by UnmarshalStream::LoadPackedRow(), and VerifyValue().


Verifies value for certain column.
| [in] | index | Index of the column. |
| [in] | value | The value. |
| true | Type of column and type of value are compatible. |
| false | Type of column and type of value aren't compatible. |
Definition at line 91 of file PyDatabase.cpp.
References DBTYPE_IsCompatible(), and GetColumnType().
