// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _OSD_Real2String_HeaderFile #define _OSD_Real2String_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_PCharacter_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif //! Convertion of CString to Real and reciprocally
class OSD_Real2String { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } Standard_EXPORT OSD_Real2String(); //! 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_EXPORT Standard_Boolean RealToCString(const Standard_Real aReal,Standard_PCharacter& aString) const; //! 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
Standard_EXPORT Standard_Boolean CStringToReal(const Standard_CString aString,Standard_Real& aReal) ; protected: private: Standard_Character myReadDecimalPoint; Standard_Character myLocalDecimalPoint; }; // other Inline functions and methods (like "C++: function call" methods) #endif