VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfBufferSerialize.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 #include "vrfutil/vrfutilDefines.h"
16 
17 #include "vrfutil/rwUUID.h"
18 #include "vrfutil/rwSphere.h"
19 #include "vrfutil/rwForceType.h"
20 #include "vrfutil/rwOrbatData.h"
22 #include "vrfutil/rwUnsigned.h"
30 #include "vrfutil/rwStringList.h"
31 #include "vrfutil/rwIntegerList.h"
32 #include "vrfutil/rwHeading.h"
33 #include "vrfutil/rwWindLevel.h"
35 #include <boost/unordered_map.hpp>
36 #include <boost/unordered_set.hpp>
37 
41 class DtRwPlanVariable;
43 class DtSupplyEntry;
44 
50 namespace DtBufferSerialize
51 {
59 
60  DT_DLL_vrfutil char *encode(const DtSphere& val, char *buffer);
61  DT_DLL_vrfutil char *encode(const DtRwTranslatableStringObject& val, char* buffer);
62  DT_DLL_vrfutil char *encode(const DtRwObjectType& val, char* buffer);
63  DT_DLL_vrfutil char *encode(const DtRwStringList& val, char* buffer);
64  DT_DLL_vrfutil char *encode(const DtRwIntegerAttributeList& v, char* buffer);
65  DT_DLL_vrfutil char *encode(const DtRwIntegerAttribute& v, char* buffer);
66  DT_DLL_vrfutil char *encode(const DtRwRealAttributeList& v, char* buffer);
67  DT_DLL_vrfutil char *encode(const DtRwRealAttribute& v, char* buffer);
68  DT_DLL_vrfutil char *encode(const DtRwIntegerList& val, char* buffer);
69  DT_DLL_vrfutil char *encode(const DtUUID& val, char* buffer);
70  DT_DLL_vrfutil char *encode(const DtRwUUID& val, char* buffer);
71  DT_DLL_vrfutil char *encode(const DtRwNLengthStringVector& val, char* buffer);
72  DT_DLL_vrfutil char *encode(const DtRwNLengthUUIDVector& val, char* buffer);
73  DT_DLL_vrfutil char *encode(const DtRwJoystickControl& val, char* buffer);
74  DT_DLL_vrfutil char *encode(const DtRwPlanVariable& val, char* buffer);
75  DT_DLL_vrfutil char *encode(const DtRwPlanSimulationObject& val, char* buffer);
76  DT_DLL_vrfutil char *encode(const DtRwOrbatData& val, char *buffer);
77  DT_DLL_vrfutil char *encode(const DtRwWindLevel& val, char *buffer);
78  DT_DLL_vrfutil char *encode(const DtSupplyEntry& val, char *buffer);
80 
81 
89 
90  DT_DLL_vrfutil const char *decode(DtSphere& val, const char *buffer) ;
91  DT_DLL_vrfutil const char *decode(DtRwObjectType& val, const char *buffer);
92  DT_DLL_vrfutil const char *decode(DtRwStringList& val, const char *buffer);
93  DT_DLL_vrfutil const char *decode(DtRwIntegerAttributeList& v, const char* buffer);
94  DT_DLL_vrfutil const char *decode(DtRwIntegerAttribute& v, const char* buffer);
95  DT_DLL_vrfutil const char *decode(DtRwRealAttributeList& v, const char* buffer);
96  DT_DLL_vrfutil const char *decode(DtRwRealAttribute& v, const char* buffer);
97  DT_DLL_vrfutil const char *decode(DtRwIntegerList& val, const char *buffer);
98  DT_DLL_vrfutil const char *decode(DtUUID& val, const char *buffer);
99  DT_DLL_vrfutil const char *decode(DtRwUUID& val, const char *buffer);
100  DT_DLL_vrfutil const char *decode(DtRwNLengthStringVector& val, const char *buffer);
101  DT_DLL_vrfutil const char *decode(DtRwNLengthUUIDVector& val, const char *buffer);
102  DT_DLL_vrfutil const char *decode(DtRwTranslatableStringObject& val, const char *buffer);
103  DT_DLL_vrfutil const char *decode(DtRwJoystickControl& val, const char *buffer);
104  DT_DLL_vrfutil const char *decode(DtRwPlanVariable& val, const char *buffer);
105  DT_DLL_vrfutil const char *decode(DtRwPlanSimulationObject& val, const char *buffer);
106  DT_DLL_vrfutil const char *decode(DtRwOrbatData& val, const char *buffer);
107 
110  DT_DLL_vrfutil const char *decode(std::vector<DtUUID>& val, const char *buffer);
111  DT_DLL_vrfutil const char *decode(boost::unordered_map<DtUUID, DtUUID>& val, const char *buffer);
112  DT_DLL_vrfutil const char *decode(boost::unordered_set<DtUUID>& val, const char *buffer);
113  DT_DLL_vrfutil const char *decode(std::set<DtUUID>& val, const char *buffer);
114  DT_DLL_vrfutil const char *decode(DtRwWindLevel &val, const char *buffer);
115  DT_DLL_vrfutil const char *decode(DtSupplyEntry &val, const char *buffer);
117 
121 
123  DT_DLL_vrfutil int getSize(const DtSphere& v) ;
124  DT_DLL_vrfutil int getSize(const DtRwObjectType& v);
126  DT_DLL_vrfutil int getSize(const DtRwStringList& v);
127  DT_DLL_vrfutil int getSize(const DtRwIntegerList& v);
132  DT_DLL_vrfutil int getSize(const DtUUID& v);
133  DT_DLL_vrfutil int getSize(const DtRwUUID& v);
138  DT_DLL_vrfutil int getSize(const DtRwOrbatData& v);
139  DT_DLL_vrfutil int getSize(const DtRwWindLevel& val);
140  DT_DLL_vrfutil int getSize(const DtSupplyEntry& val);
142 
145  DT_DLL_vrfutil int getSize(const DtSimInterfaceContent* const& contentPtr);
146 
151  DT_DLL_vrfutil char *encode(const DtSimInterfaceContent* const& adminContentPtr, char *buffer);
152 
161  DT_DLL_vrfutil const char *decode(DtSimInterfaceContent*& interfaceContentPtr, const char *buffer);
162 }
163 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: sphere.h:22
DtSupplyEntry.
Definition: supplyEntry.h:26
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
class DtRwIntegerAttributeList:
Definition: rwIntegerAttributeList.h:32
Contains the DtUUID class declaration.
uuid class
Definition: rwUUID.h:26
File: rwJoystickControlInformation.h.
Definition: rwJoystickControls.h:28
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts). The list contains pointers to DtRwInt instances.
Definition: rwIntegerList.h:19
Definition: rwOrbatData.h:20
class DtRwIntegerAttribute:
Definition: rwIntegerAttribute.h:19
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
The DtRwPlanSimulationObject is a variable that is used in the plan language to represent a simulatio...
Definition: rwPlanSimulationObject.h:17
DtRwTranslatableStringObject is a simple class that will keep track of strings that can be translated...
Definition: rwTranslatableStringObject.h:31
DtRwNLengthUUIDVector is a named, readable/writable vector of DtUUIDs. Can be used in place of a NLen...
Definition: rwNLengthUUIDVector.h:30
class DtRwRealAttributeList:
Definition: rwRealAttributeList.h:29
The DtRwPlanVariable is a base class that minimally implements a plan variable. Subclasses will imple...
Definition: rwPlanVariable.h:18
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
Definition: rwStringList.h:20
Definition: simInterfaceContent.h:45
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
Reader-Writer wind level specified by floor altitude, speed and direction.
Definition: rwWindLevel.h:18
class DtRwRealAttribute:
Definition: rwRealAttribute.h:19

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)