VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
changeAirportLightingCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfplan/simCommand.h>
12 #include <vrfplan/vrfplanDefines.h>
13 #include <readerWriter/rwString.h>
14 #include <vrfutil/rwColor.h>
15 
18 {
19 public:
20 
23 
26  DtReaderWriterRegistry* parentRegistry = NULL);
27 
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
34 
37 
38  virtual DtSimCommand* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const;
39 
40  virtual const DtSimCommandMessageType& type() const;
41 
43 
44  virtual void setPrimaryIdentifier(const DtString& val);
45  virtual const DtString& primaryIdentifier() const;
47 
50 
51  virtual void setSecondaryIdentifier(const DtString& val);
52  virtual const DtString& secondaryIdentifier() const;
54 
57 
58  virtual void setTertiaryIdentifier(const DtString& val);
59  virtual const DtString& tertiaryIdentifier() const;
61 
64 
65  virtual void setColor(const DtColor& val);
66  virtual DtColor color() const;
68 
70  virtual DtString stringRep() const;
71 
73  virtual int netRepSize() const;
74 
76  virtual bool setFromNet(const char* contentBuffer,
77  unsigned contentSize);
78 
80  virtual bool setToNet();
81 
83  static DtSimCommand* creator();
84 
85 protected:
90 };
91 
92 
93 
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
DtRwString mySecondaryIdentifier
Definition: changeAirportLightingCommand.h:87
DtRwString myTertiaryIdentifier
Definition: changeAirportLightingCommand.h:88
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Base class for any DtSimCommand which causes changes to airport lighting.
Definition: changeAirportLightingCommand.h:17
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
Definition: color.h:25
DtRwString myPrimaryIdentifier
Definition: changeAirportLightingCommand.h:86
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
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().
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
virtual const DtSimCommandMessageType & type() const =0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtRwColor myColor
Definition: changeAirportLightingCommand.h:89

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)