VR-Forces 4.1.1 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) 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
20
class
DtReaderWriterRegistry
;
21
27
class
DT_DLL_vrfutil
DtRwNLengthStringVector
:
public
DtReaderWriter
28
{
29
public
:
30
31
DtRwNLengthStringVector
(
const
DtString
& name,
DtReaderWriterRegistry
*
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);
37
DtRwNLengthStringVector
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
38
parentRegistry = 0);
39
40
DtRwNLengthStringVector
(
const
DtRwNLengthStringVector
& orig,
41
DtReaderWriterRegistry
* parentRegistry = 0);
42
43
const
DtRwNLengthStringVector
&
operator=
(
const
DtRwNLengthStringVector
& orig);
44
48
virtual
bool
operator==
(
const
DtRwNLengthStringVector
& orig)
const
;
49
virtual
bool
operator!=
(
const
DtRwNLengthStringVector
& orig)
const
;
50
51
virtual
~
DtRwNLengthStringVector
();
52
53
virtual
DtRwNLengthStringVector
* clone(
DtReaderWriterRegistry
*
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
117
inline
void
DtRwNLengthStringVector::clear
()
118
{
119
myStrings
.clear();
120
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)