53 virtual int number()
const;
virtual void setNumber(int num)
Inspector and mutator functions for the object's state data.
TestStateRepository()
Default constructor.
virtual void printDataToStream(std::ostream &stream) const
prints the internal representation of the attributes to the specified stream.
virtual const DtVector & vector() const
virtual DtStateRepository * clone(bool copy) const
Return a copy/empty object of the same type as this. Required.
This file declares DtVector and DtVector32.
Definition: vlVector.h:224
virtual int number() const
DtVector myVec
Definition: testSR.h:70
virtual void printData() const
Prints the internal representation of the attributes to the DtInfo stream.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
int myNum
Here, we store the actual data values, in native representation.
Definition: testSR.h:69
TestStateRepository & operator=(const TestStateRepository &orig)
Assignment operator.
virtual void setVector(const DtVector &vec)
Set/Get the attribute named "Vector".
Define the TestStateRepository class.
Definition: testSR.h:16
static DtStateRepository * create()
Create and return a new TestStateRepository.
virtual ~TestStateRepository()
Destructor.