![]() |
VR-Forces 5.0.2 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 () |
| virtual void | copy (const DtPropertyInterface &rhs) |
| virtual DtString | stringRep (const DtString &root="") const |
| virtual const char * | propertyType () const |
| virtual DtSymbolString | propertyName () const |
| virtual void | setPropertyName (const DtString &propertyName) |
| 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) |
| virtual bool | merge (const DtPropertyInterface &target, MergeFlags, const DtMergePath &path=DtMergePath(), const std::set< DtString > &ignore=std::set< DtString >()) |
| virtual void | recordUpdateTime () const |
| virtual bool | wasUpdatedSince (DtTime t) const |
| virtual void | reset () |
Network encoding and decoding | |
| virtual char * | encode (char *) const |
| virtual const char * | decode (const char *) |
| virtual void | getSize (int &size) const |
| virtual int | hlaAlignment () const |
| virtual DtReaderWriter * | readerWriter () |
| virtual const DtReaderWriter * | readerWriter () const |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual bool | isPublished () const |
| virtual void | setIsPublished (bool isPub) |
| virtual unsigned | disRecordType () const |
| virtual void | setDisRecordType (unsigned recType) |
| virtual bool | isDebugEnabled () const |
| virtual void | setDebugEnabled (bool en) |
Public Member Functions inherited from DtPropertyInterface | |
| virtual | ~DtPropertyInterface () |
| virtual bool | isSimilarProperty (const DtPropertyInterface *rhs, bool strict=true) const |
| virtual bool | isPublishedArg (DtlObjPtr arg, unsigned &disVarRecType) const |
| 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 | myDebugEnabled |
Private Member Functions | |
| DtRwProperty () | |
Additional Inherited Members | |
Public Types inherited from DtPropertyInterface | |
| enum | MergeFlags { Replace = 0x00000001, MinimalSimilarityCheck = 0x00000002, RollUp = 0x00000004, AddMissing = 0x00000008, KeepIsPublished = 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 |
||
| ) |
|
virtual |
| DtRwProperty& DtRwProperty< _RwType >::operator= | ( | const DtRwProperty< _RwType > & | orig | ) |
|
virtual |
Copies the given property into the current one as long as the types are the same.
Implements DtPropertyInterface.
|
virtual |
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 >.
|
virtual |
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.
|
virtual |
Adds the network size of this item in bytes. This does not include any upfront padding for alignment.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString.
|
virtual |
Returns alignment necessary to encode this item in HLA.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertySizedString.
|
virtual |
Implements DtPropertyInterface.
|
virtual |
Typically returns reader/writer type.
Implements DtPropertyInterface.
Reimplemented in DtRwPropertiesRangeItem.
|
inlinevirtual |
The name of this property.
Implements DtPropertyInterface.
|
inlinevirtual |
Sets name of this property. Should generally only be called when initially created.
Implements DtPropertyInterface.
|
virtual |
|
virtual |
Override to allow a variable to be assigned to a property of derived type.
Implements DtPropertyInterface.
|
virtual |
In this case replace does not matter – will replace value regardless.
Implements DtPropertyInterface.
|
virtual |
Returns a ReaderWriter pointer of the property.
Implements DtPropertyInterface.
|
virtual |
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.
|
virtual |
Returns true if an update occurred since the specified time.
Reimplemented in DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, DtRwPropertyWithThreshold< DtRwInt8 >, DtRwPropertyWithThreshold< DtRwInt16 >, DtRwPropertyWithThreshold< DtRwReal >, DtRwPropertyWithThreshold< DtRwVector >, DtRwPropertyWithThreshold< DtRwReal64 >, DtRwPropertyWithThreshold< DtRwOffsetVector >, DtRwPropertyWithThreshold< DtRwInt32 >, and DtRwPropertyWithThreshold< DtRwReal32 >.
|
virtual |
Whether this property should be published.
Implements DtPropertyInterface.
|
virtual |
Whether this property should be published.
Implements DtPropertyInterface.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Enables debug output. Generally this should be left off.
Implements DtPropertyInterface.
|
virtual |
Enables debug output. Generally this should be left off.
Implements DtPropertyInterface.
|
virtual |
Override to clear out variable value.
Implements DtPropertyInterface.
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |