A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{csv-reader.cc} Namespace Reference

Functions

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

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 47 of file csv-reader.cc.

References NS_LOG_FUNCTION.