VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
deleteObjectCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfplan/simCommand.h"
13 #include "vrfplan/vrfplanDefines.h"
14 #include <readerWriter/rwString.h>
15 #include <vrfutil/rwUUID.h>
16 
19 {
20 public:
23 
25  DtDeleteObjectCommand(const DtString& writeName,
26  DtReaderWriterRegistry* parentRegistry = NULL);
27 
29  DtDeleteObjectCommand(const DtString & writeName, const DtDeleteObjectCommand& orig,
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  virtual ~DtDeleteObjectCommand() override;
38 
41 
43  virtual const DtSimCommandMessageType& type() const override;
44 
46  virtual DtSimCommand * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
47 
49 
50  virtual const DtUUID& uuid() const;
51  virtual void setUUID(const DtUUID& name);
53 
57  virtual bool doDeleteSelf() const;
58  virtual void setDoDeleteSelf(const bool doDelete);
60 
62  virtual DtString stringRep() const override;
63 
65  virtual int netRepSize() const override;
66 
68  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
69 
71  virtual bool setToNet() override;
72 
74  virtual void setAndRemoveFromOrbat(bool);
75  virtual bool andRemoveFromOrbat() const;
76 
78  static DtSimCommand* creator();
79 
80 protected:
84 };
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: deleteObjectCommand.h:81
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.
uuid class
Definition: rwUUID.h:26
DtRwBoolean myDeleteSelf
Definition: deleteObjectCommand.h:82
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().
DtRwBoolean myAndRemoveFromOrbat
Definition: deleteObjectCommand.h:83
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 subclass for deleting a named object.
Definition: deleteObjectCommand.h:18
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)