19 #include <vlutil/vlTime.h>
25 template <
typename _RwType>
46 virtual char*
encode(
char*)
const;
49 virtual const char*
decode(
const char*);
67 virtual void getSelf(DtlObjPtr args,
115 virtual void reset();
131 template <
typename _RwType>
150 virtual char*
encode(
char*)
const;
243 virtual char*
encode(
char*)
const;
245 virtual const char*
decode(
const char*);
247 virtual void getSize(
int& size)
const;
409 #define rwProperties_INL_
410 #include <readerWriter/rwProperty.inl>
411 #undef rwProperties_INL_
virtual unsigned disRecordType() const
If this property is published, which DIS record type should it use.
static void setDefaultThreshold(double percentage)
Changes the default threshold for cases when setThreshold() has not been called.
double myThreshold
Definition: rwProperty.h:205
DtClock myClock
Definition: rwProperty.h:119
#define DT_DLL_readerWriter
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: readerWriterDefines.h:34
virtual void setPropertyName(const DtString &propertyName)
Sets name of this property. Should generally only be called when initially created.
Definition: rwProperty.h:65
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: symbolString.h:20
virtual DtPropertyInterface * property()
virtual char * encode(char *) const
These methods are for network encoding/decoding for Hla encoding decoding reasons.
unsigned myDisRecordType
Definition: rwProperty.h:121
This class is similar to DtRwProperty, but allows you to specify a threshold at which the value shoul...
Definition: rwProperty.h:132
virtual const char * decode(const char *)
Decodes the variable bindings from the specified buffer.
virtual void reset()
Override to clear out variable value.
Definition: rwProperty.h:261
virtual int hlaAlignment() const
Returns alignment necessary to encode this item in HLA.
Definition: rwProperty.h:365
voidpf void uLong size
Definition: ioapi.h:39
Definition: readerWriter.h:85
virtual void setMaxUpdateInterval(DtTime interval)
Changes the maximum time between updates if data has changed but has not crossed the threshold for an...
static void setDefaultMaxUnchangedUpdateInterval(DtTime interval)
Changes the default max unchanged update interval for cases when setMaxUnchangedUpdateInterval() has ...
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const
Definition: rwProperty.h:255
Definition: rwProperty.h:335
virtual bool wasUpdatedSince(DtTime t) const
Returns true if an update occurred since the specified time.
Definition: rwProperty.h:214
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
Definition: rwProperty.h:305
virtual DtString stringRep(const DtString &root="") const
DtTime myUpdateTime
Definition: rwProperty.h:120
DtRwPropertyWithThreshold()
Not implemented.
static double myDefaultThreshold
Definition: rwProperty.h:204
DtTime myMaxUnchangedUpdateInterval
Definition: rwProperty.h:211
virtual DtReaderWriter * readerWriter()
Definition: rwProperty.h:350
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
bool myThresholdingEnabled
Whether thresholding is currently enabled.
Definition: rwProperty.h:196
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
static DtTime myDefaultMaxUnchangedUpdateInterval
Definition: rwProperty.h:210
virtual void setDebugEnabled(bool en)
std::vector< DtMergePathStruct > DtMergePath
Definition: readerWriterFactory.h:181
virtual void setMaxUnchangedUpdateInterval(DtTime interval)
Changes the maximum time between updates if data has changed but has not crossed the threshold for an...
DtRwPropertyWithThreshold & operator=(const DtRwPropertyWithThreshold &orig)
Definition: rwProperty.h:320
virtual bool isDebugEnabled() const
Enables debug output.
Definition: rwProperty.h:290
Definition: rwProperty.h:230
DtRwProperty()
Not implemented.
_RwType myLastEncodedValue
The value at the last time the value was encoded.
Definition: rwProperty.h:199
Definition: rwProperty.h:395
virtual ~DtRwPropertyWithThreshold()
bool myDebugEnabled
Definition: rwProperty.h:124
static const DtVariableBindingsList & nullVariableReference()
DtTime myLastEncodeTime
The time the value was last encoded.
Definition: rwProperty.h:202
DtRwProperty & operator=(const DtRwProperty &orig)
Defines the DtPropertyInterface class, the interface for all property classes.
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.
Definition: rwProperty.h:275
virtual bool isPublished() const
Whether this property should be published.
virtual void setThreshold(double percentage)
Changes the threshold for when an update should be sent.
bool myIsPublished
Definition: rwProperty.h:122
virtual void setIsPublished(bool isPub)
Templated class that allows for the definition of a property.
Definition: rwProperty.h:26
virtual bool wasUpdatedSince(DtTime t) const
Returns true if an update occurred since the specified time and the current value is at least _Thresh...
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 void setDisRecordType(unsigned recType)
virtual bool isSimilarProperty(const DtPropertyInterface *rhs, bool strict=true) const
Returns true if the readerWriterType is the same.
virtual DtSymbolString propertyName() const
The name of this property.
Definition: rwProperty.h:62
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
virtual char * encode(char *) const
These methods are for network encoding/decoding for HLA encoding decoding reasons.
virtual void enableThresholding(bool enable)
Enables or disables thresholding of this property. Enabled by default.
static DtTime myDefaultMaxUpdateInterval
Definition: rwProperty.h:207
virtual void copy(const DtPropertyInterface &rhs)
Copies the given property into the current one as long as the types are the same. ...
DtTime myMaxUpdateInterval
Definition: rwProperty.h:208
virtual const char * propertyType() const
Typically returns reader/writer type.
static void setDefaultMaxUpdateInterval(DtTime interval)
Changes the default max update interval for cases when setMaxUpdateInterval() has not been called...
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths(), const DtVariableBindingsList &variableBindings=DtReaderWriter::nullVariableReference())
virtual void recordUpdateTime() const
Stamps the time when updated.
Definition: rwProperty.h:380
MergeFlags
Determines how two lists of properties will be merged by the merge function.
Definition: propertyInterface.h:53