VR-Forces 4.10 Class Documentation
 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"
34 
38 class DtRwPlanVariable;
40 class DtSupplyEntry;
41 
47 namespace DtBufferSerialize
48 {
56 
57  DT_DLL_vrfutil char *encode(const DtSphere& val, char *buffer);
58  DT_DLL_vrfutil char *encode(const DtRwTranslatableStringObject& val, char* buffer);
59  DT_DLL_vrfutil char *encode(const DtRwObjectType& val, char* buffer);
60  DT_DLL_vrfutil char *encode(const DtRwStringList& val, char* buffer);
61  DT_DLL_vrfutil char *encode(const DtRwIntegerAttributeList& v, char* buffer);
62  DT_DLL_vrfutil char *encode(const DtRwIntegerAttribute& v, char* buffer);
63  DT_DLL_vrfutil char *encode(const DtRwRealAttributeList& v, char* buffer);
64  DT_DLL_vrfutil char *encode(const DtRwRealAttribute& v, char* buffer);
65  DT_DLL_vrfutil char *encode(const DtRwIntegerList& val, char* buffer);
66  DT_DLL_vrfutil char *encode(const DtUUID& val, char* buffer);
67  DT_DLL_vrfutil char *encode(const DtRwUUID& val, char* buffer);
68  DT_DLL_vrfutil char *encode(const DtRwNLengthStringVector& val, char* buffer);
69  DT_DLL_vrfutil char *encode(const DtRwNLengthUUIDVector& val, char* buffer);
70  DT_DLL_vrfutil char *encode(const DtRwJoystickControl& val, char* buffer);
71  DT_DLL_vrfutil char *encode(const DtRwPlanVariable& val, char* buffer);
72  DT_DLL_vrfutil char *encode(const DtRwPlanSimulationObject& val, char* buffer);
73  DT_DLL_vrfutil char *encode(const DtRwOrbatData& val, char *buffer);
74  DT_DLL_vrfutil char *encode(const DtRwWindLevel& val, char *buffer);
75  DT_DLL_vrfutil char *encode(const DtSupplyEntry& val, char *buffer);
77 
78 
86 
87  DT_DLL_vrfutil const char *decode(DtSphere& val, const char *buffer) ;
88  DT_DLL_vrfutil const char *decode(DtRwObjectType& val, const char *buffer);
89  DT_DLL_vrfutil const char *decode(DtRwStringList& val, const char *buffer);
90  DT_DLL_vrfutil const char *decode(DtRwIntegerAttributeList& v, const char* buffer);
91  DT_DLL_vrfutil const char *decode(DtRwIntegerAttribute& v, const char* buffer);
92  DT_DLL_vrfutil const char *decode(DtRwRealAttributeList& v, const char* buffer);
93  DT_DLL_vrfutil const char *decode(DtRwRealAttribute& v, const char* buffer);
94  DT_DLL_vrfutil const char *decode(DtRwIntegerList& val, const char *buffer);
95  DT_DLL_vrfutil const char *decode(DtUUID& val, const char *buffer);
96  DT_DLL_vrfutil const char *decode(DtRwUUID& val, const char *buffer);
97  DT_DLL_vrfutil const char *decode(DtRwNLengthStringVector& val, const char *buffer);
98  DT_DLL_vrfutil const char *decode(DtRwNLengthUUIDVector& val, const char *buffer);
99  DT_DLL_vrfutil const char *decode(DtRwTranslatableStringObject& val, const char *buffer);
100  DT_DLL_vrfutil const char *decode(DtRwJoystickControl& val, const char *buffer);
101  DT_DLL_vrfutil const char *decode(DtRwPlanVariable& val, const char *buffer);
102  DT_DLL_vrfutil const char *decode(DtRwPlanSimulationObject& val, const char *buffer);
103  DT_DLL_vrfutil const char *decode(DtRwOrbatData& val, const char *buffer);
104 
107  DT_DLL_vrfutil const char *decode(std::vector<DtUUID>& val, const char *buffer);
108  DT_DLL_vrfutil const char *decode(boost::unordered_map<DtUUID, DtUUID>& val, const char *buffer);
109  DT_DLL_vrfutil const char *decode(boost::unordered_set<DtUUID>& val, const char *buffer);
110  DT_DLL_vrfutil const char *decode(std::set<DtUUID>& val, const char *buffer);
111  DT_DLL_vrfutil const char *decode(DtRwWindLevel &val, const char *buffer);
112  DT_DLL_vrfutil const char *decode(DtSupplyEntry &val, const char *buffer);
114 
118 
120  DT_DLL_vrfutil int getSize(const DtSphere& v) ;
121  DT_DLL_vrfutil int getSize(const DtRwObjectType& v);
123  DT_DLL_vrfutil int getSize(const DtRwStringList& v);
124  DT_DLL_vrfutil int getSize(const DtRwIntegerList& v);
129  DT_DLL_vrfutil int getSize(const DtUUID& v);
130  DT_DLL_vrfutil int getSize(const DtRwUUID& v);
135  DT_DLL_vrfutil int getSize(const DtRwOrbatData& v);
136  DT_DLL_vrfutil int getSize(const DtRwWindLevel& val);
137  DT_DLL_vrfutil int getSize(const DtSupplyEntry& val);
139 
142  DT_DLL_vrfutil int getSize(const DtSimInterfaceContent* const& contentPtr);
143 
148  DT_DLL_vrfutil char *encode(const DtSimInterfaceContent* const& adminContentPtr, char *buffer);
149 
158  DT_DLL_vrfutil const char *decode(DtSimInterfaceContent*& interfaceContentPtr, const char *buffer);
159 }
160 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
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
class DtRwObjectType:
Definition: rwObjectType.h:18
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
class DtRwIntegerAttributeList:
Definition: rwIntegerAttributeList.h:32
Description: Readable, Writable uuid string.
Definition: rwUUID.h:419
File: rwJoystickControlInformation.h.
Definition: rwJoystickControls.h:28
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts).
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.
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:28
DtRwNLengthUUIDVector is a named, readable/writable vector of DtUUIDs.
Definition: rwNLengthUUIDVector.h:30
class DtRwRealAttributeList:
Definition: rwRealAttributeList.h:29
The DtRwPlanVariable is a base class that minimally implements a plan variable.
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 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)