VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
noopCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfplan/simCommand.h"
14 #include "vrfplan/vrfplanDefines.h"
15 
18 {
19 public:
21  DtNoopCommand();
22 
24  DtNoopCommand(const DtString& writeName,
25  DtReaderWriterRegistry* parentRegistry = NULL);
26 
28  DtNoopCommand(const DtString & writeName, const DtNoopCommand& orig,
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
32  virtual ~DtNoopCommand();
33 
36 
38  virtual const DtSimCommandMessageType& type() const;
39 
41  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
42  parentRegistry = 0) const;
43 
45  virtual DtString stringRep() const;
46 
48  virtual int netRepSize() const;
49 
51  virtual bool setFromNet(const char* contentBuffer,
52  unsigned contentSize);
53 
55  virtual bool setToNet();
56 
58  static DtSimCommand* creator();
59 
60 protected:
61 };
62 
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
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
DtSimCommand which does nothing.
Definition: noopCommand.h:17
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)