Xbase64 Class Library  3.1.2
xbfile.h
Go to the documentation of this file.
1 /* xbfile.h
2 
3  Xbase project source code
4 
5  This file conatains a header file for the xbLock virtual objects which
6  is used for controlling file and record locking. Record and file
7  locking has been rewritten in version 3.
8 
9  Copyright (C) 1997,2003,2004 Gary A Kunkel
10  Sergio Yakovin
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU Lesser General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU Lesser General Public License for more details.
21  You should have received a copy of the GNU Lesser General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 
25 
26  Contact:
27 
28  Email:
29 
30  xdb-devel@lists.sourceforge.net
31  xdb-users@lists.sourceforge.net
32 
33 
34  Regular Mail:
35 
36  XBase Support
37  149C South Main St
38  Keller Texas, 76248
39  USA
40 */
41 
45 #ifndef __XB_FILE_H__
46 #define __XB_FILE_H__
47 
48 #ifdef __GNU_LesserG__
49 #pragma interface
50 #endif
51 
53 {
54  public:
55  xbFile(){}
56  virtual const char* GetExtWithDot(bool lower)=0;
57  const xbString& GetFileName() {return fileName_;}
58  xbString MakeFileName(const char* filename);
59 
60  protected:
61  void SetFileName(const char *filename)
62  {
63  fileName_=MakeFileName(filename);
64  }
65 
66  private:
67  xbString fileName_;
68 };
69 
70 #endif
71  // XBFILE_H
xbFile()
Definition: xbfile.h:55
#define XBDLLEXPORT
Definition: xbase64.h:87
xbString class
Definition: xbstring.h:63
Definition: xbfile.h:52
void SetFileName(const char *filename)
Definition: xbfile.h:61
const xbString & GetFileName()
Definition: xbfile.h:57