4 #include "luiza/Processor.h"
10 #define INACTIVE false
13 #define NO_PARAMETERS 0
14 #define NOT_INSTALLED 1
18 #define INPUT "gloriaInType"
19 #define OUTPUT "gloriaOutType"
20 #define UNAVAILABLE "gloriaUnavailableType"
21 #define DUPLICATE "gloriaDuplicate"
22 #define MISSING "gloriaMissing"
28 typedef std::set< std::string > sSet;
29 typedef std::vector< CCCollection* > ColVec;
30 typedef std::map< std::string, std::string > ssMap;
31 typedef std::map< std::string, ssMap > sssMap;
32 typedef std::map< std::string, ColVec > sColVecMap;
33 typedef std::map< std::string, sColVecMap > ssColVecMap;
48 CCProcessor(
bool status,
const std::string& name,
const std::string& type, StringParameters* p=NULL);
63 bool hasErrorCols(){
return _error[ COL_ERRORS] || _error[COL_MISSING] ; }
75 const std::string&
getName(){
return _name; }
78 const std::string&
getType(){
return _type; }
85 "This processor is NOT installed in your Luiza binary: parameter descriptions and types lost!!");
92 const std::string
getError(){
return ( _errors.size() != 0 ? _errors[0] :
"" ); }
98 bool isErrorCol(
const std::string& type,
const std::string& value );
107 const ssMap&
getColHeaders(
const std::string& iotype ){
return _types[iotype]; }
112 ColVec&
getCols(
const std::string& iotype,
const std::string& type_name=
"ALL_COLLECTIONS" );
120 void addCol(
const std::string& iotype,
const std::string& name,
const std::string& type,
const std::string& value );
123 void remCol(
const std::string& iotype,
const std::string& name,
unsigned int index );
135 void setName(
const std::string& name ){ _name = name; };
157 void addColsFromParam( StringParameters* p );
158 void writeColsToParam();
159 void clearParameters();
167 bool _error[MAX_ERRORS];
170 StringParameters* _param;
173 StringVec _error_desc;
void writeToXML(std::ofstream &stream)
Definition: CCProcessor.cc:470
const ssMap & getColHeaders(const std::string &iotype)
Definition: CCProcessor.h:107
bool hasErrors()
Definition: CCProcessor.cc:443
void setName(const std::string &name)
Definition: CCProcessor.h:135
void addDCol(CCCollection *c)
Definition: CCProcessor.cc:331
bool isErrorCol(const std::string &type, const std::string &value)
Definition: CCProcessor.cc:393
const std::string & description()
Description of processor.
Definition: Processor.h:187
void remCol(const std::string &iotype, const std::string &name, unsigned int index)
Definition: CCProcessor.cc:339
bool hasErrorCols()
Definition: CCProcessor.h:63
void clearError(int error)
Definition: CCProcessor.cc:418
StringParameters * getParameters()
Definition: CCProcessor.h:104
sSet & getConditions()
Definition: CCProcessor.h:81
bool isInstalled()
Definition: CCProcessor.h:66
const std::string getStatusDesc()
Definition: CCProcessor.h:95
Base class for Luiza processors.
Definition: Processor.h:55
sSet & getColTypeNames(const std::string &iotype)
Definition: CCProcessor.cc:382
const std::string getError()
Definition: CCProcessor.h:92
void setOptionalParam(const std::string &key, bool optional=true)
Definition: CCProcessor.cc:461
const std::string & getType()
Definition: CCProcessor.h:78
void setConditions(const std::string &conditions)
Definition: CCProcessor.cc:153
void setError(int error)
Definition: CCProcessor.cc:411
void addCol(const std::string &iotype, const std::string &name, const std::string &type, const std::string &value)
Definition: CCProcessor.cc:291
bool isParamOptional(const std::string &key)
Definition: CCProcessor.cc:452
const std::string & getName()
Definition: CCProcessor.h:75
bool hasCondition(const std::string &condition)
Definition: CCProcessor.cc:201
const std::string getDescription()
Definition: CCProcessor.h:84
bool isActive()
Definition: CCProcessor.h:69
Namespace for Luiza framework.
Definition: CCCollection.h:6
void addUCol(CCCollection *c)
Definition: CCProcessor.cc:312
bool hasParameters()
Definition: CCProcessor.h:60
Definition: CCCollection.h:17
void changeStatus()
Definition: CCProcessor.cc:281
Definition: CCProcessor.h:43
ColVec & getCols(const std::string &iotype, const std::string &type_name="ALL_COLLECTIONS")
Definition: CCProcessor.cc:364