Open CASCADE Technology 6.5.2
Public Member Functions
OSD_Real2String Class Reference

Convertion of CString to Real and reciprocally

#include <OSD_Real2String.hxx>

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 OSD_Real2String ()
Standard_Boolean RealToCString (const Standard_Real aReal, Standard_PCharacter &aString) const
 Converts aReal into aCstring in exponential format with maximum
17 digits. The size of the destination string must be sufficient (at least 23 characters)
The decimal separator account for locale setting, but
neither thousand separator nor grouping of digits in the output string.


Standard_Boolean CStringToReal (const Standard_CString aString, Standard_Real &aReal)
 Converts aCstring representing a real. The first occurence of the decimal separator
(comma or period) defines it values for further readings.
Neither thousand separator nor grouping of digits are allowed in the CString


Constructor & Destructor Documentation

OSD_Real2String::OSD_Real2String ( )

Member Function Documentation

Standard_Boolean OSD_Real2String::CStringToReal ( const Standard_CString  aString,
Standard_Real aReal 
)
void OSD_Real2String::operator delete ( void *  anAddress) [inline]
void* OSD_Real2String::operator new ( size_t  size) [inline]
void* OSD_Real2String::operator new ( size_t  ,
void *  anAddress 
) [inline]
Standard_Boolean OSD_Real2String::RealToCString ( const Standard_Real  aReal,
Standard_PCharacter aString 
) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines