/***************************************************************************
**
**    $Header:   D:/EPSLDV1/SRC/LOG/FMTSTR.H__   1.8   20 Jun 1996 09:25:34   ZJRD  $
**
**    $Log:   D:/EPSLDV1/SRC/LOG/FMTSTR.H__  $
** 
**    Rev 1.8   20 Jun 1996 09:25:34   ZJRD
** EasyPack/SLD Version 1.20a
** 
**    Rev 1.6   10 Jun 1996 10:20:12   ZJRD
** EasyPack/SLD Version 1.20
** 
**    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)///////////////////////////////////////

