VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simResourceList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 #include <vlutil/vlMachineTypes.h>
17 #include <readerWriter/rwList.h>
18 
20 class DtResourceManager;
21 class DtSimResource;
22 
26 
27 #include "vrfutil/vrfutilDefines.h"
29 {
30 
31 public:
32 
35 
38  parentRegistry = 0);
39 
41  DtSimResourceList(const DtSimResourceList& orig, DtSimResource * parent,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
46 
48  virtual ~DtSimResourceList();
49 
50  virtual void addResource(DtSimResource * resource);
51 
57  virtual bool removeResource(DtSimResource * resource);
58 
59  virtual DtSimResourceList * clone(DtSimResource * parent,
60  DtReaderWriterRegistry* parentRegistry = 0) const;
61 
62  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
63  const DtVariableBindingsList& variableBindings);
64 
65  virtual DtSimResource * parent() const;
66  virtual void setParent(DtSimResource * parent);
67 
68  virtual void addResourceToParent(DtSimResource * resource);
69 
70  virtual void copyList(const DtSimResourceList& orig, DtReaderWriterRegistry*
71  parentRegistry = 0);
72 
76  virtual const char* readerWriterType() const;
77 
79  static const char* theXmlType();
80 
81  virtual const char* xmlType() const
82  {
83  return theXmlType();
84  }
85 
86  bool operator==(const DtSimResourceList&) const;
87 
88 protected:
89 
92 };
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
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.
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: simResourceList.h:81
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.
class DtSimResourceList:
Definition: simResourceList.h:28
DtSimResource is an abstract base class that can be used to create a hierarchical resource list of a ...
Definition: simResource.h:41
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
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...
DtSimResource * myParent
The resource for which this list maintains sub resources.
Definition: simResourceList.h:91

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)