#include <objTypePool.h>
Static Public Member Functions | |
static void | clear () |
Clear out all data. | |
static void | set (OBJTYPE_DATA &obj) |
Add or Change Object Type data in the pool. | |
static const OBJTYPE_DATA * | get (long id) |
static bool | get (OBJTYPE_DATA *pObj, long id) |
Set the data of the Obj Type passed to the matching id's data (or zero if no data found). | |
static bool | valid (const long &id) |
Is there a record for this ID? | |
static int | size () |
| |
static const OBJTYPE_DATA * | begin () |
static const OBJTYPE_DATA * | next () |
Used to iterate through the pool (call begin() to start at the front). | |
Static Protected Member Functions | |
static CObjTypePool * | instance () |
Used by the static methods for a central data store. |
Used to quicly look up all GEs of a certain type.
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
void CObjTypePool::set | ( | OBJTYPE_DATA & | obj | ) | [static] |
Add or Change Object Type data in the pool.
obj | The Object Type data to add or change. |
const OBJTYPE_DATA * CObjTypePool::get | ( | long | id | ) | [static] |
id | The GE id whos Object Type data we want. |
bool CObjTypePool::get | ( | OBJTYPE_DATA * | pObj, | |
long | id | |||
) | [static] |
Set the data of the Obj Type passed to the matching id's data (or zero if no data found).
pObj | Pointer to an Object Type data record with the matching id. | |
id | The GE id whos Object Type data we want. |
bool CObjTypePool::valid | ( | const long & | id | ) | [static] |
Is there a record for this ID?
const OBJTYPE_DATA * CObjTypePool::begin | ( | ) | [static] |
const OBJTYPE_DATA * CObjTypePool::next | ( | ) | [static] |