VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
issuePlanCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 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 <vrfplan/vrfplanDefines.h>
14 #include <vrfplan/plan.h>
15 #include <readerWriter/rwInt.h>
16 #include <vrfutil/rwUUID.h>
17 
23 {
24 public:
25 
28 
30  DtIssuePlanCommand(const DtString& writeName,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
34  DtIssuePlanCommand(const DtString & writeName, const DtIssuePlanCommand& orig,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  virtual ~DtIssuePlanCommand();
39 
42 
45 
47  virtual const DtSimCommandMessageType& type() const;
48 
50  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
51  parentRegistry = 0) const;
52 
54 
55  virtual const DtUUID& issueTo() const;
56  virtual void setIssueTo(const DtUUID&);
58 
60 
61  virtual const DtPlan& plan() const;
62  virtual void setPlan(const DtPlan& name);
64 
65  virtual int netRepSize() const;
66  virtual bool setFromNet(const char* contentBuffer,
67  unsigned contentSize);
68  virtual bool setToNet();
69 
71  virtual DtString stringRep() const;
72 
73  static DtSimCommand* creator();
74 
75 protected:
76 
80 };
81 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
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.
DtRwUUID myIssueTo
Definition: issuePlanCommand.h:77
uuid class
Definition: rwUUID.h:26
DtRwInt myStatements
Definition: issuePlanCommand.h:78
DtIssuePlanCommand.
Definition: issuePlanCommand.h:22
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().
Description: Readable, Writable int.
Definition: rwInt.h:25
DtPlan myPlan
Definition: issuePlanCommand.h:79
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
class DtPlan:
Definition: plan.h:92
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)