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