VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rwNLengthStringVector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 
13 #include <vlutil/vlMachineTypes.h>
14 #include "vrfutil/readerWriter.h"
15 #include <vlutil/vlConfig.h>
16 #include <vector>
17 #include <list>
18 #include <set>
19 #include "vrfutil/vrfutilDefines.h"
20 
22 
29 {
30 public:
31 
33  parentRegistry = 0);
34  DtRwNLengthStringVector(const std::vector<DtString>& strings, DtReaderWriterRegistry*
35  parentRegistry = 0);
36  DtRwNLengthStringVector(const std::list<DtString>& strings, DtReaderWriterRegistry*
37  parentRegistry = 0);
38  DtRwNLengthStringVector(const DtSymbolString& name, DtReaderWriterRegistry*
39  parentRegistry = 0);
40 
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45 
49  virtual bool operator==(const DtRwNLengthStringVector& orig) const;
50  virtual bool operator!=(const DtRwNLengthStringVector& orig) const;
51 
52  virtual ~DtRwNLengthStringVector();
53 
55  parentRegistry = 0) const;
56 
62  virtual bool compare(const DtRwNLengthStringVector& orig,
63  bool bCaseSensitive = true) const;
64 
67  virtual void setSize(unsigned int length);
69  virtual unsigned int size() const;
70 
74 
75  virtual DtString& operator[] (unsigned int index);
76  virtual const DtString& operator[] (unsigned int index) const;
77  virtual DtString at(unsigned int index) const;
79 
82  virtual int indexOfValue(const DtString& value) const;
83 
85  virtual bool containsValue(const DtString& value) const;
86 
87  virtual void putData(FILE* fp, int indentLevel = 0);
88  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
89  const DtVariableBindingsList& variableBindings);
90 
94  virtual const char* readerWriterType() const;
95 
97  virtual void add(const DtString&);
98 
100  virtual void remove(int iIndex);
101 
102  const std::vector<DtString>& strings() const;
103 
104  std::set<std::string> asStdSet() const;
105  virtual void setFrom(const std::set<std::string>&);
106 
109  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
110  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
112  const DtVariableBindingsList& bindings = DtVariableBindingsList());
113 
115  static const char* theXmlType();
116 
117  virtual const char* xmlType() const
118  {
119  return theXmlType();
120  }
121  virtual void stringToStringList(const DtString& string);
122  virtual DtString stringListToString() const;
123 
125 
126  void clear();
127 
129  virtual DtString prettyPrint() const;
130 
131 protected:
132  std::vector<DtString> myStrings;
133 };
134 
135 inline const std::vector<DtString>& DtRwNLengthStringVector::strings() const
136 {
137  return myStrings;
138 }
139 
141 {
142  myStrings.clear();
143 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)