VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfTDLStatusMessage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
12 
13 #include "vrfmsgs/vrfTDLMessage.h"
14 #include <matrix/vlVector.h>
15 #include <vlpi/entityType.h>
16 
17 #include <map>
18 
23 
26 
28 {
31  {
32  }
33 
35 };
36 
39 
41 {
42 public:
43 
46 
49 
52 
54  virtual ~DtVrfTDLStatusMessage();
55 
57  virtual int tdlMessageType() const;
58 
59  virtual DtVrfTDLMessage * clone() const;
60 
61  static DtVrfTDLMessage* creator();
62 
64  virtual void printDataToString(DtString& str);
65 
66  virtual int messageVersion() const;
67 
71  virtual int fixedSize() const;
72 
74  virtual int variableSize() const;
75 
77  virtual void addStatusMessage(const DtString& key, const DtString& value);
78 
80  virtual void removeStatusMessage(const DtString&);
81 
83  virtual int numberOfStatusMessages() const;
84 
86  virtual DtString statusMessage(const DtString&) const;
87 
89  const std::map<DtString, DtString>& statusMessages() const
90  {
91  return myStatusMessages;
92  }
93 
94 protected:
96  virtual void setFixedToNet(char* buffer);
97 
100  virtual const char* setVariableFromNet(const char* variableBuffer, const char* fixedBuffer, int messageVersion);
101 
103  virtual char* setVariableToNet(char* buffer);
104 
105 protected:
106  std::map<DtString, DtString> myStatusMessages;
107 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)