VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwIntegerAttributeList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <readerWriter/rwList.h>
18 #include <vlutil/vlString.h>
19 
20 #include <map>
21 
23 
30 
31 #include "vrfutil/vrfutilDefines.h"
33 {
34 protected:
35 
38 
39 public:
40 
43  DtReaderWriterRegistry* parentRegistry = NULL);
45  DtReaderWriterRegistry* parentRegistry = NULL);
46 
49  DtReaderWriterRegistry* parentRegistry = NULL);
50 
57  std::map<DtString, int>& orig);
58 
60  virtual ~DtRwIntegerAttributeList();
61 
62  virtual DtRwIntegerAttributeList* clone(DtReaderWriterRegistry* parentRegistry = NULL);
63 
66  virtual bool operator==(const DtRwIntegerAttributeList& rhs) const;
67 
69  virtual void emptyList();
70  virtual void copyList(const DtRwIntegerAttributeList& orig);
71 
72  virtual DtRwIntegerAttribute* addIntegerAttribute(const DtRwIntegerAttribute& integerAttribute);
75  virtual const DtRwIntegerAttribute* findIntegerAttribute(
76  const DtRwIntegerAttribute& attribToFind) const;
77 
81  virtual const char* readerWriterType() const;
82 
84  static const char* theXmlType();
85 
86  virtual const char* xmlType() const
87  {
88  return theXmlType();
89  }
90 
93  virtual std::map<int, DtString> toStdIntMap() const;
94  virtual std::map<DtString, int> toStdStringMap() const;
95  virtual void setFromMap(const std::map<int, DtString>&);
96  virtual void setFromMap(const std::map<DtString, int>&);
98 
99 protected:
100  virtual DtRwIntegerAttribute* addIntegerAttribute(DtRwIntegerAttribute* const integerAttribute);
101 
104  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
105  const DtVariableBindingsList& variableBindings);
106 };
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: rwIntegerAttributeList.h:86
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
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...
class DtRwIntegerAttributeList:
Definition: rwIntegerAttributeList.h:32
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: readerWriterRegistry.h:39
class DtRwIntegerAttribute:
Definition: rwIntegerAttribute.h:19
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.
#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...

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)