chrono::ChStreamInAscii Class Reference
Description
This is a base class for all ASCII INPUT streams, in the sense that number are formatted into readable strings, etc.
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 ChStreamInAscii & | operator>> (bool &bVal) |
virtual ChStreamInAscii & | operator>> (char &tch) |
virtual ChStreamInAscii & | operator>> (int &nVal) |
virtual ChStreamInAscii & | operator>> (double &dVal) |
virtual ChStreamInAscii & | operator>> (float &dVal) |
virtual ChStreamInAscii & | operator>> (unsigned int &unVal) |
virtual ChStreamInAscii & | operator>> (char *str) |
virtual ChStreamInAscii & | operator>> (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 () |
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 } |
Modes for chrono files (the ch-modes) - obsolete -. 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