//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TGGiBitmapStorage 类 // = Version : ver2.0 // = Author : wlw // = CreateDate : 2002-09-09 // = Description: TGGiBitmapStorage 定义 // = Maintainers: // //-----------------------------------------------------------------------------+ #include "StdAfx.h" #include "TGGiBitmapStorage.h" #include "TAString.h" // #include "TUString.h" int TGGiBitmapStorage::Append(const TCHAR *srcFile, const TCHAR *szItem) { char drive[_MAX_DRIVE] = "", dir[_MAX_DIR] = "", file[_MAX_FNAME] = "", ext[_MAX_EXT] = ""; _splitpath(_AS(srcFile), drive, dir, file, ext); if (_stricmp(ext, ".JPG") == 0) { return TGGiSlibStorage::MainTain(srcFile, File_Add, szItem); } else { return TGGiCompressStorage::Append(srcFile, szItem); } } TGGiBitmapStorage::TGGiBitmapStorage(const TCHAR *fname, int opMode) : TGGiCompressStorage(fname, _T(".BMP"), BMB_TITLE, opMode) { } TGGiBitmapStorage::~TGGiBitmapStorage() { }