Debian Codegraph @

HercConfiguration/ConfigLine.h

raw symbols SCIP
1 /*
2 * File: ConfigLine.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This object manages one line of the configuration file
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef CONFIGLINE_H
28 #define CONFIGLINE_Hcxx . . $ `HercConfiguration/ConfigLine.h:28:9`!
29
30 #include <string>
31 #include <utility>
32 #include <vector>
33
34 typedef stdcxx . . $ std/::paircxx . . $ std/pair#<int,int> TokenPaircxx . . $ TokenPair#;
35
36 class ConfigLinecxx . . $ ConfigLine#
37 {
38 public:
39 ConfigLinecxx . . $ ConfigLine#ConfigLine(85c52e162fed56f9).(const char *line);
40 virtual ~cxx . . $ ConfigLine#`~ConfigLine`(49f6e7a06ebc5aa8).ConfigLinecxx . . $ ConfigLine#();
41
42 void replaceLinecxx . . $ ConfigLine#replaceLine(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& newLine);
43 void replaceParameterscxx . . $ ConfigLine#replaceParameters(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& newParm);
44 void setDeletedcxx . . $ ConfigLine#setDeleted(b45ddcbc8423892c).(bool parm);
45 const stdcxx . . $ std/::stringcxx . . $ std/string#& getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).() const;
46 inline bool isRemarkcxx . . $ ConfigLine#isRemark(50ce9a9e25b4a850).() const { return mRemarkcxx . . $ ConfigLine#mRemark.; }
47 inline bool isDeletedcxx . . $ ConfigLine#isDeleted(50ce9a9e25b4a850).() const { return mDeletedcxx . . $ ConfigLine#mDeleted.; }
48 inline bool isNewcxx . . $ ConfigLine#isNew(50ce9a9e25b4a850).() const { return mNewcxx . . $ ConfigLine#mNew.; }
49 inline bool isUpdatedcxx . . $ ConfigLine#isUpdated(50ce9a9e25b4a850).() const { return mUpdatedcxx . . $ ConfigLine#mUpdated.; }
50 inline bool inErrorcxx . . $ ConfigLine#inError(50ce9a9e25b4a850).() const { return mInErrorcxx . . $ ConfigLine#mInError.; }
51 inline int errorColumncxx . . $ ConfigLine#errorColumn(455f465bc33b4cdf).() const { return mErrorColumncxx . . $ ConfigLine#mErrorColumn.; }
52
53 inline void setNewcxx . . $ ConfigLine#setNew(b45ddcbc8423892c).(bool newVal) { mNewcxx . . $ ConfigLine#mNew.=newVal; } ;
54 inline void setUpdatedcxx . . $ ConfigLine#setUpdated(b45ddcbc8423892c).(bool updated) { mUpdatedcxx . . $ ConfigLine#mUpdated.=updated; } ;
55 inline void setInErrorcxx . . $ ConfigLine#setInError(d76a70202c25db1).(int column) const { mInErrorcxx . . $ ConfigLine#mInError.=true; mErrorColumncxx . . $ ConfigLine#mErrorColumn.=column; }
56 inline void setNoErrorcxx . . $ ConfigLine#setNoError(83f5f38750778ac8).() const { mInErrorcxx . . $ ConfigLine#mInError.=false; mErrorColumncxx . . $ ConfigLine#mErrorColumn.=-1; }
57
58 stdcxx . . $ std/::stringcxx . . $ std/string# getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(int i) const;
59 stdcxx . . $ std/::stringcxx . . $ std/string# getLowercaseTokencxx . . $ ConfigLine#getLowercaseToken(ffc0d510d034206b).(int i) const;
60 stdcxx . . $ std/::stringcxx . . $ std/string# getUppercaseTokencxx . . $ ConfigLine#getUppercaseToken(ffc0d510d034206b).(int i) const;
61 int getAbsoluteTokenColumncxx . . $ ConfigLine#getAbsoluteTokenColumn(7ccb52b1bfe01045).(int i) const;
62 int getAbsoluteTokenEndcxx . . $ ConfigLine#getAbsoluteTokenEnd(7ccb52b1bfe01045).(int i) const;
63 stdcxx . . $ std/::stringcxx . . $ std/string# getMultiTokencxx . . $ ConfigLine#getMultiToken(8a983bf2cc533e5e).(int from, int to) const;
64 inline int sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() const {return mSizecxx . . $ ConfigLine#mSize.;}
65 void parseLinecxx . . $ ConfigLine#parseLine(49f6e7a06ebc5aa8).();
66
67 protected:
68 stdcxx . . $ std/::stringcxx . . $ std/string# mLinecxx . . $ ConfigLine#mLine.;
69
70 private:
71 bool mRemarkcxx . . $ ConfigLine#mRemark.;
72 bool mDeletedcxx . . $ ConfigLine#mDeleted.;
73 bool mUpdatedcxx . . $ ConfigLine#mUpdated.;
74 bool mNewcxx . . $ ConfigLine#mNew.;
75 int mSizecxx . . $ ConfigLine#mSize.;
76 mutable bool mInErrorcxx . . $ ConfigLine#mInError.;
77 mutable int mErrorColumncxx . . $ ConfigLine#mErrorColumn.;
78 stdcxx . . $ std/::stringcxx . . $ std/string#::size_typecxx . . $ std/__cxx11/basic_string#size_type# mKeyStartcxx . . $ ConfigLine#mKeyStart.;
79 stdcxx . . $ std/::stringcxx . . $ std/string# mKeywordcxx . . $ ConfigLine#mKeyword.;
80 stdcxx . . $ std/::vectorcxx . . $ std/vector#<TokenPaircxx . . $ TokenPair#> mTokenscxx . . $ ConfigLine#mTokens.;
81
82 void tokenizecxx . . $ ConfigLine#tokenize(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& delimiters = " "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).);
83 };
84
85 #endif // #ifdef CONFIGLINE_H