VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
consoleMessageCommand.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 #ifndef consoleMessageCommand_h
12 #define consoleMessageCommand_h
13 
14 #include "vrfplan/simCommand.h"
15 #include "vrfplan/vrfplanDefines.h"
16 #include <readerWriter/rwString.h>
17 #include <readerWriter/rwInt.h>
18 #include <vlutil/vlPrint.h>
19 
25 {
26 public:
29 
31  DtConsoleMessageCommand(const DtString& writeName,
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
35  DtConsoleMessageCommand(const DtString & writeName, const DtConsoleMessageCommand& orig,
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
39  virtual ~DtConsoleMessageCommand();
40 
43 
45  virtual const DtSimCommandMessageType& type() const;
46 
48  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
49  parentRegistry = 0) const;
50 
52 
53  virtual DtString messageText() const;
54  virtual void setMessageText(const DtString& text);
56 
61 
62  virtual DtNotifyLevelType notifyLevel() const;
63  virtual void setNotifyLevel(DtNotifyLevelType level);
65 
67  virtual DtString stringRep() const;
68 
70  virtual int netRepSize() const;
71 
73  virtual bool setFromNet(const char* contentBuffer,
74  unsigned contentSize);
75 
77  virtual bool setToNet();
78 
80  static DtSimCommand* creator();
81 
82 protected:
85 };
86 
87 #endif
DtRwString myMessageText
Definition: consoleMessageCommand.h:83
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
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
DtConsoleMessageCommand.
Definition: consoleMessageCommand.h:24
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().
Description: Readable, Writable int.
Definition: rwInt.h:25
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
DtRwInt myNotifyLevel
Definition: consoleMessageCommand.h:84
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)