VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
templatedDecoders.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfutil/vrfutilDefines.h>
12 
14 
15 class DtRwActivities;
16 class DtRwHazardType;
19 class DtRwUserQuestion;
22 
23 namespace DtBufferSerialize
24 {
25  DT_DLL_vrfutil int getSize(const DtRwActivities& val);
26  DT_DLL_vrfutil const char *decode(DtRwActivities& val, const char *buffer) ;
27  DT_DLL_vrfutil char *encode(const DtRwActivities& val, char *buffer);
28 
29  DT_DLL_vrfutil int getSize(const DtRwHazardType& val);
30  DT_DLL_vrfutil char *encode(const DtRwHazardType& val, char *buffer);
31  DT_DLL_vrfutil const char *decode(DtRwHazardType &val, const char *buffer) ;
32 
34  DT_DLL_vrfutil char *encode(const DtRwHazardAreaInformation& val, char *buffer);
35  DT_DLL_vrfutil const char *decode(DtRwHazardAreaInformation &val, const char *buffer) ;
36 
38  DT_DLL_vrfutil char *encode(const DtRwAffectableEngineeringObject& val, char *buffer);
39  DT_DLL_vrfutil const char *decode(DtRwAffectableEngineeringObject& val, const char *buffer);
40 
41  DT_DLL_vrfutil int getSize(const DtRwUserQuestion& list);
42  DT_DLL_vrfutil char* encode(const DtRwUserQuestion& list, char* buffer);
43  DT_DLL_vrfutil const char* decode(DtRwUserQuestion& list, const char* buffer);
44 
48 
50  DT_DLL_vrfutil const char* decode(DtRwDynamicTerrainInformation&, const char*);
52 }
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
A hazard type contains hazard area information and the type it applies to.
Definition: rwHazardAreaInformation.h:33
Information on a single possible change for a particular geometry feature in the terrain.
Definition: rwDynamicTerrainChangeInformation.h:21
Definition: rwHazardAreaInformation.h:122
Information on what dynamic changes are possible for a particular geometry feature in the terrain...
Definition: rwDynamicTerrainInformation.h:23
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...
#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
DtRwAffectableEngineeringObject holds a the information needed to know how a unit may create a type o...
Definition: rwAffectableEngineeringObject.h:22
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...
A DtRwActivities list will contain a list of activities (key/value pair) by entity type that will sup...
Definition: rwActivities.h:20
DtRwUserQuestion contains the contents of a question that is asked to the user.
Definition: rwUserQuestion.h:22

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)