VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
componentSystemDescriptorList.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>
17 
19 class DtFilename;
20 
23 {
24 protected:
25 
28 
29 public:
30 
33  DtReaderWriterRegistry * parentRegistry = 0);
34 
37  DtReaderWriterRegistry * parentRegistry = 0);
38 
44 
46  virtual ~DtComponentSystemDescriptorList() override;
47 
49  parentRegistry = 0);
50 
51  virtual const char* readerWriterType() const override;
52 
54  virtual void emptyList();
55  virtual void copyList(const DtComponentSystemDescriptorList& orig);
56 
59  virtual DtComponentSystemDescriptor* addComponentSystemDescriptor(const DtComponentSystemDescriptor&
60  descriptor);
61 
67  virtual bool removeComponentSystemDescriptor(const DtComponentSystemDescriptor* descriptor);
68 
69  virtual DtComponentSystemDescriptor * lookupComponentSystemDescriptor(const DtString&
70  name) const;
71 
73 
75  void setCollector(DtEntityValidationCollector* collector) { myCollector = collector; }
76  DtEntityValidationCollector* collector() const { return myCollector; }
77 
78 protected:
80  virtual void addComponentSystemDescriptor(DtComponentSystemDescriptor * descriptor);
81  virtual DtListItem * lookupComponentSystemDescriptorItem(const DtString& name) const;
82 
83  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
84  const DtVariableBindingsList& variableBindings) override;
85 
86 private:
87  DtEntityValidationCollector* myCollector = nullptr;
88 };
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...
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
List of DtComponentSystemDescriptor instances.
Definition: componentSystemDescriptorList.h:22
Definition: readerWriterRegistry.h:39
Collects entity validation issues produced during sysdef loading.
Definition: entityValidation.h:37
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.
Descriptor for a DtComponentSystem. Specified a system being added to an entity. This does not actual...
Definition: componentSystemDescriptor.h:25
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.
void setCollector(DtEntityValidationCollector *collector)
Set by AddSystem before loadFile, cleared after; read by getData.
Definition: componentSystemDescriptorList.h:75
DtEntityValidationCollector * collector() const
Definition: componentSystemDescriptorList.h:76

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)