VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
stringReplacementTable.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2000 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: stringReplacementTable.h,v $ $Revision: 1.3 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef DtStringReplacementTable_H_
9
#define DtStringReplacementTable_H_
10
#include "
vrfutil/vrfutilDefines.h
"
11
14
15
#include "
vrfutil/scenarioMergeProject.h
"
16
18
#include <map>
19
21
#include <vlutil/vlFilename.h>
22
27
class
DT_DLL_vrfutil
DtStringReplacementTable
28
{
29
public
:
30
35
typedef
std::map<DtString, DtString >
ReplacementMap
;
36
typedef
ReplacementMap::iterator
Iterator
;
37
typedef
ReplacementMap::const_iterator
const_Iterator
;
38
39
public
:
40
42
DtStringReplacementTable
();
43
45
virtual
~
DtStringReplacementTable
();
46
48
DtStringReplacementTable
(
49
const
DtStringReplacementTable
& orig);
50
52
DtStringReplacementTable
& operator=(
53
const
DtStringReplacementTable
& orig);
54
55
public
:
56
62
virtual
void
add(
const
DtString
& toFind,
63
const
DtString
& replaceWith);
64
65
virtual
DtStringReplacementTable::const_Iterator
begin()
const
;
66
67
virtual
void
clear();
68
69
virtual
DtStringReplacementTable::const_Iterator
end()
const
;
70
71
virtual
const
DtFilename& filename()
const
;
72
virtual
void
setFilename(
const
DtFilename& fn);
73
79
virtual
const
DtString
& findReplacementFor(
80
const
DtString
& sToFind);
81
82
virtual
bool
readFile();
83
virtual
bool
readFile(
const
DtFilename& fn);
84
85
virtual
void
remove
(
const
DtString
& toFind);
86
87
protected
:
88
89
90
protected
:
91
92
93
protected
:
94
95
DtFilename
myFilename
;
96
ReplacementMap
myReplacementMap
;
97
98
};
99
100
#endif
101
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
)