Wittyshare
0.2
|
#include <WsOption.h>
Public Member Functions | |
WsOptions () | |
WsOptions (const std::vector< WsOption > &vOptions) | |
WsOptions (const WsOptions &src) | |
void | setOption (const std::string &attribute, boost::any value) |
Set an options if previously set, update the value. More... | |
void | setOptions (const std::vector< WsOption > &vOptions) |
Set all options. More... | |
const boost::any & | option (const std::string &attribute) const |
Get an options value. More... | |
const std::vector< WsOption > & | options () const |
Get all options. More... | |
void | outOptions (const std::string message) |
Output all options. More... | |
Private Attributes | |
std::vector< WsOption > | m_vOptions |
boost::any | m_noOptions |
Definition at line 23 of file WsOption.h.
WsOptions::WsOptions | ( | ) |
Definition at line 35 of file WsOption.cpp.
WsOptions::WsOptions | ( | const std::vector< WsOption > & | vOptions | ) |
Definition at line 38 of file WsOption.cpp.
WsOptions::WsOptions | ( | const WsOptions & | src | ) |
const boost::any & WsOptions::option | ( | const std::string & | attribute | ) | const |
Get an options value.
Definition at line 62 of file WsOption.cpp.
const std::vector< WsOption > & WsOptions::options | ( | ) | const |
Get all options.
Definition at line 70 of file WsOption.cpp.
void WsOptions::outOptions | ( | const std::string | message | ) |
Output all options.
Definition at line 75 of file WsOption.cpp.
void WsOptions::setOption | ( | const std::string & | attribute, |
boost::any | value | ||
) |
Set an options if previously set, update the value.
Definition at line 47 of file WsOption.cpp.
void WsOptions::setOptions | ( | const std::vector< WsOption > & | vOptions | ) |
Set all options.
Definition at line 57 of file WsOption.cpp.
|
private |
Definition at line 45 of file WsOption.h.
|
private |
Definition at line 44 of file WsOption.h.