A Discrete-Event Network Simulator
API
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 58 of file csv-reader.cc.

References NS_LOG_FUNCTION.

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

+ Here is the caller graph for this function: