chrono::ChStreamOutAsciiFile Class Reference

Description

This is a specialized class for ASCII output on system's file,.

#include <ChStream.h>

Inheritance diagram for chrono::ChStreamOutAsciiFile:
Collaboration diagram for chrono::ChStreamOutAsciiFile:

Public Member Functions

 ChStreamOutAsciiFile (const char *filename, std::ios::openmode mmode=std::ios::trunc)
 
- Public Member Functions inherited from chrono::ChStreamFile
 ChStreamFile (const char *filename, std::ios::openmode mmode)
 Creates a system file, like the C++ fstream, and opens it, given filename on disk, and the opening mode (ex: std::ios::out or std::ios::in)
 
virtual ~ChStreamFile ()
 Destruction means that the file stream is also closed.
 
virtual void Flush ()
 Synchronizes the associated stream buffer with its controlled output sequence.
 
virtual void Write (const char *data, size_t n)
 Writes to file, up to n chars. More...
 
virtual void Read (char *data, size_t n)
 Reads from file, up to n chars. More...
 
virtual bool End_of_stream () const
 Returns true if end of stream reached.
 
std::fstream & GetFstream ()
 Reference to fstream encapsulated here.
 
- Public Member Functions inherited from chrono::ChStreamOutAscii
ChStreamOutAsciioperator<< (bool bVal)
 Generic << operator for all classes which implement serialization by means of a method named 'void StreamOUT(ChStreamOutAscii&)'.
 
ChStreamOutAsciioperator<< (char tch)
 
ChStreamOutAsciioperator<< (const int nVal)
 
ChStreamOutAsciioperator<< (const double dVal)
 
ChStreamOutAsciioperator<< (const float dVal)
 
ChStreamOutAsciioperator<< (unsigned int unVal)
 
ChStreamOutAsciioperator<< (char *str)
 
ChStreamOutAsciioperator<< (const char *str)
 
ChStreamOutAsciioperator<< (std::string &str)
 
ChStreamOutAsciioperator<< (unsigned long unVal)
 
ChStreamOutAsciioperator<< (unsigned long long unVal)
 
template<class T >
ChStreamOutAsciioperator< (T obj)
 OBSOLETE use ChArchive << operator and ArchiveOUT()
 
virtual void Format (char *formatString,...)
 Output the log message in form of a formatted string, like in printf()
 
void SetNumFormat (const char *mf)
 Set the formatting string (ex "%f" or "%g" etc.) for float->text conversion.
 
char * GetNumFormat ()
 
void SetCommentTrailer (char *mt)
 Set the trailer symbol before each comment (example: "#" , or "//" etc.)
 
void CR ()
 Outputs carriage return.
 
void TAB ()
 Output tab.
 
void Comment (char m_string[])
 Output comment with preceding trailer (ex #)
 
void Bar ()
 Output a separation bar in Ascii file.
 

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 Attributes inherited from chrono::ChStreamOutAscii
char number_format [10]
 
char comment_trailer [10]
 

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