![]() |
VR-Forces Developer's Guide
|
Templated class that allows for the definition of a property. Only templates of this type can be added into the DtRwProperties class.

Public Member Functions | |
| DtRwProperty (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtRwProperty (const DtString &name, const DtRwProperty &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtRwProperty & | operator= (const DtRwProperty &orig) |
| virtual | ~DtRwProperty () override |
| virtual void | copy (const DtPropertyInterface &rhs) override |
| virtual DtString | stringRep (const DtString &root="") const override |
| virtual const char * | propertyType () const override |
| virtual DtSymbolString | propertyName () const override |
| virtual void | setPropertyName (const DtString &propertyName) override |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths(), const DtVariableBindingsList &variableBindings=DtReaderWriter::nullVariableReference()) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
| virtual bool | merge (const DtPropertyInterface &target, MergeFlags, const DtMergePath &path=DtMergePath(), const std::set< DtString > &ignore=std::set< DtString >()) override |
| virtual void | recordUpdateTime () const |
| virtual bool | isUpdateNeeded (DtTime t) const override |
| virtual bool | hasReceivedUpdateSince (DtTime t) const override |
| virtual DtTime | updateClockTime () const override |
| virtual void | reset () override |
| virtual void | setKeepPublishingSettings (bool keep) override |
| virtual bool | keepPublishingSettings () const override |
Network encoding and decoding | |
| virtual char * | encode (char *) const override |
| virtual const char * | decode (const char *) override |
| virtual void | getSize (int &size) const override |
| virtual int | hlaAlignment () const override |
| virtual DtReaderWriter * | readerWriter () override |
| virtual const DtReaderWriter * | readerWriter () const override |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual bool | isPublished () const override |
| virtual void | setIsPublished (bool isPub) override |
| virtual unsigned | disRecordType () const override |
| virtual void | setDisRecordType (unsigned recType) override |
| virtual bool | isDebugEnabled () const override |
| virtual void | setDebugEnabled (bool en) override |
Public Member Functions inherited from DtPropertyInterface | |
| virtual | ~DtPropertyInterface () |
| virtual bool | isSimilarProperty (const DtPropertyInterface *rhs, bool strict=true) const |
| virtual void | writePublishInformation (std::string &fp, int indentLevel) |
| virtual bool | isPublishedArg (DtlObjPtr arg, unsigned &disVarRecType) |
| virtual void | copyPublishingSettings (const DtPropertyInterface &prop) |
| virtual void | processPublicationArgs (DtlObjPtr arg) |
| virtual void | processPublicationArg (DtlObjPtr arg) |
| template<typename ValueType > | |
| boost::optional< ValueType > | propertyValue () const |
| template<typename ValueType > | |
| bool | setPropertyValue (ValueType val) |
| virtual const DtPropertyInterface * | findPropertyInterface (const DtString &propertyName) const |
| virtual DtPropertyInterface * | findPropertyInterface (const DtString &propertyName) |
| template<typename SpecificPropType > | |
| const SpecificPropType * | findProperty (const DtString &propertyName) const |
| template<typename SpecificPropType > | |
| SpecificPropType * | findProperty (const DtString &propertyName) |
| template<typename ValueType > | |
| boost::optional< ValueType > | findPropertyValue (const DtString &propertyName) const |
| template<typename ValueType > | |
| bool | findAndSetPropertyValue (const DtString &propertyName, ValueType val) |
| virtual bool | addProperty (DtPropertyInterface *property) |
| template<typename SpecificPropType > | |
| SpecificPropType * | addNewProperty (const DtString &propertyName) |
| virtual bool | removeProperty (const DtString &propertyName) |
| virtual bool | removeProperty (const DtPropertyInterface *property) |
| int | getSize () const |
Protected Attributes | |
| DtClock | myClock |
| DtTime | myUpdateTime |
| unsigned | myDisRecordType |
| bool | myIsPublished |
| bool | myKeepPublishingSettingsOnCopy |
| bool | myDebugEnabled |
Private Member Functions | |
| DtRwProperty () | |
Additional Inherited Members | |
Public Types inherited from DtPropertyInterface | |
| enum | MergeFlags { Replace = 0x00000001, MinimalSimilarityCheck = 0x00000002, RollUp = 0x00000004, AddMissing = 0x00000008, KeepPublishedSettings = 0x00000010 } |
|
private |
Not implemented.
| DtRwProperty< _RwType >::DtRwProperty | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
| DtRwProperty< _RwType >::DtRwProperty | ( | const DtString & | name, |
| const DtRwProperty< _RwType > & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
|
overridevirtual |
| DtRwProperty& DtRwProperty< _RwType >::operator= | ( | const DtRwProperty< _RwType > & | orig | ) |
|
overridevirtual |
Copies the given property into the current one as long as the types are the same.
Implements DtPropertyInterface.
|
overridevirtual |
Encodes the property into the supplied buffer. Does not align the property. Buffer must already be aligned correctly based on the hlaAlignment() value of this property.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString, DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, DtRwPropertyWithThreshold< DtRwInt8 >, DtRwPropertyWithThreshold< DtRwInt16 >, DtRwPropertyWithThreshold< DtRwReal >, DtRwPropertyWithThreshold< DtRwVector >, DtRwPropertyWithThreshold< DtRwReal64 >, DtRwPropertyWithThreshold< DtRwOffsetVector >, DtRwPropertyWithThreshold< DtRwInt32 >, and DtRwPropertyWithThreshold< DtRwReal32 >.
|
overridevirtual |
Decodes the property from the specified buffer. Assumes buffer is the start of the property and preceding padding has been skipped.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString.
|
overridevirtual |
Adds the network size of this item in bytes. This does not include any upfront padding for alignment.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString.
|
overridevirtual |
Returns alignment necessary to encode this item in HLA.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString.
|
overridevirtual |
Implements DtPropertyInterface.
|
overridevirtual |
Typically returns reader/writer type.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertiesRangeItem.
|
inlineoverridevirtual |
The name of this property.
Implements DtPropertyInterface.
|
inlineoverridevirtual |
Sets name of this property. Should generally only be called when initially created.
Implements DtPropertyInterface.
|
virtual |
|
overridevirtual |
Override to allow a variable to be assigned to a property of derived type.
Implements DtPropertyInterface.
|
overridevirtual |
In this case replace does not matter – will replace value regardless.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, DtRwPropertyWithThreshold< DtRwInt8 >, DtRwPropertyWithThreshold< DtRwInt16 >, DtRwPropertyWithThreshold< DtRwReal >, DtRwPropertyWithThreshold< DtRwVector >, DtRwPropertyWithThreshold< DtRwReal64 >, DtRwPropertyWithThreshold< DtRwOffsetVector >, DtRwPropertyWithThreshold< DtRwInt32 >, and DtRwPropertyWithThreshold< DtRwReal32 >.
|
overridevirtual |
Returns a ReaderWriter pointer of the property.
Implements DtPropertyInterface.
|
overridevirtual |
Returns a ReaderWriter pointer of the property.
Implements DtPropertyInterface.
|
virtual |
Returns a PropertyInterface pointer of the ReaderWriter.
|
virtual |
Returns a PropertyInterface pointer of the ReaderWriter.
|
virtual |
Stamps the time when updated.
|
overridevirtual |
Returns true if the value has been updated since the specified time and needs to be sent on the network.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, DtRwPropertyWithThreshold< DtRwInt8 >, DtRwPropertyWithThreshold< DtRwInt16 >, DtRwPropertyWithThreshold< DtRwReal >, DtRwPropertyWithThreshold< DtRwVector >, DtRwPropertyWithThreshold< DtRwReal64 >, DtRwPropertyWithThreshold< DtRwOffsetVector >, DtRwPropertyWithThreshold< DtRwInt32 >, and DtRwPropertyWithThreshold< DtRwReal32 >.
|
overridevirtual |
Returns true if an update was received remotely since the specified time.
Implements DtPropertyInterface.
|
overridevirtual |
Returns the current time on the update clock. Can be used to pass into a future call to hasReceivedUpdateSince(t) to see if an update has been processed in the meantime.
Implements DtPropertyInterface.
|
overridevirtual |
Whether this property should be published.
Implements DtPropertyInterface.
|
overridevirtual |
Whether this property should be published.
Implements DtPropertyInterface.
|
overridevirtual |
If this property is published, which DIS record type should it use. Default is 0, which indicates that the normal VRF generic attribute record type should be used.
Implements DtPropertyInterface.
|
overridevirtual |
If this property is published, which DIS record type should it use. Default is 0, which indicates that the normal VRF generic attribute record type should be used.
Implements DtPropertyInterface.
|
overridevirtual |
Enables debug output. Generally this should be left off.
Implements DtPropertyInterface.
|
overridevirtual |
Enables debug output. Generally this should be left off.
Implements DtPropertyInterface.
|
overridevirtual |
Override to clear out variable value.
Implements DtPropertyInterface.
|
overridevirtual |
Specifies whether the publishing settings for this property should be retained when it is updated from another property.
Implements DtPropertyInterface.
|
overridevirtual |
Implements DtPropertyInterface.
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |