dynamic-graph  4.4.3
Dynamic graph library
signal_io< double > Struct Reference

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

Inheritance diagram for signal_io< double >:
Collaboration diagram for signal_io< double >:

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: