Public Methods | |
GaiaSR () | |
~GaiaSR () | |
char | init (char *spaceName=0, char *ior=0) |
Initializes the wrapper. | |
int | getEntities (char ***entities, char *query, bool retry=true) |
Returns a list of entities that match the specified query. | |
Object * | getEntity (char *ucr, bool retry=true) |
Returns an object reference to the entity identified by the provided UCR. | |
Object * | getCachedObjectFromUCR (char *ucr) |
Returns a reference to the specified object from the internal cache. | |
CachedEntries * | getCachedEntryFromUCR (char *ucr) |
Returns a struct with a list of entities. | |
void | emptyCache () |
Deletes all elements from the internal cache. | |
void | deleteEntityFromCache (char *ucr) |
Removes an entity from the cache. |
This class provides access to the active space database. The database can be querried to discover active entites that are available in the space.
|
Removes an entity from the cache.
|
|
Deletes all elements from the internal cache. This method is automatically called by the "getEntities" and "getEntity" methods. |
|
Returns a struct with a list of entities. The struct has to members: count_ (with the number of returned entities, and entrie_, an array of pointers to the elements. Every element includes the name of the component, the ucr, and the object reference. A UCR can be associated to more than one entity when using alias. For example, ExecutionNodes register themselves as displays and execution nodes. Therefore, the same UCR has associated two different names: ExecutionNode and Display. The caller is responsible for deallocating the memory.
|
|
Returns a reference to the specified object from the internal cache.
|
|
Returns a list of entities that match the specified query.
|
|
Returns an object reference to the entity identified by the provided UCR.
|
|
Initializes the wrapper.
|