VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setStateProperties.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
21 #include <readerWriter/rwBoolean.h>
22 
41 {
42 
43 public:
44 
47 
50  DtSetStateProperties(const DtString & writeName,
51  DtReaderWriterRegistry * parentRegistry = 0);
52 
54  DtSetStateProperties(const DtString & writeName, const DtSetStateProperties &
55  orig, DtReaderWriterRegistry * parentRegistry = 0);
56 
59 
60  virtual ~DtSetStateProperties() override;
61 
63  virtual const DtSetMessageType& type() const override;
64 
66  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
67 
69  virtual DtString stringRep() const override;
70 
73  virtual int netRepSize() const override;
74 
76  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
77 
80  virtual bool setToNet() override;
81 
82  static DtSetDataRequest * creator();
83 
86  virtual void changeProperty(DtPropertyInterface*);
87 
89  virtual void setStateProperties(const DtRwProperties&);
90  virtual const DtRwProperties& stateProperties() const;
91 
93  virtual void addProperty(const DtPropertyInterface&);
94 
97  virtual void setReplace(bool);
98  virtual bool replace() const;
99 
103  virtual void setValuesArePercentages(bool);
104  virtual bool valuesArePercentages() const;
105 
107  virtual void setAddIfMissing(bool);
108  virtual bool addIfMissing() const;
109 
112  virtual void setProperties(const DtString&);
113  virtual const DtString& properties() const;
114 
115 protected:
121 };
122 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtRwString myProperties
Definition: setStateProperties.h:120
File: setStateProperties.h.
Definition: setStateProperties.h:40
SpecificRwType * addProperty(DtReaderWriter &properties, const DtString &propertyName)
Adds a property with the specified name to the given set of properties. SpecificRwType must be a subc...
DtRwBoolean myReplace
Definition: setStateProperties.h:117
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
Interface class used to define minimal interface for a property. The DtPropertyInterface class provid...
Definition: propertyInterface.h:53
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
DtRwBoolean myAddIfMissing
Definition: setStateProperties.h:119
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
DtRwProperties myStateProperties
Definition: setStateProperties.h:116
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
DtRwBoolean myValuesArePercentages
Definition: setStateProperties.h:118

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)