chrono::ChStreamIn Class Referenceabstract

Description

Base class for all INPUT streams.

Does nothing special - it must be implemented by child classes.

#include <ChStream.h>

Inheritance diagram for chrono::ChStreamIn:
Collaboration diagram for chrono::ChStreamIn:

Public Member Functions

virtual bool End_of_stream () const
 Returns true if end of stream reached. More...
 

Protected Member Functions

virtual void Input (char *data, size_t n)=0
 Inputs a raw chunk of data, from pointer 'data' up to 'n' chars (bytes). More...
 

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...
 

Member Function Documentation

◆ End_of_stream()

virtual bool chrono::ChStreamIn::End_of_stream ( ) const
inlinevirtual

Returns true if end of stream reached.

Child classes should implement it.

Reimplemented in chrono::ChStreamInAsciiFile, chrono::ChStreamInBinaryFile, chrono::ChStreamInAsciiVector, chrono::ChStreamInBinaryVector, and chrono::ChStreamInBinaryStream.

◆ Input()

virtual void chrono::ChStreamIn::Input ( char *  data,
size_t  n 
)
protectedpure virtual

Inputs a raw chunk of data, from pointer 'data' up to 'n' chars (bytes).

NOTE: Inherited class could override only this function to have everything working, for example to output into a message box, or to sockets, etc.


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