GURLS++  2.0.00
C++ Implementation of GURLS Matlab Toolbox
gurls::OptTaskSequence Class Reference

OptTaskSequence is an option containing a sequence of task that forms a pipeline.

#include <options.h>

Inheritance diagram for gurls::OptTaskSequence:
Collaboration diagram for gurls::OptTaskSequence:

List of all members.

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.
OptStringListoperator<< (std::string &str)
 Adds a string to the list.
OptStringListoperator<< (const char *str)
 Adds a string to the list.
OptTaskSequenceoperator= (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 OptTaskSequencedynacast (GurlsOption *opt)
 Tries to cast a pointer to a generic option to a pointer to an OptTaskSequence.
static const OptTaskSequencedynacast (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.

Detailed Description

Definition at line 508 of file options.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends