xc
Public Member Functions | List of all members
XC::DatastoreRecorder Class Reference

// A DatastoreRecorder object is used in the program to invoke commitState() on an FE_datastore object when commit() is invoked on a Domain. More...

#include <DatastoreRecorder.h>

Inheritance diagram for XC::DatastoreRecorder:
XC::Recorder XC::MovableObject XC::DistributedBase

Public Member Functions

 DatastoreRecorder (void)
 Default constructor.
 
 DatastoreRecorder (FE_Datastore &theDatastore)
 Constructor. More...
 
int record (int commitTag, double timeStamp)
 Return the result of invoking {commitState(commitTag)} on {theDatastore} object. More...
 
int playback (int commitTag)
 brief Return the result of invoking {restoreState(commitTag)} on {theDatastore} object. More...
 
int restart (void)
 Do nothing.
 
- Public Member Functions inherited from XC::Recorder
 Recorder (int classTag)
 
virtual int setDomain (Domain &theDomain)
 
virtual int sendSelf (CommParameters &)
 Send the object. More...
 
virtual int recvSelf (const CommParameters &)
 Receive the object. More...
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor. More...
 
 MovableObject (int classTag)
 Constructor. More...
 
 MovableObject (const MovableObject &)
 Copy constructor. Doesn't copy the dbTag.
 
MovableObjectoperator= (const MovableObject &)
 Assignment operator. Doesn't copy the dbTag.
 
int getClassTag (void) const
 Return the class identifier.
 
int getDbTag (void) const
 Return the object identifier in the database.
 
int getDbTag (CommParameters &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (CommParameters &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
virtual int updateParameter (int parameterID, Information &info)
 Updates the parameter identified by parameterID with info.
 
virtual int activateParameter (int parameterID)
 Activates the parameter identified by parameterID.
 
virtual int setVariable (const std::string &variable, Information &)
 Set the value of the variable idenfified by var.
 
virtual int getVariable (const std::string &variable, Information &)
 Return the value of the variable idenfified by var.
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
virtual DbTagDatagetDbTagData (void) const
 Returns a vector to store class dbTags.
 
const int & getDbTagDataPos (const int &i) const
 Returns the data at the i-th position.
 
void setDbTagDataPos (const int &i, const int &v)
 Sets the data at the i-th position.
 
void inicComm (const int &dataSize) const
 Initializes communication.
 

Detailed Description

// A DatastoreRecorder object is used in the program to invoke commitState() on an FE_datastore object when commit() is invoked on a Domain.

Constructor & Destructor Documentation

§ DatastoreRecorder()

XC::DatastoreRecorder::DatastoreRecorder ( FE_Datastore theDb)

Constructor.

Parameters
theDbreference to the datastore object.

Member Function Documentation

§ playback()

int XC::DatastoreRecorder::playback ( int  commitTag)
virtual

brief Return the result of invoking {restoreState(commitTag)} on {theDatastore} object.

Reimplemented from XC::Recorder.

§ record()

int XC::DatastoreRecorder::record ( int  commitTag,
double  timeStamp 
)
virtual

Return the result of invoking {commitState(commitTag)} on {theDatastore} object.

Implements XC::Recorder.


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