chrono::ChStreamInAscii Class Reference

Description

Base class for all ASCII INPUT streams, in the sense that number are formatted into readable strings.

Defines some << operators from basic types, converting all them into calls to the Input() function. At least some inherited class should be used by the user in order to get some practical effect (file loading, etc.)

#include <ChStream.h>

Inheritance diagram for chrono::ChStreamInAscii:
Collaboration diagram for chrono::ChStreamInAscii:

Public Member Functions

virtual ChStreamInAsciioperator>> (bool &bVal)
 
virtual ChStreamInAsciioperator>> (char &tch)
 
virtual ChStreamInAsciioperator>> (int &nVal)
 
virtual ChStreamInAsciioperator>> (double &dVal)
 
virtual ChStreamInAsciioperator>> (float &dVal)
 
virtual ChStreamInAsciioperator>> (unsigned int &unVal)
 
virtual ChStreamInAsciioperator>> (char *str)
 
virtual ChStreamInAsciioperator>> (std::string &str)
 
void SetNumFormat (const char *mf)
 Set the formatting string (ex "%f" or "%g" etc.) for text->float conversion.
 
- Public Member Functions inherited from chrono::ChStreamIn
virtual bool End_of_stream () const
 Returns true if end of stream reached. More...
 

Protected Attributes

char number_format [10]
 

Additional Inherited Members

- Public Types inherited from chrono::ChStream
enum  eChMode { CHFILE_NORMAL = 0, CHFILE_NOWRITE, CHFILE_SAFEWRITE, CHFILE_OPENLATER }
 [Obsolete] Modes for chrono files (the ch-modes). More...
 
enum  eChStreamError { CHSTREAM_OK = 0, CHSTREAM_EOF, CHSTREAM_FAIL }
 Errors for chrono files (the ch-modes). More...
 
- Protected Member Functions inherited from chrono::ChStreamIn
virtual void Input (char *data, size_t n)=0
 Inputs a raw chunk of data, from pointer 'data' up to 'n' chars (bytes). More...
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/core/ChStream.h
  • /builds/uwsbel/chrono/src/chrono/core/ChStream.cpp