MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChStreamInAscii Class Reference

#include <CHstream.h>

Inheritance diagram for chrono::ChStreamInAscii:

Inheritance graph
[legend]
Collaboration diagram for chrono::ChStreamInAscii:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ChStreamInAsciioperator>> (bool &bVal)
virtual ChStreamInAsciioperator>> (char &tch)
virtual ChStreamInAsciioperator>> (int &nVal)
virtual ChStreamInAsciioperator>> (double &dVal)
virtual ChStreamInAsciioperator>> (unsigned int &unVal)
virtual ChStreamInAsciioperator>> (char *str)
virtual ChStreamInAsciioperator>> (std::string &str)
void SetNumFormat (char *mf)

Protected Attributes

char number_format [10]


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

Member Function Documentation

void chrono::ChStreamInAscii::SetNumFormat ( char *  mf  ) 

Set the formatting string (ex "%f" or "%g" etc.) for text->float conversion.


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