14 #ifndef DATAFORMFIELD_H__
15 #define DATAFORMFIELD_H__
91 const std::string& label =
EmptyString, FieldType type = TypeTextSingle );
116 virtual Tag* tag()
const;
122 const std::string&
name()
const {
return m_name; }
130 void setName(
const std::string& name ) { m_name = name; }
146 void addOption(
const std::string& label,
const std::string& value )
147 { m_options.insert( std::make_pair( label, value ) ); }
165 const std::string&
label()
const {
return m_label; }
171 void setLabel(
const std::string& label ) { m_label = label; }
189 const std::string&
value()
const {
return ( m_values.size() > 0 ) ? m_values.front() :
EmptyString; }
195 void setValue(
const std::string& value ) { m_values.clear(); addValue( value ); }
214 void addValue(
const std::string& value ) { m_values.push_back( value ); }
This is an abstraction of an XML element.
The namespace for the gloox library.
std::multimap< std::string, std::string > StringMultiMap
std::list< std::string > StringList
const std::string EmptyString