VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
DtRwProperty< _RwType > Class Template Reference

Templated class that allows for the definition of a property. More...

Inheritance diagram for DtRwProperty< _RwType >:
Inheritance graph
[legend]

Public Member Functions

 DtRwProperty (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 DtRwProperty (const DtString &name, const DtRwProperty &orig, DtReaderWriterRegistry *parentRegistry=0)
DtRwPropertyoperator= (const DtRwProperty &orig)
virtual ~DtRwProperty ()
virtual charencode (char *) const
 These methods are for network encoding/decoding for Hla encoding decoding reasons.
virtual const chardecode (const char *)
 Decodes the variable bindings from the specified buffer.
virtual DtString stringRep (const DtString &root="") const
virtual void getSize (int &size) const
 Returns the size of this item, iterating over all types.
virtual int hlaAlignment () const
 Returns hlaAlignment.
virtual const charpropertyType () const
 Typically returns reader/writer type.
virtual DtlObjPtr getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
 Override to allow a variable to be assigned to a property of derived type.
virtual bool merge (const DtPropertyInterface &target, MergeFlags, const DtMergePath &path=DtMergePath(), const std::set< DtString > &ignore=std::set< DtString >())
 In this case replace does not matter – will replace value regardless.
virtual void recordUpdateTime () const
 Stamps the time when updated.
virtual bool wasUpdatedSince (DtTime t) const
 Returns true if an update occurred since the specified time.
virtual void reset ()
 Override to clear out variable value.
virtual DtReaderWriterreaderWriter ()
virtual const DtReaderWriterreaderWriter () const
virtual DtPropertyInterfaceproperty ()
virtual const DtPropertyInterfaceproperty () const
- Public Member Functions inherited from DtPropertyInterface
virtual ~DtPropertyInterface ()
int getSize () const
virtual bool isSimilarProperty (const DtPropertyInterface *rhs) const
 Returns true if the readerWriterType is the same.

Protected Attributes

DtClock myClock
DtTime myUpdateTime

Private Member Functions

 DtRwProperty ()
 Not implemented.

Additional Inherited Members

- Public Types inherited from DtPropertyInterface
enum  MergeFlags { Replace = 0x00000001, MinimalSimilarityCheck = 0x00000002, RollUp = 0x00000004, AddMissing = 0x00000008 }

Detailed Description

template<typename _RwType>
class DtRwProperty< _RwType >

Templated class that allows for the definition of a property.

Only templates of this type can be added into the DtRwProperties class.

Constructor & Destructor Documentation

template<typename _RwType>
DtRwProperty< _RwType >::DtRwProperty ( )
private

Not implemented.

template<typename _RwType>
DtRwProperty< _RwType >::DtRwProperty ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
)
template<typename _RwType>
DtRwProperty< _RwType >::DtRwProperty ( const DtString name,
const DtRwProperty< _RwType > &  orig,
DtReaderWriterRegistry parentRegistry = 0 
)
template<typename _RwType>
virtual DtRwProperty< _RwType >::~DtRwProperty ( )
virtual

Member Function Documentation

template<typename _RwType>
DtRwProperty& DtRwProperty< _RwType >::operator= ( const DtRwProperty< _RwType > &  orig)
template<typename _RwType>
virtual char* DtRwProperty< _RwType >::encode ( char ) const
virtual

These methods are for network encoding/decoding for Hla encoding decoding reasons.

Implemented at templated rw level Encodes the variable bindings into the supplied buffer

Implements DtPropertyInterface.

Reimplemented in DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, and DtRwPropertyWithThreshold< DtRwReal >.

template<typename _RwType>
virtual const char* DtRwProperty< _RwType >::decode ( const char )
virtual

Decodes the variable bindings from the specified buffer.

Implements DtPropertyInterface.

template<typename _RwType>
virtual DtString DtRwProperty< _RwType >::stringRep ( const DtString root = "") const
virtual

Implements DtPropertyInterface.

template<typename _RwType>
virtual void DtRwProperty< _RwType >::getSize ( int &  size) const
virtual

Returns the size of this item, iterating over all types.

Implements DtPropertyInterface.

template<typename _RwType>
virtual int DtRwProperty< _RwType >::hlaAlignment ( ) const
virtual

Returns hlaAlignment.

Implements DtPropertyInterface.

template<typename _RwType>
virtual const char* DtRwProperty< _RwType >::propertyType ( ) const
virtual

Typically returns reader/writer type.

Implements DtPropertyInterface.

Reimplemented in DtRwPropertiesRangeItem.

template<typename _RwType>
virtual DtlObjPtr DtRwProperty< _RwType >::getData ( DtlObjPtr  args,
const DtReaderWriter::SearchPaths searchPaths,
const DtVariableBindingsList variableBindings 
)
virtual

Override to allow a variable to be assigned to a property of derived type.

Implements DtPropertyInterface.

template<typename _RwType>
virtual bool DtRwProperty< _RwType >::merge ( const DtPropertyInterface target,
MergeFlags  ,
const DtMergePath path = DtMergePath(),
const std::set< DtString > &  ignore = std::set< DtString >() 
)
virtual

In this case replace does not matter – will replace value regardless.

Implements DtPropertyInterface.

template<typename _RwType>
virtual DtReaderWriter* DtRwProperty< _RwType >::readerWriter ( )
virtual

Returns a ReaderWriter pointer of the property.

Implements DtPropertyInterface.

template<typename _RwType>
virtual const DtReaderWriter* DtRwProperty< _RwType >::readerWriter ( ) const
virtual

Returns a ReaderWriter pointer of the property.

Implements DtPropertyInterface.

template<typename _RwType>
virtual DtPropertyInterface* DtRwProperty< _RwType >::property ( )
virtual

Returns a PropertyInterface pointer of the ReaderWriter.

template<typename _RwType>
virtual const DtPropertyInterface* DtRwProperty< _RwType >::property ( ) const
virtual

Returns a PropertyInterface pointer of the ReaderWriter.

template<typename _RwType>
virtual void DtRwProperty< _RwType >::recordUpdateTime ( ) const
virtual

Stamps the time when updated.

template<typename _RwType>
virtual bool DtRwProperty< _RwType >::wasUpdatedSince ( DtTime  t) const
virtual

Returns true if an update occurred since the specified time.

Reimplemented in DtRwPropertyWithThreshold< _RwType >, DtRwPropertyWithThreshold< DtRwInt >, and DtRwPropertyWithThreshold< DtRwReal >.

template<typename _RwType>
virtual void DtRwProperty< _RwType >::reset ( )
virtual

Override to clear out variable value.

Implements DtPropertyInterface.

Member Data Documentation

template<typename _RwType>
DtClock DtRwProperty< _RwType >::myClock
protected
template<typename _RwType>
DtTime DtRwProperty< _RwType >::myUpdateTime
mutableprotected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)