VectorOutput key. More...
#include "keyvalue/key/specific/VectorOutput.h"
Public Types | |
enum | Flag { AsIs, Row, Column } |
Defines the possible values for VectorOutput. More... | |
enum | |
typedef Traits < VectorOutputBase::Flag, StdSingle, FlagMap > | Traits_ |
typedef StdSingle< typename FlagMap < VectorOutputBase::Flag > ::OutputType_ > | ConverterType_ |
typedef ConverterType_::InputType_ | InputType_ |
typedef ConverterType_::OutputType_ | OutputType_ |
Public Member Functions | |
Flag | get (const string &name) const |
Partially maps names into flags. | |
string | getName () const |
Gets Key's name. | |
void | setName (const string &name) |
Sets name. | |
VectorOutputBase::Flag | map (const value::Variant &variant) const |
Performs the mapping. |
VectorOutput key.
Key's name is "VectorOutput".
enum Flag [inherited] |
Defines the possible values for VectorOutput.
Flag get | ( | const string & | name | ) | const [virtual] |
Partially maps names into flags.
Maps "AsIs", "Row", and "Column", resp., to AsIs, Row and Column.
name | : Name to be mapped; |
keyvalue::RuntimeError | : If name is unknown. |
Implements FlagMap< VectorOutputBase::Flag >.
string getName | ( | ) | const [inherited] |
void setName | ( | const string & | name | ) | [inherited] |
Sets name.
name | : The name. |
VectorOutputBase::Flag map | ( | const value::Variant & | variant | ) | const [inherited] |
Performs the mapping.
This method converts the input from value::Variant to string
and calls get().
variant | : A value::Variant containing the input string to be mapped. |