VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
16 
18 #include <map>
19 
21 #include <vlutil/vlFilename.h>
22 
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 
43 
45  virtual ~DtStringReplacementTable();
46 
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;
97 
98 };
99 
100 #endif
101 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)