VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwIntegerList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
12 #include <readerWriter/rwList.h>
13 
14 class DtRwInt;
15 
20 {
21 public:
22 
25 
28  parentRegistry = NULL);
30  parentRegistry = NULL);
32  parentRegistry = NULL);
33 
35  virtual ~DtRwIntegerList() override;
36 
40 
41  DtRwIntegerList(const DtString& name, const DtRwIntegerList& orig,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
44  DtRwIntegerList(const DtSymbolString& name, const DtRwIntegerList& orig,
45  DtReaderWriterRegistry* parentRegistry = NULL);
47 
52 
61  virtual void addInteger(DtRwInt* rwInt);
62 
66  virtual void removeInteger(DtRwInt* rwInt, DtListItem* listItem);
67 
69  void emptyList();
70 
74  virtual const char* readerWriterType() const override;
75 
77  static const char* theXmlType();
78 
79  virtual const char* xmlType() const override
80  {
81  return theXmlType();
82  }
83 
84 protected:
85 
88  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
89  const DtVariableBindingsList& variableBindings) override;
90 
92  void copyList(const DtRwIntegerList& orig);
93 };
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...
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
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: rwIntegerList.h:79
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts). The list contains pointers to DtRwInt instances.
Definition: rwIntegerList.h:19
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
Description: Readable, Writable int.
Definition: rwInt.h:25
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.
#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

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)