VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioEventCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfplan/simCommand.h"
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwInt.h>
16 
28 #include "vrfplan/vrfplanDefines.h"
30 {
31 public:
32 
35 
37  DtScenarioEventCommand(const DtString& writeName,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
41  DtScenarioEventCommand(const DtString & writeName, const DtScenarioEventCommand& orig,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
45  virtual ~DtScenarioEventCommand();
46 
49 
52 
54  virtual const DtSimCommandMessageType& type() const;
55 
57  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
58  parentRegistry = 0) const;
59 
61 
62  virtual const DtUUID & uniqueId() const;
63  virtual void setUniqueId(const DtUUID & name);
65 
68  virtual void setOperation(int);
69  virtual int operation() const;
71 
72  virtual int netRepSize() const;
73  virtual bool setFromNet(const char* contentBuffer,
74  unsigned contentSize);
75  virtual bool setToNet();
76 
78  virtual DtString stringRep() const;
79 
80  static DtSimCommand* creator();
81 
82 protected:
85 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
virtual bool setToNet()
Calls netRep() to create the network buffer.
DtRwInt myOperation
Definition: scenarioEventCommand.h:84
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command.
Definition: readerWriterRegistry.h:39
DtRwScenarioEventUUID myUniqueId
Definition: scenarioEventCommand.h:83
Specialized version of the DtRwUUID – creates a new UUID if one is not specified in the file based on...
Definition: rwScenarioEvent.h:46
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand).
Description: Readable, Writable int.
Definition: rwInt.h:25
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
class DtScenarioEventCommand:
Definition: scenarioEventCommand.h:29
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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)