VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwContaminationArea.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 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwInt.h>
14 
21 
23 {
24 public:
25 
28 
30  DtRwContaminationArea(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
31 
33  virtual ~DtRwContaminationArea();
34 
36  DtRwContaminationArea(const DtString& name,
37  const DtRwContaminationArea& orig,
38  DtReaderWriterRegistry* const parentRegistry = NULL);
39 
42 
43  virtual void setAgentType(const DtString&);
44  virtual const DtString& agentType() const;
45 
46  virtual void setTerrainType(const DtString&);
47  virtual const DtString& terrainType() const;
48 
49  virtual void setTopographyType(const DtString&);
50  virtual const DtString& topographyType() const;
51 
52  virtual void setVegetationType(const DtString&);
53  virtual const DtString& vegetationType() const;
54 
58  virtual const char* readerWriterType() const;
59 
61  static const char* theXmlType();
62 
63  virtual const char* xmlType() const
64  {
65  return theXmlType();
66  }
67 
69  bool operator==(const DtRwContaminationArea&) const;
70  bool operator!=(const DtRwContaminationArea& rhs) const { return !(*this == rhs); };
71 
72 protected:
73  DtRwString myAgentType;
77 };
78 
79 namespace DtBufferSerialize
80 {
82  DT_DLL_vrfutil char *encode(const DtRwContaminationArea& val, char *buffer);
83  DT_DLL_vrfutil const char *decode(DtRwContaminationArea &val, const char *buffer) ;
84 }
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwString myTopographyType
Definition: rwContaminationArea.h:75
Definition: readerWriterRegistry.h:39
DtRwString myTerrainType
Definition: rwContaminationArea.h:74
bool operator!=(const DtRwContaminationArea &rhs) const
Definition: rwContaminationArea.h:70
DtRwString myVegetationType
Definition: rwContaminationArea.h:76
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...
virtual const char * xmlType() const
Definition: rwContaminationArea.h:63
class DtRwContaminationArea:
Definition: rwContaminationArea.h:22
#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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
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...
static const char * theXmlType()
The type that is used when archiving to an XML stream.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)