chrono::ChStreamInAsciiVector Class Reference
Description
Specialized class for ASCII input from wrapped std::vector<char>.
#include <ChStream.h>
Inheritance diagram for chrono::ChStreamInAsciiVector:
Collaboration diagram for chrono::ChStreamInAsciiVector:
Public Member Functions | |
ChStreamInAsciiVector (std::vector< char > *mchars) | |
virtual bool | End_of_stream () const override |
Returns true if end of stream (end of vector) reached. | |
Public Member Functions inherited from chrono::ChStreamVectorWrapper | |
ChStreamVectorWrapper (std::vector< char > *mchars) | |
Creates a wrapper for an already existing std::vector<char>, given the pointer to that vector. | |
virtual | ~ChStreamVectorWrapper () |
Deleting this wrapper does not delete nor closes the wrapped buffer. | |
virtual void | Read (char *data, size_t n) |
Reads from vector, up to n chars. More... | |
virtual void | Write (const char *data, size_t n) |
Writes raw data to vector, up to n chars. More... | |
std::vector< char > * | GetVector () |
Direct reference to std::vector<char> encapsulated here. | |
void | Seek (int position) |
Rewind read position to char number (0= beginning). More... | |
Public Member Functions inherited from chrono::ChStreamInAscii | |
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. | |
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 Attributes inherited from chrono::ChStreamInAscii | |
char | number_format [10] |
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/core/ChStream.h