VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
changeCloudLayerCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfplan/simCommand.h"
14 #include "vrfplan/vrfplanDefines.h"
16 #include <readerWriter/rwReal.h>
17 #include <readerWriter/rwInt.h>
18 #include "vrfutil/rwUUID.h"
19 
26 {
27 
28 public:
29 
32 
34  DtChangeCloudLayerCommand(const DtString& writeName,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtChangeCloudLayerCommand(const DtString & writeName, const DtChangeCloudLayerCommand& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtChangeCloudLayerCommand();
43 
46 
48  virtual const DtSimCommandMessageType& type() const;
49 
51  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
52  parentRegistry = 0) const;
53 
54  virtual int netRepSize() const;
55  virtual bool setFromNet(const char* contentBuffer,
56  unsigned contentSize);
57  virtual bool setToNet();
58 
60 
61  virtual void setCloudType(CloudLayerCloudType factor);
62  virtual CloudLayerCloudType cloudType() const;
64  virtual bool cloudTypeSpecified() const;
66  virtual void clearCloudType();
68 
70 
71  virtual void setCloudAltitude(double value);
72  virtual double cloudAltitude() const;
74  virtual bool cloudAltitudeSpecified() const;
76  virtual void clearCloudAltitude();
78 
80 
81  virtual void setCloudThickness(double value);
82  virtual double cloudThickness() const;
84  virtual bool cloudThicknessSpecified() const;
86  virtual void clearCloudThickness();
88 
90 
91  virtual void setCornerRadius(double value);
92  virtual double cornerRadius() const;
94  virtual bool cornerRadiusSpecified() const;
96  virtual void clearCornerRadius();
98 
100 
101  virtual void setCloudDensity(double value);
102  virtual double cloudDensity() const;
104  virtual bool cloudDensitySpecified() const;
106  virtual void clearCloudDensity();
108 
110 
111  virtual void setLightningPresent(bool isPresent);
112  virtual bool lightningPresent() const;
114  virtual bool lightningPresentSpecified() const;
116  virtual void clearLightningPresent();
118 
119  virtual bool operator==(const DtChangeCloudLayerCommand&) const;
120  virtual bool operator!=(const DtChangeCloudLayerCommand& rhs) const
121  {
122  return !(*this == rhs);
123  }
124 
126  virtual void setAllValuesSpecified(bool);
127 
129  virtual DtString stringRep() const;
130 
131  static DtSimCommand* creator();
132 
134  virtual void setUUID(const DtUUID&);
135  virtual const DtUUID& uuid() const;
136 
137  virtual bool fromXml(const DtString& s);
138  virtual bool fromXmlFile(const DtFilename& s);
139 
140 protected:
147 
149 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwUUID myUUID
Definition: changeCloudLayerCommand.h:148
virtual bool fromXmlFile(const DtFilename &)
Restores object from given xml file.
DtRwBoolean myLightningPresent
Definition: changeCloudLayerCommand.h:146
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwInt myCloudType
Definition: changeCloudLayerCommand.h:141
CloudLayerCloudType
Definition: vrfCloudLayerStateEnums.h:14
virtual bool fromXml(const DtString &)
Restores object from given xml string. Returns true if valid.
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:431
Contains the enums for cloud layers.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
DtRwReal myCornerRadius
Definition: changeCloudLayerCommand.h:144
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myCloudAltitude
Definition: changeCloudLayerCommand.h:142
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
A DtSimCommand subclass which specifies a change to the cloud layer settings for the specified cloud ...
Definition: changeCloudLayerCommand.h:25
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
virtual bool operator!=(const DtChangeCloudLayerCommand &rhs) const
Definition: changeCloudLayerCommand.h:120
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual const DtSimCommandMessageType & type() const =0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtRwReal myCloudThickness
Definition: changeCloudLayerCommand.h:143
DtRwReal myCloudDensity
Definition: changeCloudLayerCommand.h:145

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)