:: CBankAccessor_ ///////////////////////////////////////////////////////////////// // WARNING : this is a generated file, don't change it ! ///////////////////////////////////////////////////////////////// #include "stdpch.h" #include "database_.h" TCDBBank CBankAccessor_::BankTag; ::_[]; void CBankAccessor_::init() { static bool inited = false; if (!inited) { // retreive the bank structure CCDBStructBanks *bank = CCDBStructBanks::instance(); BankTag = CCDBStructBanks::readBankName(""); ICDBStructNode *node; // branch init node = bank->getICDBStructNodeFromName( BankTag, "" ); nlassert(node != NULL); // call sub branch init _.init(node); for (uint i=0; i<; ++i) { node = bank->getICDBStructNodeFromName( BankTag, NLMISC::toString("%u", i) ); nlassert(node != NULL); // call sub branch init _[i].init(node, i); } inited = true; } } #ifndef INCLUDED__H #define INCLUDED__H ///////////////////////////////////////////////////////////////// // WARNING : this is a generated file, don't change it ! ///////////////////////////////////////////////////////////////// #include "nel/misc/string_common.h" #include "cdb_group.h" #include "player_manager/cdb.h" #include "player_manager/cdb_synchronised.h" #include "" class CBankAccessor_ : public { public: static TCDBBank BankTag; static _[]; public: // Constructor CBankAccessor_() { // make sure the static tree is initialised (some kind of lazy initialisation) init(); // init the base class ::init(BankTag); } static void init(); }; #endif // INCLUDED__H class { public: private: ICDBStructNode *_BranchNode; public: void init(ICDBStructNode *parent, uint index); // accessor to branch node ICDBStructNode *getCDBNode() { return _BranchNode; } }; void ::init(ICDBStructNode *parent, uint index) { ICDBStructNode *node = parent; _BranchNode = node; // leaf init node = parent->getNode( ICDBStructNode::CTextId(""), false ); nlassert(node != NULL); _ = node; for (uint i=0; i<; ++i) { node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i)), false ); nlassert(node != NULL); _[i] = node; } // branch init node = parent->getNode( ICDBStructNode::CTextId(""), false ); nlassert(node != NULL); _.init(node); for (uint i=0; i<; ++i) { node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("%u", i)), false ); nlassert(node != NULL); _[i].init(node, i); } } static &get() { return _; } static &get(uint32 index) { nlassert(index < ); return _[index]; } void set( &dbGroup, value, bool forceSending = false) { // Check that the value is not out of database precision STOP_IF(value > (1<<)-1, "set : Value out of bound : trying to store "<<value<<" in a unsigned field limited to bits"); // Check that the value is not out of database precision if (value > 0) STOP_IF(value > (1<<(-1))-1, "set : Value out of bound : trying to store "<<value<<" in a signed field limited to bits"); else STOP_IF(value < -(1<<(-1)), "set : Value out of bound : trying to store "<<value<<" in a signed field limited to bits"); _setProp(dbGroup, _, value, forceSending); } get(const &dbGroup) { value; _getProp(dbGroup, _, value); return value; } void set( &dbGroup, uint32 stringId, bool forceSending = false) { _setProp(dbGroup, _, stringId, forceSending); } uint32 get_id(const &dbGroup) { uint32 value; _getProp(dbGroup, _, value); return value; } ICDBStructNode *getCDBNode() { return _; } ICDBStructNode *_[]; ICDBStructNode *_; _[]; _; Array TArray T std::string const & bool uint8 uint8 uint8 uint8 uint8 uint8 uint8 uint16 uint16 uint16 uint16 uint16 uint16 uint16 uint16 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint32 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 uint64 sint8 sint8 sint8 sint8 sint8 sint8 sint8 sint8 sint16 sint16 sint16 sint16 sint16 sint16 sint16 sint16 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint32 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 sint64 ucstring Unsupported leaf type