MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChStreamFileWrapper Class Reference

#include <CHstream.h>

Inheritance diagram for chrono::ChStreamFileWrapper:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ChStreamFileWrapper (std::ostream *mfile)
virtual ~ChStreamFileWrapper ()
virtual void Write (const char *data, int n)
virtual bool End_of_stream ()


Detailed Description

This is a wrapper for already-opened files (like std::cout or similar)

Constructor & Destructor Documentation

chrono::ChStreamFileWrapper::ChStreamFileWrapper ( std::ostream *  mfile  ) 

Creates a wrapper for an already existing, already opened, ostream, given the pointer to that ostream.

chrono::ChStreamFileWrapper::~ChStreamFileWrapper (  )  [virtual]

Deleting this stream wrapper does not delete nor closes the wrapped ostream!


Member Function Documentation

void chrono::ChStreamFileWrapper::Write ( const char *  data,
int  n 
) [virtual]

Writes raw data to file, up to n chars. If does not succeed, throws exception.

virtual bool chrono::ChStreamFileWrapper::End_of_stream (  )  [virtual]

Returns true if end of stream reached.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen