Helpers for CommandLine to specialize UserItem. More...
Functions | |
template<typename T > | |
bool | UserItemParse (const std::string &value, T &dest) |
Helpers to specialize CommandLine::UserItem::Parse() More... | |
template<> | |
bool | UserItemParse< bool > (const std::string &value, bool &dest) |
Specialization of CommandLine::UserItem::Parse() to bool . More... | |
template<> | |
bool | UserItemParse< uint8_t > (const std::string &value, uint8_t &dest) |
Specialization of CommandLine::UserItem::Parse() to uint8_t to distinguish from char . More... | |
template<typename T > | |
std::string | GetDefault (const std::string &defaultValue) |
Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More... | |
template<> | |
std::string | GetDefault< bool > (const std::string &defaultValue) |
Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More... | |
template<> | |
std::string | GetDefault< Time > (const std::string &defaultValue) |
Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More... | |
Helpers for CommandLine to specialize UserItem.
bool ns3::CommandLineHelper::UserItemParse< bool > | ( | const std::string & | value, |
bool & | dest | ||
) |
Specialization of CommandLine::UserItem::Parse() to bool
.
[in] | value | The argument name |
[out] | dest | The boolean variable to set |
true
if parsing was successful Definition at line 908 of file command-line.cc.
bool ns3::CommandLineHelper::UserItemParse< uint8_t > | ( | const std::string & | value, |
uint8_t & | dest | ||
) |
Specialization of CommandLine::UserItem::Parse() to uint8_t
to distinguish from char
.
[in] | value | The argument name |
[out] | dest | The uint8_t variable to set |
true
if parsing was successful Definition at line 951 of file command-line.cc.
References NS_LOG_WARN.