VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
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/rdrWritr.h
"
15
#include <vlutil/vlConfig.h>
16
#include <vector>
17
#include <list>
18
#include <set>
19
#include "
vrfutil/vrfutilDefines.h
"
20
21
class
DtReaderWriterRegistry
;
22
28
class
DT_DLL_vrfutil
DtRwNLengthStringVector
:
public
DtReaderWriter
29
{
30
public
:
31
32
DtRwNLengthStringVector
(
const
DtString
& name,
DtReaderWriterRegistry
*
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
41
DtRwNLengthStringVector
(
const
DtRwNLengthStringVector
& orig,
42
DtReaderWriterRegistry
* parentRegistry = 0);
43
44
const
DtRwNLengthStringVector
&
operator=
(
const
DtRwNLengthStringVector
& orig);
45
49
virtual
bool
operator==
(
const
DtRwNLengthStringVector
& orig)
const
;
50
virtual
bool
operator!=
(
const
DtRwNLengthStringVector
& orig)
const
;
51
52
virtual
~
DtRwNLengthStringVector
();
53
54
virtual
DtRwNLengthStringVector
* clone(
DtReaderWriterRegistry
*
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
DtFilename& searchPath,
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
106
void
clear();
107
109
virtual
DtString
prettyPrint
()
const
;
110
111
protected
:
112
std::vector<DtString>
myStrings
;
113
};
114
115
inline
const
std::vector<DtString>&
DtRwNLengthStringVector::strings
()
const
116
{
117
return
myStrings
;
118
}
119
120
inline
void
DtRwNLengthStringVector::clear
()
121
{
122
myStrings
.clear();
123
}
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)