VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwStringList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include <readerWriter/rwList.h>
12 #include "vrfutil/vrfutilDefines.h"
13 
17 
18 class DtRwString;
19 
21 {
22 public:
23 
26 
28  DtRwStringList(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
29  DtRwStringList(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
30 
32  virtual ~DtRwStringList();
33 
36  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
37  const DtVariableBindingsList& variableBindings);
38 
40  DtRwStringList(const DtRwStringList& orig, DtReaderWriterRegistry* const parentRegistry = NULL);
41 
44 
45  virtual void emptyList();
46 
47  virtual const char* readerWriterType() const;
48 
50  static const char* theXmlType();
51 
52  virtual const char* xmlType() const
53  {
54  return theXmlType();
55  }
56 
58  virtual DtRwString* add(const DtString&);
59 
61  virtual DtRwString* add(DtRwString*);
63  virtual bool contains(const DtString& s) const;
65  virtual DtRwString* removeInternal(const DtString& s);
68  virtual void removeAndDelete(const DtString& s);
71  virtual DtString prettyPrint() const;
72 
73 protected:
76  virtual DtListItem* getListItem(const DtString& s) const;
78  void emptyListInternal();
80  void copyList(const DtRwStringList& orig);
81 };
Definition: symbolString.h:20
A Readable, Writable version of DtList.
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.
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual DtString prettyPrint() const
Routine to return a human readable form of the reader/writer variable.
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual DtListItem * add(DtReaderWriter *data)
Add element to the end of the list.
virtual const char * xmlType() const
Definition: rwStringList.h:52
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
Definition: rwStringList.h:20
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)