Public Types | Public Member Functions | Protected Member Functions

Swift::GenericFormField< T > Class Template Reference

Inheritance diagram for Swift::GenericFormField< T >:
Collaboration diagram for Swift::GenericFormField< T >:

List of all members.

Public Types

typedef boost::shared_ptr
< FormField
ref

Public Member Functions

const T & getValue () const
void setValue (const T &value)
void setName (const std::string &name)
const std::string & getName () const
void setLabel (const std::string &label)
const std::string & getLabel () const
void setDescription (const std::string &description)
const std::string & getDescription () const
void setRequired (bool required)
bool getRequired () const
void addOption (const Option &option)
const std::vector< Option > & getOptions () const
const std::vector< std::string > & getRawValues () const
void addRawValue (const std::string &value)

Protected Member Functions

 GenericFormField ()
 GenericFormField (const T &value)

Detailed Description

template<typename T>
class Swift::GenericFormField< T >

Definition at line 71 of file FormField.h.


Member Typedef Documentation

typedef boost::shared_ptr<FormField> Swift::FormField::ref [inherited]

Definition at line 21 of file FormField.h.


Constructor & Destructor Documentation

template<typename T >
Swift::GenericFormField< T >::GenericFormField (  )  [inline, protected]

Definition at line 82 of file FormField.h.

template<typename T >
Swift::GenericFormField< T >::GenericFormField ( const T &  value  )  [inline, protected]

Definition at line 83 of file FormField.h.


Member Function Documentation

void Swift::FormField::addOption ( const Option option  )  [inline, inherited]

Definition at line 43 of file FormField.h.

void Swift::FormField::addRawValue ( const std::string &  value  )  [inline, inherited]

Definition at line 55 of file FormField.h.

const std::string& Swift::FormField::getDescription (  )  const [inline, inherited]

Definition at line 38 of file FormField.h.

const std::string& Swift::FormField::getLabel (  )  const [inline, inherited]

Definition at line 35 of file FormField.h.

const std::string& Swift::FormField::getName (  )  const [inline, inherited]

Definition at line 32 of file FormField.h.

const std::vector<Option>& Swift::FormField::getOptions (  )  const [inline, inherited]

Definition at line 47 of file FormField.h.

const std::vector<std::string>& Swift::FormField::getRawValues (  )  const [inline, inherited]

Definition at line 51 of file FormField.h.

bool Swift::FormField::getRequired (  )  const [inline, inherited]

Definition at line 41 of file FormField.h.

template<typename T >
const T& Swift::GenericFormField< T >::getValue (  )  const [inline]

Definition at line 73 of file FormField.h.

void Swift::FormField::setDescription ( const std::string &  description  )  [inline, inherited]

Definition at line 37 of file FormField.h.

void Swift::FormField::setLabel ( const std::string &  label  )  [inline, inherited]

Definition at line 34 of file FormField.h.

void Swift::FormField::setName ( const std::string &  name  )  [inline, inherited]

Definition at line 31 of file FormField.h.

void Swift::FormField::setRequired ( bool  required  )  [inline, inherited]

Definition at line 40 of file FormField.h.

template<typename T >
void Swift::GenericFormField< T >::setValue ( const T &  value  )  [inline]

Definition at line 77 of file FormField.h.