VR-Forces 4.1 Class Documentation
rwNLengthStringVector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 
13 #include <vlutil/vlMachineTypes.h>
14 #include "vrfutil/rdrWritr.h"
15 #include <vlutil/vlConfig.h>
16 #include <vector>
17 #include <list>
18 #include "vrfutil/vrfutilDefines.h"
19 
21 
28 {
29 public:
30 
32  parentRegistry = 0);
33  DtRwNLengthStringVector(const std::vector<DtString>& strings, DtReaderWriterRegistry*
34  parentRegistry = 0);
35  DtRwNLengthStringVector(const std::list<DtString>& strings, DtReaderWriterRegistry*
36  parentRegistry = 0);
38  parentRegistry = 0);
39 
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44 
48  virtual bool operator==(const DtRwNLengthStringVector& orig) const;
49  virtual bool operator!=(const DtRwNLengthStringVector& orig) const;
50 
51  virtual ~DtRwNLengthStringVector();
52 
54  parentRegistry = 0) const;
55 
61  virtual bool compare(const DtRwNLengthStringVector& orig,
62  bool bCaseSensitive = true) const;
63 
66  virtual void setSize(unsigned int length);
68  virtual unsigned int size() const;
69 
73 
74  virtual DtString& operator[] (unsigned int index);
75  virtual const DtString& operator[] (unsigned int index) const;
76  virtual DtString at(unsigned int index) const;
78 
81  virtual int indexOfValue(const DtString& value) const;
82 
84  virtual bool containsValue(const DtString& value) const;
85 
86  virtual void putData(FILE* fp, int indentLevel = 0);
87  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
88  const DtVariableBindingsList& variableBindings);
89 
93  virtual const char* readerWriterType() const;
94 
96  virtual void add(const DtString&);
97 
99  virtual void remove(int iIndex);
100 
101  const std::vector<DtString>& strings() const;
102 
103  void clear();
104 
106  virtual DtString prettyPrint() const;
107 
108 protected:
109  std::vector<DtString> myStrings;
110 };
111 
112 inline const std::vector<DtString>& DtRwNLengthStringVector::strings() const
113 {
114  return myStrings;
115 }
116 
118 {
119  myStrings.clear();
120 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)