VR-Forces 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() override;
35 
38 
40  virtual const DtSimCommandMessageType& type() const override;
41 
43  virtual DtSimCommand * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
44 
46 
47  virtual const DtUUID& uuid() const;
48  virtual void setUUID(const DtUUID& name);
50 
53  virtual const DtString& textMessage() const;
54  virtual void setTextMessage(const DtString&);
56 
58  virtual DtString stringRep() const override;
59 
61  virtual int netRepSize() const override;
62 
64  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
65 
67  virtual bool setToNet() override;
68 
70  static DtSimCommand* creator();
71 
72 protected:
75 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwUUID myUUID
Definition: sendTextMessageCommand.h:73
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:74
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().
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)