VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
createSensorFieldOfViewCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include "vrfplan/simCommand.h"
10 #include <readerWriter/rwString.h>
11 #include <readerWriter/rwBoolean.h>
12 #include <vrfutil/rwUUID.h>
13 
17 {
18 public:
19 
22 
25  DtReaderWriterRegistry* parentRegistry = NULL);
26 
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
33  DtReaderWriterRegistry* parentRegistry = NULL);
34 
37 
40 
42 
43  virtual DtString stringRep() const;
44 
45  static DtSimCommand* creator();
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 
61  virtual void setUUID(const DtUUID&);
62  virtual const DtUUID& uuid() const;
64 
67  virtual void setFrontEndAddress(const DtString&);
68  virtual const DtString& frontEndAddress() const;
70 
73  virtual void setCreate(bool);
74  virtual bool create() const;
76 
79  virtual void setCreateControls(bool);
80  virtual bool createControls() const;
82 
85  virtual void setSensorFieldOfView(const DtString&);
86  virtual const DtString& sensorFieldOfView() const;
88 
89 protected:
95 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DtRwUUID myUUID
Definition: createSensorFieldOfViewCommand.h:90
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
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.
DtRwBoolean myCreate
Definition: createSensorFieldOfViewCommand.h:93
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:431
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.
A DtSimCommand subclass which specifies how to manipulate the stealth for a particular front-end or a...
Definition: createSensorFieldOfViewCommand.h:16
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwString myFrontEndAddress
Definition: createSensorFieldOfViewCommand.h:91
virtual const DtSimCommandMessageType & type() const =0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtRwBoolean myCreateControls
Definition: createSensorFieldOfViewCommand.h:94
DtRwString mySensorFieldOfView
Definition: createSensorFieldOfViewCommand.h:92

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)