VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwSpawnDataList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
17 #pragma once
18 
19 #include "vrfmsgs/vrfmsgsDefines.h"
20 #include <readerWriter/rwList.h>
21 #include "vrfutil/rwUUID.h"
22 
23 class DtRwSpawnData;
24 
26 {
27 
28 //***********************************************************************
30 //***********************************************************************
31 protected:
34 
35 public:
37  DtRwSpawnDataList(const DtString & name,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
40  DtRwSpawnDataList(const DtSymbolString & name,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
45  DtReaderWriterRegistry* parentRegistry = NULL);
46 
48  virtual DtRwSpawnDataList* clone(DtReaderWriterRegistry* parentRegistry);
49 
51  virtual ~DtRwSpawnDataList() override;
52 
57 
61  virtual const char* readerWriterType() const override;
62 
63 protected:
67  void copyList(const DtRwSpawnDataList& orig);
68 
69 public:
74  void deleteList();
75 
77  virtual DtRwSpawnData* lookUpTemplateByUUID(
78  const DtUUID& templateUUID) const;
79 
81  virtual DtRwSpawnData* lookUpTemplateByName(
82  const DtString& templateName) const;
83 
87  virtual bool deleteTemplate(const DtUUID& templateName);
88 
91  virtual DtString stringRep();
92 
93 //*******************************************************************
95 //*******************************************************************
96 
100  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
101  const DtVariableBindingsList& variableBindings) override;
102 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
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...
Definition: rwSpawnDataList.h:25
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
Base library for data that is used to control how spawn points generate entities. This data structure...
Definition: rwSpawnData.h:37
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
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.

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)