VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
abandonPlanCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 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 <vrfutil/rwUUID.h>
14 
25 #include "vrfplan/vrfplanDefines.h"
27 {
28 public:
29 
32 
34  DtAbandonPlanCommand(const DtString& writeName,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtAbandonPlanCommand(const DtString & writeName, const DtAbandonPlanCommand& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtAbandonPlanCommand();
43 
46 
49 
51  virtual const DtSimCommandMessageType& type() const;
52 
54  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
55  parentRegistry = 0) const;
56 
58 
59  virtual const DtUUID & uuid() const;
60  virtual void setUUID(const DtUUID & name);
62 
63  virtual int netRepSize() const;
64  virtual bool setFromNet(const char* contentBuffer,
65  unsigned contentSize);
66  virtual bool setToNet();
67 
69  virtual DtString stringRep() const;
70 
71  static DtSimCommand* creator();
72 
73 protected:
75 };
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*...
DtRwUUID myUUID
Definition: abandonPlanCommand.h:74
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.
class DtAbandonPlanCommand:
Definition: abandonPlanCommand.h:26
uuid class
Definition: rwUUID.h:26
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)