#include <dynamic-graph/signal-caster.h>


Static Public Member Functions | |
| static double | cast (std::istringstream &iss) |
Static Public Member Functions inherited from signal_io_base< double > | |
| static double | cast (std::istringstream &is) |
| deserialize a signal value. | |
| static void | disp (const double &value, std::ostream &os) |
| serialize a signal value. | |
| static void | trace (const double &value, std::ostream &os) |
| write a signal value to log file | |
Template specialization of signal_io for double to workaround the limitations of the stream based approach.
When dealing with double: displaying a double on a stream is NOT the opposite of reading a double from a stream.
In practice, it means that there is no way to read a NaN, +inf, -inf from a stream!
To workaround this problem, parse special values manually (the strings used are the one produces by displaying special values on a stream).
Definition at line 122 of file signal-caster.h.