| 212 | |
| 213 | #ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT |
| 214 | void FloatNodeImpl::dump( int indent, std::ostream &os ) const |
| 215 | { |
| 216 | // don't checkImageFileOpen |
| 217 | os << space( indent ) << "type: Float" << " (" << type() << ")" << std::endl; |
| 218 | NodeImpl::dump( indent, os ); |
| 219 | os << space( indent ) << "precision: "; |
| 220 | if ( precision() == PrecisionSingle ) |
| 221 | { |
| 222 | os << "single" << std::endl; |
| 223 | } |
| 224 | else |
| 225 | { |
| 226 | os << "double" << std::endl; |
| 227 | } |
| 228 | |
| 229 | // Save old stream config |
| 230 | const std::streamsize oldPrecision = os.precision(); |
| 231 | const std::ios_base::fmtflags oldFlags = os.flags(); |
| 232 | |
| 233 | os << space( indent ) << std::scientific << std::setprecision( 17 ) |
| 234 | << "value: " << value_ << std::endl; |
| 235 | os << space( indent ) << "minimum: " << minimum_ << std::endl; |
| 236 | os << space( indent ) << "maximum: " << maximum_ << std::endl; |
| 237 | |
| 238 | // Restore old stream config |
| 239 | os.precision( oldPrecision ); |
| 240 | os.flags( oldFlags ); |
| 241 | } |
| 242 | #endif |
| 243 | } |