17 #include <vl/entityPublisher.h>
18 #include <vl/reflectedEntityList.h>
43 virtual float mass()
const;
75 DtEntityStateRepository::printData();
76 printf(
"Mass: %lf\n",
mass());
104 DtWarn <<
"Constructing" << std::endl;
110 DtWarn <<
"Destructing" << std::endl;
117 DtEntityPublisher::setStateRepCreator((DtEntityPublisher::DtStateRepCreator)
123 DtReflectedEntity::setStateRepCreator((DtReflectedEntity::DtStateRepCreator)
The extended attributes initializer for entity objects.
Definition: extendedAttributesInitializer.h:141
Because this example adds a concept that did not already exist in VR-Link's DtEntityStateRepository c...
Definition: myEsr.h:24
virtual void printData() const
Print data to the DtInfo stream.
Definition: myEsr.h:73
virtual DtStateRepository * clone(bool copy=false) const
Return a copy/empty object of the same type as this.
Definition: myEsr.h:84
static DtExtEntityStateRepository * create()
Definition: myEsr.h:79
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
float myMass
Definition: myEsr.h:58
virtual ~MyEntityExtendedAttributesInitializer()
Destructor.
Definition: myEsr.h:108
Contains the DtExtEntityStateRepository class.
virtual void setMass(float mass)
Definition: myEsr.h:63
MyEntityExtendedAttributesInitializer()
Constructor.
Definition: myEsr.h:101
MyEntityStateRep()
Definition: myEsr.h:27
void setReflectedObjectStateRepCreator()
Sets the state rep creator for the associated reflected object.
Definition: myEsr.h:121
virtual float mass() const
Definition: myEsr.h:68
MyEntityStateRep(const MyEntityStateRep &o)
Definition: myEsr.h:34
void setPublisherStateRepCreator()
Sets the state rep creator for the associated publisher.
Definition: myEsr.h:115