VR-Forces 4.8 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 };
virtual void setFixedToNet(char *buffer)
Sets the fixed portion of the buffer to the net. Returns the pointer at the end of this fixed portion...
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
std::map< DtString, DtString > myStatusMessages
Definition: vrfTDLStatusMessage.h:106
The variable portion is the list of keyword/value strings where the strings are the string length fol...
Definition: vrfTDLStatusMessage.h:40
virtual char * setVariableToNet(char *buffer)
Sets the variable portion to the net.
Contains the DtVrfTDLPPLIMessage class declaration.
Definition: vrfTDLStatusMessage.h:27
DtNetU32 myNumberOfStatusMessages
Definition: vrfTDLStatusMessage.h:34
virtual int fixedSize() const
Returns the size of the fixed portion of this message.
virtual int tdlMessageType() const
TDL Message type.
Contains the DtVrfTDLMessage class declaration.
Definition: vrfTDLMessage.h:26
virtual const char * setVariableFromNet(const char *buffer, const char *fixedBuffer, int messageVersion)
Sets the variable portion into internal structures.
virtual int messageVersion() const
Definition: vrfTDLMessage.h:52
const std::map< DtString, DtString > & statusMessages() const
Returns the dictionary of status items.
Definition: vrfTDLStatusMessage.h:89
static DtVrfTDLMessage * creator()
DtVrfTDLStatusMessageStruct()
Definition: vrfTDLStatusMessage.h:29
virtual void printDataToString(DtString &str)
Print message.
virtual int variableSize() const
Returns the variable data size.
const DtVrfTDLMessage & operator=(DtVrfTDLMessage &orig)
assignment operator: shallow; assigns values only
virtual DtVrfTDLMessage * clone() const

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)