Xbase64 Class Library
3.1.2
|
00001 /* xbfile.h 00002 00003 Xbase project source code 00004 00005 This file conatains a header file for the xbLock virtual objects which 00006 is used for controlling file and record locking. Record and file 00007 locking has been rewritten in version 3. 00008 00009 Copyright (C) 1997,2003,2004 Gary A Kunkel 00010 Sergio Yakovin 00011 00012 This program is free software; you can redistribute it and/or modify 00013 it under the terms of the GNU Lesser General Public License as published by 00014 the Free Software Foundation; either version 2 of the License, or 00015 (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU Lesser General Public License for more details. 00021 You should have received a copy of the GNU Lesser General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 00026 Contact: 00027 00028 Email: 00029 00030 xdb-devel@lists.sourceforge.net 00031 xdb-users@lists.sourceforge.net 00032 00033 00034 Regular Mail: 00035 00036 XBase Support 00037 149C South Main St 00038 Keller Texas, 76248 00039 USA 00040 */ 00041 00045 #ifndef __XB_FILE_H__ 00046 #define __XB_FILE_H__ 00047 00048 #ifdef __GNU_LesserG__ 00049 #pragma interface 00050 #endif 00051 00052 class XBDLLEXPORT xbFile 00053 { 00054 public: 00055 xbFile(){} 00056 virtual const char* GetExtWithDot(bool lower)=0; 00057 const xbString& GetFileName() {return fileName_;} 00058 xbString MakeFileName(const char* filename); 00059 00060 protected: 00061 void SetFileName(const char *filename) 00062 { 00063 fileName_=MakeFileName(filename); 00064 } 00065 00066 private: 00067 xbString fileName_; 00068 }; 00069 00070 #endif 00071 // XBFILE_H