1 #ifndef LuizaSteerCheck_h
2 #define LuizaSteerCheck_h 1
4 #include "luiza/CCProcessor.h"
5 #include "luiza/CCCollection.h"
6 #include "luiza/CMProcessor.h"
7 #include "luiza/XMLParser.h"
15 #define clrscr() printf("\033[2J")
16 #define dblue() printf("\x1b[34m")
17 #define dred() printf("\x1b[31m")
18 #define dyellow() printf("\x1b[33m")
19 #define dgreen() printf("\x1b[32m")
20 #define dunderline() printf("\x1b[4m")
21 #define ditalic() printf("\x1b[3m")
22 #define ddunkel() printf("\x1b[2m")
23 #define dhell() printf("\x1b[1m")
24 #define dblink() printf("\x1b[5m")
25 #define endcolor() printf("\x1b[m")
50 typedef std::vector< CCProcessor* > ProcVec;
77 LuizaSteerCheck(
const char* steerFileName=NULL,
const CommandLineParametersMap * cmdlineparams=NULL );
95 int existsProcessor(
const std::string& type,
const std::string& name=
"" );
110 void dumpColErrors(
unsigned int i, std::ostream& stream,
bool separators=
false );
122 void addProcessor(
bool status,
const std::string& name,
const std::string& type, StringParameters* p=NULL );
144 const std::string getXMLFileRelPath(){
return _XMLFileRelPath; }
147 const std::string getXMLFileAbsPath(){
return _XMLFileAbsPath; }
150 const std::string getXMLFileName(){
return _XMLFileName; }
153 const std::string getXMLFile(){
return _steeringFile; }
171 void repCondition(
const std::string& oldCond,
const std::string& newCond );
186 ColVec& getProcCols(
const ProcVec& v,
const std::string& iotype )
const;
189 ColVec& getAllCols()
const;
192 ProcVec& getAllProcs()
const;
195 bool parseXMLFile(
const std::string& file,
const CommandLineParametersMap * cmdlineparams=NULL );
201 ColVec& findMatchingCols( ColVec& v,
CCProcessor* srcProc,
202 const std::string& type,
const std::string& value=
"UNDEFINED",
const std::string& name=
"UNDEFINED" );
217 StringParameters* _gparam;
219 std::string _steeringFile;
220 std::string _XMLFileName;
221 std::string _XMLFileAbsPath;
222 std::string _XMLFileRelPath;
226 sColVecMap _gloriaCols;
227 StringVec _gloriaFiles;
void changeProcessorPos(unsigned int pos, unsigned int newPos)
Definition: LuizaSteerCheck.cc:223
ProcVec & getAProcs()
Definition: LuizaSteerCheck.h:86
Definition: CMProcessor.h:21
ProcVec & getIProcs()
Definition: LuizaSteerCheck.h:89
Definition: LuizaSteerCheck.h:72
StringVec & getGLORIAFiles()
Definition: LuizaSteerCheck.h:101
bool saveAsDOTFile(const std::string &file)
Definition: LuizaSteerCheck.cc:795
ColVec & getGLORIACols() const
Definition: LuizaSteerCheck.cc:577
void consistencyCheck()
Definition: LuizaSteerCheck.cc:251
int addGLORIAFile(const std::string &file)
Definition: LuizaSteerCheck.cc:118
CMProcessor * getMProcs()
Definition: LuizaSteerCheck.h:83
void activateProcessor(unsigned int index)
Definition: LuizaSteerCheck.cc:182
void remProcessor(unsigned int index, bool status)
Definition: LuizaSteerCheck.cc:149
StringParameters * getGlobalParameters()
Definition: LuizaSteerCheck.h:107
void dumpColErrors(unsigned int i, std::ostream &stream, bool separators=false)
Definition: LuizaSteerCheck.cc:979
void remGLORIAFile(const std::string &file)
Definition: LuizaSteerCheck.cc:128
sSet & getColsSet(const std::string &type, const std::string &name, CCProcessor *proc)
Definition: LuizaSteerCheck.cc:68
sSet & getErrors()
Definition: LuizaSteerCheck.h:159
const std::string getCondition(unsigned int index)
Definition: LuizaSteerCheck.cc:537
int existsProcessor(const std::string &type, const std::string &name="")
Definition: LuizaSteerCheck.cc:167
sSet & getPConditions()
Definition: LuizaSteerCheck.h:162
Namespace for Luiza framework.
Definition: CCCollection.h:6
void changeGLORIAFilePos(unsigned int pos, unsigned int newPos)
Definition: LuizaSteerCheck.cc:130
bool saveAsXMLFile(const std::string &file)
Definition: LuizaSteerCheck.cc:615
void repCondition(const std::string &oldCond, const std::string &newCond)
Definition: LuizaSteerCheck.cc:550
void addProcessor(bool status, const std::string &name, const std::string &type, StringParameters *p=NULL)
Definition: LuizaSteerCheck.cc:135
void addCondition(const std::string &condition)
Definition: LuizaSteerCheck.cc:546
void remCondition(const std::string &condition)
Definition: LuizaSteerCheck.cc:562
Definition: CCProcessor.h:43
void deactivateProcessor(unsigned int index)
Definition: LuizaSteerCheck.cc:200
void dump_information()
Definition: LuizaSteerCheck.cc:892