/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/FMTSTR.H__   1.2.1.4   17 Apr 1997 15:52:28   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/FMTSTR.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 15:52:28   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:23:52   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:34:38   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:14:46   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:19:52   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:30:18   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:46:46   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:14:48   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 12:58:04   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:14:58   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:26:32   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 09:53:38   ZJRD
** No change.
** 
**    Rev 1.7.1.1   28 Aug 1996 15:47:14   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:52:00   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.5   05 Jun 1996 14:54:10   ZJRD
** No change.
** 
**    Rev 1.4   29 May 1996 09:29:40   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:06:58   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:09:58   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:26:34   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.1   18 Apr 1996 12:54:30   Shirley
** No change.
** 
**    Rev 1.0   12 Apr 1996 10:36:30   Shirley
** Initial revision.
** 
****************************************************************************/

/****************************************************************************
**  Name:   FmtStr.h
**
**  Description:  This file describe the sub class of string format type.
**
**  Status:       Initialization
**                1996/02/15                    Daniel Lin
**
**  Copyright (C) 1996 Microtek International.  All rights reserved.
*****************************************************************************/

#ifndef __FMTSTR__H
#define __FMTSTR__H

class CFormatString : public CFormatType
{
   protected:
      // Attribute
      CString  m_strOrigin;
      DWORD    m_dwData;

      BOOL     Dec2Num     ( char* lpsz,
                             DWORD& dw );   // decimal string to numerica
      BOOL     Hex2Num     ( const char* lpsz,
                             DWORD& dw );   // hexadecimal string to numerica
      BOOL     Str2Num     ( char* lpsz,
                             DWORD& dw );   // string to numerica
      BOOL     Str2Num     ( CString str,
                             DWORD& dw );   // string to numerica
      BOOL     Num2HexStr  ( const DWORD dw,
                             char* lpsz );  // convert numerica to hex string
      BOOL     Num2HexStr  ( const DWORD dw,
                             CString& str); // convert numerica to hex string
      BOOL     Num2DecStr  ( const DWORD dw,
                             char* lpsz );  // convert numerica to dec string
      BOOL     Num2DecStr  ( const DWORD dw,
                             CString& str); // convert numerica to dec string
   public:
      // Constructor
      CFormatString()
      {
         m_strOrigin = "";
         m_dwData = 0;
      }

      // Implementation
      virtual  void  Convert();
};

#endif

///////////////////////////////////(EOF)///////////////////////////////////////

