25 class ReadStateInstance;
26 class WriteStateInstance;
58 virtual void beginFrame(
double time);
61 virtual void endFrame();
66 virtual bool inFrame()
const;
69 virtual UInt64 currentFrame()
const;
72 virtual double simTime()
const;
80 virtual bool removeBeginFrameCallback(
BeginFrameCb bfcb);
82 virtual bool addEndFrameCallback(
EndFrameCb efd);
83 virtual bool removeEndFrameCallback(
EndFrameCb efd);
91 virtual AttributeSetId findAttributeSetId(
const std::string& name);
101 template<
typename OBJECT_TYPE>
142 static void beginFrameCallback(
void* usr,
double simTime);
143 static void endFrameCallback(
void* usr);
150 template<
typename OBJECT_TYPE>
EventManager * myEventManager
Definition: simulationDatabase.h:137
ControlManager * myControlManager
Definition: simulationDatabase.h:138
The ViewManager creates and manages the views of a database.
Definition: viewManager.h:42
UInt64 DatabaseHandle
Definition: readStateInstance.h:23
Defines a template callback object to make binding member function pointers easier.
bool myIsReference
Definition: simulationDatabase.h:140
DatabaseHandle myHandle
Definition: simulationDatabase.h:135
An attribute descriptor describes a single attribute.
Definition: attributeSetDescriptor.h:38
std::vector< BeginFrameCb > myBeginFrameCallbacks
Definition: simulationDatabase.h:144
The EventManager manages the creation and distribution of simulation events such as Fire and Detonate...
Definition: eventManager.h:33
Callback template for binding static or member functions for callback at later time The return type a...
Definition: callback.h:66
UInt32 AttributeSetId
Definition: readStateInstance.h:22
UInt64 GlobalIdentifier
a globally unique identifier
Definition: dataTypes.h:50
std::vector< EndFrameCb > myEndFrameCallbacks
Definition: simulationDatabase.h:145
UInt32 AttributeIndex
Definition: readStateInstance.h:21
unsigned int UInt32
Definition: dataTypes.h:44
UInt32 ClientId
Definition: dataTypes.h:52
The SimulationDatabase stores all data for the simulation. It also owns the event, control, and view managers.
Definition: simulationDatabase.h:42
UInt32 AttributeId
Definition: simulationDatabase.h:35
Callback< void()> EndFrameCb
Definition: simulationDatabase.h:30
const UInt32 BAD_INDEX
Definition: simulationDatabase.h:39
The WriteStateInstance is the base class of all write simulation object repository classes...
Definition: writeStateInstance.h:35
unsigned long long UInt64
Definition: dataTypes.h:46
ViewManager * myViewManager
Definition: simulationDatabase.h:139
Callback< void(double)> BeginFrameCb
Definition: simulationDatabase.h:27
OBJECT_TYPE createInstance(const DatabaseHandle &dbHandle)
Definition: simulationDatabase.inl:27
virtual DatabaseHandle handle() const
Returns the handle to the internal representation of this object.
Definition: simulationDatabase.h:53
The configuration object parses the command line and loads a configuration file to provide the user c...
Definition: configuration.h:23
The control manager is responsible for creating and adding controls to the simulation database...
Definition: controlManager.h:33
UInt64 InstanceHandle
Definition: readStateInstance.h:20
An attribute set descriptor describes a group of attributes that are treated as a single set of data ...
Definition: attributeSetDescriptor.h:53
UInt8 Bool
Definition: dataTypes.h:53