![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
OptTaskSequence is an option containing a sequence of task that forms a pipeline.
#include <options.h>
Public Types | |
typedef OptStringList::ValueType | ValueType |
Public Member Functions | |
void | add (const std::string str) |
Adds a string to the list. | |
void | addTask (const std::string newtask) |
Adds a new task string to the sequence. | |
void | clear () |
Removes all contents in the list. | |
virtual const std::type_info & | getDataID () |
Returns the identifier of the option type. | |
void | getTaskAt (int index, std::string &taskdesc, std::string &taskname) |
Parse the task string at a given index and returns the task description and the task name. | |
OptTypes | getType () const |
Returns the option type. | |
const std::vector< std::string > & | getValue () const |
Returns the vector of strings. | |
virtual bool | isA (OptTypes id) const |
Checks if the option has the given type. | |
virtual std::ostream & | operator<< (std::ostream &os) const |
Writes the option to a stream. | |
OptStringList & | operator<< (std::string &str) |
Adds a string to the list. | |
OptStringList & | operator<< (const char *str) |
Adds a string to the list. | |
OptTaskSequence & | operator= (const OptTaskSequence &other) |
Copies the matrix from an existing OptTaskSequence. | |
OptTaskSequence () | |
Empty constructor. | |
OptTaskSequence (const char *str) | |
Constructor from a buffer of chars, builds a 1-size vector of strings. | |
OptTaskSequence (std::string &str) | |
Constructor from a string, builds a 1-size vector of strings. | |
OptTaskSequence (const std::vector< std::string > &data) | |
Constructor from a string vector. | |
void | setValue (const std::vector< std::string > newvalue) |
Copies the opt values from a vector of strings. | |
unsigned long | size () |
Returns the number of tasks into the sequence. | |
Static Public Member Functions | |
static OptTaskSequence * | dynacast (GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptTaskSequence. | |
static const OptTaskSequence * | dynacast (const GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptTaskSequence. | |
Protected Member Functions | |
bool | isValid (const std::string &str, std::string &type, std::string &name) |
Parses a string cheching if it's a valid task string, in the form "<task_desc>TASKDESC_SEPARATOR<task_name>". | |
Protected Attributes | |
OptTypes | type |
Option type. | |
std::vector< std::string > * | value |
Vector of strings containing the option value. | |
Friends | |
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
Writes an option to a stream. |