#include <exotkUtils.hxx>
Public Methods | |
| void * | operator new (size_t, void *anAddress) |
| OCC new. More... | |
| void * | operator new (size_t size) |
| OCC new. More... | |
| void | operator delete (void *anAddress) |
| OCC delete. More... | |
Static Public Methods | |
| Standard_EXPORT TCollection_AsciiString | CurrentDateToAsciiString (const enum exotkUtils_DateFormat aDateFormat) |
| convert the current date to asciistring. More... | |
| Standard_EXPORT TCollection_AsciiString | DateToAsciiString (const enum exotkUtils_DateFormat aDateFormat, const Quantity_Date &aDate) |
| convert aDate to asciiString. More... | |
| Standard_EXPORT Quantity_Color | ConvertColor (const exotkUtils_ColorRef &aColorRef) |
| Convert a "MFC" Color to a Quantity_Color. More... | |
| Standard_EXPORT exotkUtils_ColorRef | ConvertColor (const Quantity_Color &aColor) |
| Convert aColor to a "MFC" Color. More... | |
| Standard_EXPORT Standard_Boolean | AsciiStringToReal (const TCollection_AsciiString &aStringToConvert, Standard_Real &aRealResult) |
| Convert an AsciiString the Standard_Real This function is used because sometimes (?) the Method TCollection_AsciiString::IsRealValue() returns a wrong result.... More... | |
| Standard_EXPORT Standard_Boolean | AsciiStringToInteger (const TCollection_AsciiString &aStringToConvert, Standard_Integer &anIntegerResult) |
| Convert an AsciiString to Standard_Integer This function is used because sometimes (?) the Method TCollection_AsciiString::IsIntegerValue() returns a wrong result.... More... | |
| Standard_EXPORT Standard_Real | TruncateReal (const Standard_Real aRealToTruncate, const Standard_Integer aNegNb=3) |
| Truncate aRealToTruncate ( ex TruncateTeal(3.141592654,2) -> 3.14 ). More... | |
| Standard_EXPORT TCollection_AsciiString | TruncateRealToAsciiString (const Standard_Real aReal, const Standard_Integer aNegNb=3, const Standard_Integer aNbChar=-1) |
| Truncate aReal and convert it to string. More... | |
| Standard_EXPORT TCollection_AsciiString | ColorToAsciiString (const Quantity_Color &aColor) |
| Convert aColor to string. More... | |
| Standard_EXPORT Standard_Boolean | AsciiStringToColor (const TCollection_AsciiString &aString, Quantity_Color &aColor) |
| Convert aString to aColor. More... | |
| Standard_EXPORT Standard_Boolean | AsciiStringToBoolean (const TCollection_AsciiString &aString, Standard_Boolean &aBoolean) |
| Convert aString to aBoolean. More... | |
| Standard_EXPORT TCollection_AsciiString | BooleanToAsciiString (const Standard_Boolean aBoolean) |
| Convert aBoolean to string. More... | |
Definition at line 62 of file exotkUtils.hxx.
|
||||||||||||
|
Convert aString to aBoolean.
Definition at line 270 of file exotkUtils.cxx. |
|
||||||||||||
|
Convert aString to aColor.
Definition at line 239 of file exotkUtils.cxx. References AsciiStringToReal(). |
|
||||||||||||
|
Convert an AsciiString to Standard_Integer This function is used because sometimes (?) the Method TCollection_AsciiString::IsIntegerValue() returns a wrong result....
Definition at line 139 of file exotkUtils.cxx. Referenced by exotkParameter_Integer::SetParameterAsString(), and exotkParameter_Enumeration::SetParameterAsString(). |
|
||||||||||||
|
Convert an AsciiString the Standard_Real This function is used because sometimes (?) the Method TCollection_AsciiString::IsRealValue() returns a wrong result....
Definition at line 117 of file exotkUtils.cxx. Referenced by AsciiStringToColor(), and exotkParameter_Real::SetParameterAsString(). |
|
|
Convert aBoolean to string.
Definition at line 262 of file exotkUtils.cxx. |
|
|
Convert aColor to string.
Definition at line 234 of file exotkUtils.cxx. References TruncateRealToAsciiString(). |
|
|
Convert aColor to a "MFC" Color.
Definition at line 99 of file exotkUtils.cxx. References exotkUtils_ColorRef, and RGB. |
|
|
Convert a "MFC" Color to a Quantity_Color.
Definition at line 79 of file exotkUtils.cxx. References exotkUtils_ColorRef, GetBValue, GetGValue, and GetRValue. |
|
|
convert the current date to asciistring.
Definition at line 330 of file exotkUtils.cxx. References DateToAsciiString(), and exotkUtils_DateFormat. Referenced by exotkTrace_File::GenerateFilename(), and exotkTrace_File::Print(). |
|
||||||||||||
|
convert aDate to asciiString.
Definition at line 305 of file exotkUtils.cxx. References exotkUtils_DateFormat, exotkUtils_dfFile, exotkUtils_dfText, and IntegerToAsciiStringWithTwoDigits(). Referenced by CurrentDateToAsciiString(). |
|
|
OCC delete.
Definition at line 95 of file exotkUtils.hxx. References exotkUtils_ColorRef, and exotkUtils_DateFormat. |
|
|
OCC new.
Definition at line 84 of file exotkUtils.hxx. |
|
||||||||||||
|
OCC new.
Definition at line 73 of file exotkUtils.hxx. |
|
||||||||||||
|
Truncate aRealToTruncate ( ex TruncateTeal(3.141592654,2) -> 3.14 ).
Definition at line 161 of file exotkUtils.cxx. |
|
||||||||||||||||
|
Truncate aReal and convert it to string.
Definition at line 184 of file exotkUtils.cxx. Referenced by ColorToAsciiString(). |
1.2.12 written by Dimitri van Heesch,
© 1997-2001