Debian Codegraph @

Source/Control/Interface/CommandLine/CCommandLinePreparationTranslator.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #ifndef KONCLUDE_CONTROL_INTERFACE_COMMANDLINE_CCOMMANDLINEPREPARATIONTRANSLATOR_H
22 #define KONCLUDE_CONTROL_INTERFACE_COMMANDLINE_CCOMMANDLINEPREPARATIONTRANSLATOR_H
23
24 // Libraries includes
25 #include <QString>
26 #include <QDomDocument>
27 #include <QHash>
28
29 // Namespace includes
30
31
32 // Other includes
33 #include "Control/Loader/CLoaderFactory.h"
34
35 // Logger includes
36 #include "Logger/CLogger.h"
37 #include "Logger/CLogIdentifier.h"
38
39 using namespace Konclude::Logger;
40
41
42 namespace Konclude {
43
44 namespace Control {
45
46 using namespace Loader;
47
48 namespace Interface {
49
50 namespace CommandLine {
51
52 /*!
53 *
54 * \class CCommandLinePreparationTranslator
55 * \author Andreas Steigmiller
56 * \version 0.1
57 * \brief TODO
58 *
59 */
60 class CCommandLinePreparationTranslator : public CLogIdentifier {
61 // public methods
62 public:
63 //! Constructor
64 CCommandLinePreparationTranslator(CLoaderFactory *loaderFactory);
65
66 //! Destructor
67 virtual ~CCommandLinePreparationTranslator();
68
69
70 virtual QStringList translateArguments(int argc, char *argv[]);
71 virtual QStringList translateArguments(const QStringList& argList);
72
73 virtual QStringList combineTranslatedArguments();
74
75 virtual bool canTranslate(const QString& string) = 0;
76
77 // protected methods
78 protected:
79 virtual bool translate(const QString& argumentText, QStringList& remainingArgList);
80
81 // protected variables
82 protected:
83 QString mInterfaceTypeString;
84 QString mLoaderTypeString;
85
86 CLoaderFactory* mLoaderFac;
87
88 bool mSkipTranslation;
89 bool mHelpRequested;
90
91 QStringList mLogConfList;
92 QStringList mConfigConfList;
93 QStringList mRequestConfList;
94 QStringList mMiscellaneousList;
95
96 QString mRequestFileName;
97 bool mGenerateAutoResponseFile;
98
99
100 bool mRequestFileTranslated;
101 bool mResponseFileTranslated;
102 bool mConfigFileTranslated;
103 bool mIRITranslated;
104
105 bool mExtendendLogging;
106 QStringList mGeneralConfList;
107
108 QStringList mReasonerConfList;
109 QStringList mRemainingLoadList;
110
111 // private methods
112 private:
113
114 // private variables
115 private:
116
117 };
118
119 }; // end namespace CommandLine
120
121 }; // end namespace Interface
122
123 }; // end namespace Control
124
125 }; // end namespace Konclude
126
127 #endif // KONCLUDE_CONTROL_INTERFACE_COMMANDLINE_CCOMMANDLINEPREPARATIONTRANSLATOR_H