Public Member Functions | |
virtual TString | FormatStl (float val, const CDataObject *pDO) const |
The function converts non-formatted value of float type to the formatted string. | |
virtual bool | ParseStl (const TString &, float &val, const CDataObject *pDO) const |
The function converts the formatted string to the non-formatted value of float type. | |
virtual CString | FormatMfc (float val, const CDataObject *pDO) const |
The function converts non-formatted value of float type to the formatted MFC string. | |
virtual bool | ParseMfc (const CString &str, float &val, const CDataObject *pDO) const |
The function converts the formatted MFC string to the non-formatted float-type value. | |
virtual CFormat * | Clone () const |
Creates a deep copy of a format. | |
virtual void | Serialize (CSerializer &serializer) |
Serializes a format. | |
Static Public Member Functions | |
static int | GetSerializeVertion () |
Serialization version. |
Format examples: 1. CFloatFormat(3).FormatStl(1234.5678f, 0); 2. CFloatFormat(3).FormatStl(1234.56f, 0); 3. CFloatFormat(3, true).FormatStl(1234.56f, 0); 4. CFloatFormat(3, false, true, 0, '$').FormatStl(1234.56f, 0); 5. CFloatFormat(3, false, true, '@').FormatStl(1234.56f, 0); Output strings: 1. 1 234,568 2. 1 234,56 3. 1 234,560 4. 1 234,56$ 5. @1 234,56
TString FormatStl | ( | float | val, | |
const CDataObject * | pDO | |||
) | const [virtual] |
The function converts non-formatted value of float type to the formatted string.
[in] | val | Non formatted value of float type. |
[in] | pDO | Pointer to CDataObject. This parameter is optional and may be zero. |
Reimplemented from CFormat.
bool ParseStl | ( | const TString & | str, | |
float & | val, | |||
const CDataObject * | pDO | |||
) | const [virtual] |
The function converts the formatted string to the non-formatted value of float type.
[in] | str | Formatted string. |
[in,out] | val | Value of float type that is a result of conversion. |
[in] | pDO | Pointer to CDataObject. This parameter is optional and may be zero. |
Reimplemented from CFormat.
CString FormatMfc | ( | float | val, | |
const CDataObject * | pDO | |||
) | const [virtual] |
The function converts non-formatted value of float type to the formatted MFC string.
[in] | val | Non-formatted MFC string to be formatted. |
[in] | pDO | Pointer to CDataObject. This parameter is optional and may be zero. |
Reimplemented from CFormat.
bool ParseMfc | ( | const CString & | str, | |
float & | val, | |||
const CDataObject * | pDO | |||
) | const [virtual] |
The function converts the formatted MFC string to the non-formatted float-type value.
[in] | str | MFC string to be formatted. |
[in,out] | val | A value of the float type that is a result of the parsing. |
[in] | pDO | Pointer to CDataObject. This parameter is optional and may be zero. |
Reimplemented from CFormat.
CFormat * Clone | ( | ) | const [virtual] |
void Serialize | ( | CSerializer & | serializer | ) | [virtual] |
Serializes a format.
[in] | serializer | Object, into which a format object is serialized. |
Reimplemented from CFormat.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |