Eris::TypeService Class Reference

A service class querying and caching types. More...

#include <TypeService.h>

List of all members.

Public Member Functions

 TypeService (Connection *con)
void init ()
TypeInfoPtr getTypeByName (const std::string &tynm)
 find the TypeInfo for the named type; this may involve a search, or a map lookup.
TypeInfoPtr getTypeForAtlas (const Atlas::Objects::Root &obj)
 retrive the TypeInfo for an object; this should be faster (hopefully constant time) since it can take advantage of integer typeids
TypeInfoPtr findTypeByName (const std::string &tynm)
 Lookup the requested type, by name, and return NULL if it's unknown.
void listUnbound ()
void handleOperation (const Atlas::Objects::Operation::RootOperation &)

Public Attributes

sigc::signal< void, TypeInfoPtrBoundType
 emitted when a new type is available and bound to it's parents
sigc::signal< void, TypeInfoPtrBadType
 emitted when a type is confirmed as being undefined


Detailed Description

A service class querying and caching types.

Member Function Documentation

TypeInfoPtr Eris::TypeService::getTypeByName ( const std::string &  tynm  ) 

find the TypeInfo for the named type; this may involve a search, or a map lookup.

The returned TypeInfo node may not be bound, and the caller should verify this before using the type.

Todo:
Verify the id is not in the authorative invalid ID list

Referenced by Eris::Entity::getUseOperations(), and Eris::TypeInfo::resolveChildren().

TypeInfoPtr Eris::TypeService::findTypeByName ( const std::string &  tynm  ) 

Lookup the requested type, by name, and return NULL if it's unknown.


The documentation for this class was generated from the following files:

Generated on Fri May 9 04:01:35 2008 for Eris by  doxygen 1.5.5