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();
61 
63  virtual const DtSetMessageType& type() const;
64 
66  virtual DtSetDataRequest * clone(const DtString & name,
67  DtReaderWriterRegistry * parentRegistry = 0) const;
68 
70  virtual DtString stringRep() const;
71 
74  virtual int netRepSize() const;
75 
77  virtual bool setFromNet(const char* contentBuffer,
78  unsigned contentSize);
79 
82  virtual bool setToNet();
83 
84  static DtSetDataRequest * creator();
85 
88  virtual void changeProperty(DtPropertyInterface*);
89 
91  virtual void setStateProperties(const DtRwProperties&);
92  virtual const DtRwProperties& stateProperties() const;
93 
95  virtual void addProperty(const DtPropertyInterface&);
96 
99  virtual void setReplace(bool);
100  virtual bool replace() const;
101 
105  virtual void setValuesArePercentages(bool);
106  virtual bool valuesArePercentages() const;
107 
109  virtual void setAddIfMissing(bool);
110  virtual bool addIfMissing() const;
111 
114  virtual void setProperties(const DtString&);
115  virtual const DtString& properties() const;
116 
117 protected:
123 };
124 
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:122
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:119
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:121
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:118
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:120

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)