VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
restartPlanCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 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 
24 #include "vrfplan/vrfplanDefines.h"
26 {
27 public:
28 
31 
33  DtRestartPlanCommand(const DtString& writeName,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  DtRestartPlanCommand(const DtString & writeName, const DtRestartPlanCommand& orig,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
41  virtual ~DtRestartPlanCommand();
42 
45 
48 
50  virtual const DtSimCommandMessageType& type() const;
51 
53  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
54  parentRegistry = 0) const;
55 
57 
58  virtual const DtUUID & uuid() const;
59  virtual void setUUID(const DtUUID & name);
61 
62  virtual int netRepSize() const;
63  virtual bool setFromNet(const char* contentBuffer,
64  unsigned contentSize);
65  virtual bool setToNet();
66 
68  virtual DtString stringRep() const;
69 
70  static DtSimCommand* creator();
71 
72 protected:
74 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
class DtRestartPlanCommand:
Definition: restartPlanCommand.h:25
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
DtRwUUID myUUID
Definition: restartPlanCommand.h:73
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
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.
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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)