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 
47  virtual DtString preferenceType() const;
48 
50  virtual DtString alias() const;
51 
54 
55  virtual DtPathCostEntryList& pathCosts();
56  virtual const DtPathCostEntryList& pathCosts() const;
58 
61 
62  virtual void setShouldUseRoads(bool);
63  virtual bool shouldUseRoads() const;
65 
66 protected:
67  virtual void copyPathCostList(const DtRwNavigationPreferenceListEntry& orig);
68 
69 private:
70 
75 };
76 
80 
82 {
83 public:
84 
87 
89  DtRwNavigationPreferenceList(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
91  DtReaderWriterRegistry* const parentRegistry = NULL);
92 
95 
98 
100  virtual ~DtRwNavigationPreferenceList() override;
101 
105  DtRwNavigationPreferenceListEntry* lookup(const DtString& preferenceType);
106 
108  DtRwNavigationPreferenceListEntry* lookupByCostEntry(DtPathCostEntry* entry);
109  virtual const char* readerWriterType() const override;
110 
113  void clearList();
114 
115 protected:
116 
119  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
120  const DtVariableBindingsList& variableBindings) override;
121 
124  virtual void copyList(const DtRwNavigationPreferenceList& orig);
125 
126 };
127 
128 #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
Definition: rwNavigationPreferenceList.h:73
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:71
DtPathCostEntryList myPathCostList
Definition: rwNavigationPreferenceList.h:74
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:81
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:72
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
Definition: pathCostEntry.h:17

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)