Public Member Functions | |
AlgorithmCreator () | |
void | addElement (const XML::Element &ele) throw (code::Exception) |
We will find the type of element and do the appropriate add, throwing an exception in case of error. | |
void | write (const std::string &outputDir) throw (code::Exception) |
writes everything to the given file. | |
bool | isValid (std::string &error) |
checks if this is valid, returning the error condition if necessary. | |
void | writeMain (const std::string &filename) throw (code::Exception) |
writes the main function. | |
Protected Member Functions | |
void | writeIngest (std::ostream &fp) |
void | writeAlgorithmHeader (const std::string &filename) throw (code::Exception) |
void | writeAlgorithmSource (const std::string &filename) throw (code::Exception) |
void | writeListeners (std::ostream &fp) |
void | writeConstructor (std::ostream &fp) |
void | copyNeededFiles (const std::string &outputDir) const |
void | writeIndex (std::ostream &fp, const std::string &indexname, const std::string &indexhistory, bool required) |
Classes | |
struct | CommandLineOption |
struct | DataInfo |
struct | InputIndexInfo |
class | State |
state of this creator upto this point. More... |
code::AlgorithmCreator::AlgorithmCreator | ( | ) |
void code::AlgorithmCreator::addElement | ( | const XML::Element & | ele | ) | throw (code::Exception) |
We will find the type of element and do the appropriate add, throwing an exception in case of error.
If an exception is thrown, the object is a completely invalid state. If you wish to test if an operation will succeed, make a copy of the AlgorithmCreator, and invoke the operation on the copy. It is guaranteed that each copy is completely independent.
void code::AlgorithmCreator::copyNeededFiles | ( | const std::string & | outputDir | ) | const [protected] |
bool code::AlgorithmCreator::isValid | ( | std::string & | error | ) |
checks if this is valid, returning the error condition if necessary.
void code::AlgorithmCreator::write | ( | const std::string & | outputDir | ) | throw (code::Exception) |
writes everything to the given file.
void code::AlgorithmCreator::writeAlgorithmHeader | ( | const std::string & | filename | ) | throw (code::Exception) [protected] |
void code::AlgorithmCreator::writeAlgorithmSource | ( | const std::string & | filename | ) | throw (code::Exception) [protected] |
void code::AlgorithmCreator::writeConstructor | ( | std::ostream & | fp | ) | [protected] |
void code::AlgorithmCreator::writeIndex | ( | std::ostream & | fp, | |
const std::string & | indexname, | |||
const std::string & | indexhistory, | |||
bool | required | |||
) | [protected] |
void code::AlgorithmCreator::writeIngest | ( | std::ostream & | fp | ) | [protected] |
void code::AlgorithmCreator::writeListeners | ( | std::ostream & | fp | ) | [protected] |
void code::AlgorithmCreator::writeMain | ( | const std::string & | filename | ) | throw (code::Exception) |
writes the main function.