VR-Forces Developer's Guide
 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() override;
55 
57  virtual int tdlMessageType() const override;
58 
59  virtual DtVrfTDLMessage * clone() const override;
60 
61  static DtVrfTDLMessage* creator();
62 
64  virtual void printDataToString(DtString& str) override;
65 
66  virtual int messageVersion() const override;
67 
71  virtual int fixedSize() const override;
72 
74  virtual int variableSize() const override;
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) override;
97 
100  virtual const char* setVariableFromNet(
101  const char* variableBuffer, const char* fixedBuffer, int messageVersion) override;
102 
104  virtual char* setVariableToNet(char* buffer) override;
105 
106 protected:
107  std::map<DtString, DtString> myStatusMessages;
108 };
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:107
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. It is assumed that each subclass of this messa...
virtual int tdlMessageType() const
TDL Message type.
Contains the DtVrfTDLMessage class declaration.
Definition: vrfTDLMessage.h:28
virtual const char * setVariableFromNet(const char *buffer, const char *fixedBuffer, int messageVersion)
Sets the variable portion into internal structures. Returns a pointer at the end of this variable suc...
virtual int messageVersion() const
Definition: vrfTDLMessage.h:54
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)