|
Luiza
v03-01
|
#include <CCProcessor.h>
Public Member Functions | |
| bool | hasErrors () |
| bool | hasParameters () |
| bool | hasErrorCols () |
| bool | isInstalled () |
| bool | isActive () |
| bool | hasCondition (const std::string &condition) |
| const std::string & | getName () |
| const std::string & | getType () |
| sSet & | getConditions () |
| const std::string | getDescription () |
| const std::string | getError () |
| const std::string | getStatusDesc () |
| bool | isErrorCol (const std::string &type, const std::string &value) |
| bool | isParamOptional (const std::string &key) |
| StringParameters * | getParameters () |
| const ssMap & | getColHeaders (const std::string &iotype) |
| ColVec & | getCols (const std::string &iotype, const std::string &type_name="ALL_COLLECTIONS") |
| sSet & | getColTypeNames (const std::string &iotype) |
| void | addCol (const std::string &iotype, const std::string &name, const std::string &type, const std::string &value) |
| void | remCol (const std::string &iotype, const std::string &name, unsigned int index) |
| void | addUCol (CCCollection *c) |
| void | addDCol (CCCollection *c) |
| void | changeStatus () |
| void | setName (const std::string &name) |
| void | setConditions (const std::string &conditions) |
| void | setError (int error) |
| void | clearError (int error) |
| void | setOptionalParam (const std::string &key, bool optional=true) |
| void | writeToXML (std::ofstream &stream) |
handles information about luiza processors and their collections needed by LuizaSteerCheck
| void luiza::CCProcessor::addCol | ( | const std::string & | iotype, |
| const std::string & | name, | ||
| const std::string & | type, | ||
| const std::string & | value | ||
| ) |
Adds a collection of the given iotype ( INPUT / OUTPUT ) with the given name, type and value
| void luiza::CCProcessor::addDCol | ( | CCCollection * | c | ) |
Adds a duplicate collection to this processor
References setError().
| void luiza::CCProcessor::addUCol | ( | CCCollection * | c | ) |
Adds an unavailable collection to this processor
References setError().
| void luiza::CCProcessor::changeStatus | ( | ) |
Changes the processor status ( ACTIVE->INACTIVE or INACTIVE->ACTIVE )
References clearError().
| void luiza::CCProcessor::clearError | ( | int | error | ) |
Clears an error flag in this processor ( NO_PARAMETERS=0, NOT_INSTALLED=1, COL_ERRORS=2 )
Referenced by changeStatus().
|
inline |
Returns a map with collection names and their respective types for INPUT/OUTPUT collections of this processor
| ColVec & luiza::CCProcessor::getCols | ( | const std::string & | iotype, |
| const std::string & | type_name = "ALL_COLLECTIONS" |
||
| ) |
Returns collections of a given iotype ( INPUT, OUTPUT, UNAVAILABLE, DUPLICATE ) for a given name or type If iotype == INPUT/OUTPUT then type_name is the name of the collection If iotype == UNAVAILABLE/DUPLICATE then type_name is the type of the collection
Referenced by luiza::LuizaSteerCheck::getColsSet(), and isErrorCol().
| sSet & luiza::CCProcessor::getColTypeNames | ( | const std::string & | iotype | ) |
Returns collection's types/names of a given iotype found in the processor If iotype == INPUT/OUTPUT then names are returned If iotype == UNAVAILABLE/DUPLICATE/MISSING then types are returned
|
inline |
Returns the Conditions of the processor
|
inline |
Returns the Description of the processor
References luiza::Processor::description(), and isInstalled().
Referenced by writeToXML().
|
inline |
Returns a string with the error of the processor
|
inline |
Returns the Name of the processor
|
inline |
Returns the string parameters for this processor
|
inline |
Returns a string with the processor status ( "Active", "Inactive" )
References isActive().
|
inline |
Returns the Type of the processor
| bool luiza::CCProcessor::hasCondition | ( | const std::string & | condition | ) |
Returns true if the processor is constrained by the given condition
|
inline |
Returns true if the processor has collection errors
| bool luiza::CCProcessor::hasErrors | ( | ) |
Returns true if the processor has errors
|
inline |
Returns true if the processor has parameters
Referenced by writeToXML().
|
inline |
Returns true if the processor is active
Referenced by luiza::LuizaSteerCheck::getColsSet(), and getStatusDesc().
| bool luiza::CCProcessor::isErrorCol | ( | const std::string & | type, |
| const std::string & | value | ||
| ) |
Returns true if the given collection is in the unavailable or duplicate list of this processor
References getCols().
|
inline |
Returns true if the processor is installed
Referenced by getDescription(), and writeToXML().
| bool luiza::CCProcessor::isParamOptional | ( | const std::string & | key | ) |
Returns true if a parameter is optional (optional means the parameter will be written out as a comment)
References luiza::CMProcessor::instance().
Referenced by writeToXML().
| void luiza::CCProcessor::remCol | ( | const std::string & | iotype, |
| const std::string & | name, | ||
| unsigned int | index | ||
| ) |
Removes collection of the given iotype ( INPUT / OUTPUT ) with the given name at the given index
| void luiza::CCProcessor::setConditions | ( | const std::string & | conditions | ) |
Sets the processor's conditions
| void luiza::CCProcessor::setError | ( | int | error | ) |
|
inline |
Sets the processor's name
| void luiza::CCProcessor::setOptionalParam | ( | const std::string & | key, |
| bool | optional = true |
||
| ) |
Sets a parameter as optional (if optional=true parameter is written out as a comment)
| void luiza::CCProcessor::writeToXML | ( | std::ofstream & | stream | ) |
Writes this processor to a stream using the XML format
References getDescription(), luiza::CMProcessor::getParam(), luiza::CMProcessor::getParamD(), luiza::CMProcessor::getParamSetSize(), hasParameters(), luiza::CMProcessor::instance(), isInstalled(), and isParamOptional().
1.8.9.1