VR-Forces 5.0.2 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 
69  bool operator==(const DtTargetPriorityList&) const;
70  bool operator!=(const DtTargetPriorityList& rhs) const { return !(*this == rhs); };
71 
75  virtual const char* readerWriterType() const;
76 
78  static const char* theXmlType();
79 
80  virtual const char* xmlType() const
81  {
82  return theXmlType();
83  }
84 
86  void emptyList();
87 
88 protected:
89 
91  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
92  const DtVariableBindingsList& variableBindings);
93 
95  void copyList(const DtTargetPriorityList& orig);
96 
97  virtual DtTargetPriorityEntry* addTargetPriorityEntry(
98  DtTargetPriorityEntry* priEntry);
99 };
bool operator!=(const DtTargetPriorityList &rhs) const
Definition: targetPriorityList.h:70
Definition: symbolString.h:20
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:80
DtTargetPriorityEntry; readable/writeable representation of a prioritized entity type.
Definition: targetPriorityEntry.h:21

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)