//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing SH Software Co. Ltd. // = FileName : TWFormatUnit.h // = Version : ver2.0 // = Author : // = CreateDate : 2002-09-09 // = Description: 类的声明 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _TWFORMATUNIT_H_ #define _TWFORMATUNIT_H_ #ifndef _TASTRING_H_ #include "TAString.h" #endif class TWFormatUnit : public TAString { public: TWFormatUnit(); TWFormatUnit(const char *format, long &cur, char* &curP); TWFormatUnit(const char *format, long &cur, const TAString &s, long &sCur); virtual ~TWFormatUnit(); bool IsValid()const; TWFormatUnit& operator = (const TWFormatUnit& src); public: int width; int bLeftAlign; int preci; bool bValid; FormatType type; }; #endif