VR-Forces 4.8 Class Documentation
 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:222
DtRwUUID myUUID
Definition: sendTextMessageCommand.h:75
virtual bool setToNet()
Calls netRep() to create the network buffer.
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.
Definition: readerWriterRegistry.h:39
DtRwString myTextMessage
Definition: sendTextMessageCommand.h:76
Description: Readable, Writable uuid string.
Definition: rwUUID.h:419
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand).
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.
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)