VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pathCostEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
13 #include <readerWriter/rwString.h>
16 
18 {
19 public:
20 
23 
26  parentRegistry = NULL);
28  parentRegistry = NULL);
29 
31  virtual ~DtPathCostEntry();
32 
34  DtPathCostEntry(const DtString& name, const DtPathCostEntry& orig,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36  DtPathCostEntry(const DtSymbolString& name, const DtPathCostEntry& orig,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
41 
43 
44  virtual DtString soilName() const;
45  virtual void setSoilName(const DtString& v);
47 
48  virtual DtString semanticTag() const;
49  virtual void setSemanticTag(const DtString& v);
50 
52 
53  virtual double pathCost() const;
54  virtual void setPathCost(double v);
56 
57  bool operator==(const DtPathCostEntry&) const;
58  bool operator!=(const DtPathCostEntry& rhs) const { return !(*this == rhs); };
59 
63  virtual const char* readerWriterType() const;
64 
66  static const char* theXmlType();
67 
68  virtual const char* xmlType() const
69  {
70  return theXmlType();
71  }
72 
73 protected:
74 
78 
83 
87 
94 
96 };
97 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
Definition: symbolString.h:20
DtRwTemplatedListPtr< DtPathCostEntry, true > DtPathCostEntryList
A reader-writer list of DtPathCostEntry objects.
Definition: pathCostEntry.h:99
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwString mySemanticTag
Parameter Name: semantic-tag Parameter Description: The name of a semantic tag used during navigation...
Definition: pathCostEntry.h:86
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const
Definition: pathCostEntry.h:68
bool operator!=(const DtPathCostEntry &rhs) const
Definition: pathCostEntry.h:58
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myPathCost
Parameter Name: path-cost Parameter Description: The cost function used when crossing terrain of this...
Definition: pathCostEntry.h:93
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: pathCostEntry.h:17
DtRwString mySoilName
Parameter Name: soil-name Parameter Description: The name of a soil type.
Definition: pathCostEntry.h:82

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)