|
EvEmu
0.8.4
11 September 2021
|
Python object "dbutil.CRowset". More...
#include "PyDatabase.h"


Public Member Functions | |
| CRowSet (DBRowDescriptor **rowDesc) | |
| size_t | GetRowCount () const |
| PyPackedRow * | GetRow (uint32 index) const |
| PyPackedRow * | NewRow () |
Public Member Functions inherited from PyObjectEx_Type2 | |
| PyObjectEx_Type2 (PyTuple *args, PyDict *keywords, bool enclosed=false) | |
| PyObjectEx_Type2 (PyToken *args, PyDict *keywords, bool enclosed=false) | |
| 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 | ~CRowSet () |
| DBRowDescriptor * | _GetRowDesc () const |
Protected Member Functions inherited from PyObjectEx_Type2 | |
| virtual | ~PyObjectEx_Type2 () |
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 PyDict * | _CreateKeywords (DBRowDescriptor *rowDesc) |
Static Protected Member Functions inherited from PyObjectEx_Type2 | |
| static PyTuple * | _CreateHeader (PyTuple *args, PyDict *keywords, bool enclosed=false) |
| static PyTuple * | _CreateHeader (PyToken *args, PyDict *keywords, bool enclosed=false) |
Python object "dbutil.CRowset".
This object contains DBRowDescriptor header and bunch of PyPackedRows.
Definition at line 124 of file PyDatabase.h.
| CRowSet::CRowSet | ( | DBRowDescriptor ** | rowDesc | ) |
| [in] | rowDesc | DBRowDescriptor header to be used. |
Definition at line 126 of file PyDatabase.cpp.
|
inlineprotectedvirtual |
Definition at line 151 of file PyDatabase.h.
|
staticprotected |
Definition at line 158 of file PyDatabase.cpp.
References args, and PyTuple::SetItem().

|
staticprotected |
Definition at line 165 of file PyDatabase.cpp.
References PyDict::SetItemString().

|
protected |
Definition at line 141 of file PyDatabase.cpp.
References PyRep::AsObjectEx(), and PyObjectEx_Type2::FindKeyword().
Referenced by NewRow().


|
inline |
| [in] | Index | of row to be returned. |
Definition at line 143 of file PyDatabase.h.
References PyRep::AsPackedRow(), PyList::GetItem(), and PyObjectEx::list().
Referenced by CFilterRowSet::GetRow().


|
inline |
Definition at line 136 of file PyDatabase.h.
References PyObjectEx::list(), and PyList::size().

| PyPackedRow * CRowSet::NewRow | ( | ) |
Definition at line 132 of file PyDatabase.cpp.
References _GetRowDesc(), PyList::AddItem(), and PyObjectEx::list().
Referenced by DBResultToCRowset(), SovereigntyDataMgr::GetCurrentSovData(), MarketDB::GetMarketGroups(), Inventory::List(), marshal_EVEMarshalTest(), and StaticDataMgr::SetBPMatlType().

