A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
anonymous_namespace{csv-reader.cc} Namespace Reference

Functions

template<typename T >
bool GenericTransform (std::string input, T &output)
 Convert a string into another type. More...
 

Function Documentation

◆ GenericTransform()

template<typename T >
bool anonymous_namespace{csv-reader.cc}::GenericTransform ( std::string  input,
T &  output 
)

Convert a string into another type.

Uses a stringstream to deserialize the value stored in input to a value of type T and writes the deserialized value to output.

Template Parameters
TData type of output.
Parameters
inputString containing serialized data.
outputPlace to store deserialized value.
Returns
true if deserialization was successful, false otherwise.

Definition at line 59 of file csv-reader.cc.

References NS_LOG_FUNCTION.

Referenced by ns3::CsvReader::GetValueAs().

+ Here is the caller graph for this function: