Classes | Namespaces | Typedefs | Functions

typeinst.h File Reference

#include "aesop-base/aesop-base.h"
#include "datahash/datahash.h"
#include "datahash/datahash_util.h"
#include "geometry/placement.h"
#include "story/story.h"
Include dependency graph for typeinst.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  aesop::ComponentData
 a base class that components can use to provide rich implementations More...
class  aesop::Instance
 A concrete instantiation of an object at a given place. More...
class  aesop::TypeComponentLoader
 Clients of this library need to provide component loaders for anything that they want loaded. More...


namespace  aesop


typedef std::vector< smart_ptr
< Instance > > 
 vector of instances
typedef void(* aesop::instance_iteration_fn )(smart_ptr< Instance > &instance, void *context)
 a typedef to support iteration of instances.


void aesop::initializeTypeInstanceLibrary (smart_ptr< story::Story > &story)
 Must initialize the type instance library at the beginning of time!
void aesop::registerTypeComponentLoader (smart_ptr< aesop::TypeComponentLoader > &tcl)
 Static method for registering type component loaders.
void aesop::loadInstances (std::istream &stream,vec_instance_t &instances)
 Load Instance objects from the given stream.
const char * aesop::getKeyWithOverrides (const char *keyName,const Datahash *instanceData,const Datahash *typeData,const Datahash *modelData,eDatahash_Flag flag)
 handy utility method for type component loaders: given the three raw data hashes (instance data, type data, and model data) get the value from the appropriate override source (instance, then type, then model)