VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetPriorityList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <readerWriter/rwList.h>
14 
16 class DtEntityType;
17 
24 {
25 public:
26 
27  //default constructor
29 
32  parentRegistry = NULL);
34  parentRegistry = NULL);
35 
38  orig, DtReaderWriterRegistry* parentRegistry = NULL);
40  orig, DtReaderWriterRegistry* parentRegistry = NULL);
42  orig, DtReaderWriterRegistry* parentRegistry = NULL);
43 
45 
47  virtual ~DtTargetPriorityList();
48 
49  virtual DtTargetPriorityList* clone(const DtString& name,
50  DtReaderWriterRegistry* parentRegistry = NULL) const;
51  virtual DtTargetPriorityList* clone(const DtSymbolString& name,
52  DtReaderWriterRegistry* parentRegistry = NULL) const;
53 
56  virtual DtTargetPriorityEntry* addTargetPriorityEntry(
57  const DtTargetPriorityEntry& priEntry);
58  virtual DtTargetPriorityEntry* addTargetPriorityEntry(
59  const DtEntityType& priEntry);
60 
63  virtual int priority(const DtEntityType& entityType, DtEntityType*
64  bestMatch = NULL) const;
65 
66  virtual DtListItem* lookupTargetPriorityEntry(const DtEntityType&
67  entityType) const;
68 
70  virtual std::list<DtEntityType> priorityTypes() const;
71 
72  bool operator==(const DtTargetPriorityList&) const;
73  bool operator!=(const DtTargetPriorityList& rhs) const { return !(*this == rhs); };
74 
78  virtual const char* readerWriterType() const;
79 
81  static const char* theXmlType();
82 
83  virtual const char* xmlType() const
84  {
85  return theXmlType();
86  }
87 
89  void emptyList();
90 
91 protected:
92 
94  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
95  const DtVariableBindingsList& variableBindings);
96 
98  void copyList(const DtTargetPriorityList& orig);
99 
100  virtual DtTargetPriorityEntry* addTargetPriorityEntry(
101  DtTargetPriorityEntry* priEntry);
102 };
bool operator!=(const DtTargetPriorityList &rhs) const
Definition: targetPriorityList.h:73
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
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
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DtTargetPriorityList is a readable/writable list of DtTargetPriorityEntrys. It&#39;s sorted by the entity...
Definition: targetPriorityList.h:23
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
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 const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: targetPriorityList.h:83
DtTargetPriorityEntry; readable/writeable representation of a prioritized entity type.
Definition: targetPriorityEntry.h:21

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)