VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sendTextMessageCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 #pragma once
8 
10 #include "vrfplan/simCommand.h"
11 #include <readerWriter/rwString.h>
12 #include <vrfutil/rwUUID.h>
13 
16 {
17 public:
20 
22  DtSendTextMessageCommand(const DtString& writeName,
23  DtReaderWriterRegistry* parentRegistry = NULL);
24 
26  DtSendTextMessageCommand(const DtString & writeName, const DtSendTextMessageCommand& orig,
27  DtReaderWriterRegistry* parentRegistry = NULL);
28 
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
34  virtual ~DtSendTextMessageCommand();
35 
38 
40  const DtSimCommandMessageType& type() const;
41 
43  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
44  parentRegistry = 0) const;
45 
47 
48  virtual const DtUUID& uuid() const;
49  virtual void setUUID(const DtUUID& name);
51 
54  virtual const DtString& textMessage() const;
55  virtual void setTextMessage(const DtString&);
57 
59  virtual DtString stringRep() const;
60 
62  virtual int netRepSize() const;
63 
65  virtual bool setFromNet(const char* contentBuffer,
66  unsigned contentSize);
67 
69  virtual bool setToNet();
70 
72  static DtSimCommand* creator();
73 
74 protected:
77 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
DtRwUUID myUUID
Definition: sendTextMessageCommand.h:75
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
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.
DtRwString myTextMessage
Definition: sendTextMessageCommand.h:76
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:428
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().
DtSimCommand subclass for deleting a named object.
Definition: sendTextMessageCommand.h:15
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)