VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
finishTestCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfplan/simCommand.h"
14 #include "vrfplan/vrfplanDefines.h"
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwInt.h>
17 #include <vlutil/vlPrint.h>
18 
20 {
21  DtPass = 0,
22  DtFail = 1,
24 };
25 
28 {
29 public:
32 
34  DtFinishTestCommand(const DtString& writeName,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtFinishTestCommand(const DtString & writeName, const DtFinishTestCommand& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtFinishTestCommand();
43 
46 
48  virtual const DtSimCommandMessageType& type() const;
49 
51  virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
52  parentRegistry = 0) const;
53 
55 
56  virtual DtString messageText() const;
57  virtual void setMessageText(const DtString& text);
59 
61 
62  virtual DtFinishTestStatus testStatus() const;
63  virtual void setTestStatus(DtFinishTestStatus 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 
DtRwString myMessageText
Definition: finishTestCommand.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
DtFinishTestStatus
DtFinishTestCommand.
Definition: finishTestCommand.h:19
Definition: finishTestCommand.h:22
DtRwInt myTestStatus
Definition: finishTestCommand.h:84
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
DtSimCommand - TODO.
Definition: finishTestCommand.h:27
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
Definition: finishTestCommand.h:23
Definition: finishTestCommand.h:21

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)