MFC Grid manual

CDefaultMfcStringFormat Class Reference

This format performs no actions. More...

#include <Dapfor/Common/DefaultStringFormat.h>

Inheritance diagram for CDefaultMfcStringFormat:

CFormat

List of all members.


Public Member Functions

virtual TString FormatStl (const CString &val, const CDataObject *pDO) const
 The function converts non-formatted value of CString type to the formatted STL string.
virtual bool ParseStl (const TString &str, CString &val, const CDataObject *pDO) const
 The function converts the formatted STL string to the non-formatted MFC string.
virtual CString FormatMfc (const CString &val, const CDataObject *pDO) const
 The function converts non-formatted value of MFC string type to the formatted MFC string.
virtual bool ParseMfc (const CString &str, CString &val, const CDataObject *pDO) const
 The function converts the formatted MFC string to the non-formatted MFC string.
virtual CFormatClone () 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.

Detailed Description

This format performs no actions.

Member Function Documentation

TString FormatStl ( const CString &  val,
const CDataObject pDO 
) const [virtual]

The function converts non-formatted value of CString type to the formatted STL string.

Parameters:
[in] val Non-formatted MFC string to be formatted.
[in] pDO Pointer to CDataObject. This parameter is optional and may be zero.
Returns:
Formatted string that is a result of conversion.

Reimplemented from CFormat.

bool ParseStl ( const TString &  str,
CString &  val,
const CDataObject pDO 
) const [virtual]

The function converts the formatted STL string to the non-formatted MFC string.

Parameters:
[in] str STL string to be formatted.
[in,out] val MFC string that is a resunt of conversion.
[in] pDO Pointer to CDataObject. This parameter is optional and may be zero.
Returns:
True, if the string has been successfully parsed. Otherwise false.

Reimplemented from CFormat.

CString FormatMfc ( const CString &  val,
const CDataObject pDO 
) const [virtual]

The function converts non-formatted value of MFC string type to the formatted MFC string.

Parameters:
[in] val Non-formatted MFC string to be formatted.
[in] pDO Pointer to CDataObject. This parameter is optional and may be zero.
Returns:
Formatted string that is a result of conversion.

Reimplemented from CFormat.

bool ParseMfc ( const CString &  str,
CString &  val,
const CDataObject pDO 
) const [virtual]

The function converts the formatted MFC string to the non-formatted MFC string.

Parameters:
[in] str MFC string to be formatted.
[in,out] val MFC string that is a result of conversion.
[in] pDO Pointer to CDataObject. This parameter is optional and may be zero.
Returns:
True, if the string has been successfully parsed. Otherwise false.

Reimplemented from CFormat.

CFormat * Clone (  )  const [virtual]

Creates a deep copy of a format.

Returns:
Deep copy of a format object.

Implements CFormat.

void Serialize ( CSerializer serializer  )  [virtual]

Serializes a format.

Parameters:
[in] serializer Object, into which a format object is serialized.

Reimplemented from CFormat.