VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwNavigationPreferenceList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rwNavigationPreferenceList.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef rwNavigationPreferenceList_H_
13 #define rwNavigationPreferenceList_H_
14 
15 #include <readerWriter/rwList.h>
17 #include <readerWriter/rwString.h>
19 
21 {
22 public:
23 
25  DtReaderWriterRegistry* const parentRegistry = NULL);
27  DtReaderWriterRegistry* const parentRegistry = NULL);
28 
29  virtual ~DtRwNavigationPreferenceListEntry() override;
30 
33  DtReaderWriterRegistry* parentRegistry = NULL);
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
40 
44  virtual const char* readerWriterType() const override;
45 
50  virtual DtString preferenceType() const;
51 
52  virtual DtString alias() const;
53  virtual void setAlias(const DtString& alias);
54 
57 
58  virtual DtPathCostEntryList& pathCosts();
59  virtual const DtPathCostEntryList& pathCosts() const;
61 
64 
65  virtual void setShouldUseRoads(bool);
66  virtual bool shouldUseRoads() const;
68 
69 
70 protected:
71  virtual void copyPathCostList(const DtRwNavigationPreferenceListEntry& orig);
72 
73 private:
74 
80 };
81 
85 
87 {
88 public:
89 
92 
94  DtRwNavigationPreferenceList(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
96  DtReaderWriterRegistry* const parentRegistry = NULL);
97 
100 
103 
105  virtual ~DtRwNavigationPreferenceList() override;
106 
108  DtRwNavigationPreferenceListEntry* lookup(const DtString& preferenceType);
109 
111  DtRwNavigationPreferenceListEntry* lookupByCostEntry(DtPathCostEntry* entry);
112  virtual const char* readerWriterType() const override;
113 
116  void clearList();
117 
118 protected:
119 
122  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
123  const DtVariableBindingsList& variableBindings) override;
124 
127  virtual void copyList(const DtRwNavigationPreferenceList& orig);
128 
129 };
130 
131 #endif
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...
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtRwBoolean myShouldUseRoads
Deprecated! Use myRoadMovementPreference instead.
Definition: rwNavigationPreferenceList.h:79
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwString myPreferenceType
Definition: rwNavigationPreferenceList.h:75
DtPathCostEntryList myPathCostList
Definition: rwNavigationPreferenceList.h:77
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
class DtRwNavigationPreferenceList:
Definition: rwNavigationPreferenceList.h:86
Definition: rwNavigationPreferenceList.h:20
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
DtRwString myAlias
Definition: rwNavigationPreferenceList.h:76
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
Definition: pathCostEntry.h:17

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)