Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

rawfiles.h

00001 /******************************************************************************
00002  *  rawfiles.h - code for class 'RawFiles'- a module that produces HTML HREFs
00003  *                      pointing to actual text desired.  Uses standard
00004  *                      files:  ot and nt using indexs ??.bks ??.cps ??.vss
00005  *
00006  * $Id: rawfiles_8h-source.html,v 1.7 2002/06/20 20:23:09 mgruner Exp $
00007  *
00008  * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
00009  *      CrossWire Bible Society
00010  *      P. O. Box 2528
00011  *      Tempe, AZ  85280-2528
00012  *
00013  * This program is free software; you can redistribute it and/or modify it
00014  * under the terms of the GNU General Public License as published by the
00015  * Free Software Foundation version 2.
00016  *
00017  * This program is distributed in the hope that it will be useful, but
00018  * WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * General Public License for more details.
00021  *
00022  */
00023 
00024 #ifndef RAWFILES_H
00025 #define RAWFILES_H
00026 
00027 #include <rawverse.h>
00028 #include <swcom.h>
00029 
00030 #include <defs.h>
00031 
00032 class SWDLLEXPORT RawFiles:public RawVerse, public SWCom
00033 {
00034 
00035   char *getnextfilename ();
00036 
00037 public:
00038   
00039     
00040     RawFiles (const char *ipath, const char *iname = 0, const char *idesc =
00041               0, SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN,
00042               const char* ilang = 0);
00043     virtual ~RawFiles ();
00044   virtual char *getRawEntry ();
00045 
00046   // write interface ----------------------------
00050         virtual bool isWritable () { return ((idxfp[0]->getFd() > 0) && ((idxfp[0]->mode & O_RDWR) == O_RDWR)); }
00051   
00056   static char createModule (const char *);
00057   
00062   virtual SWModule & operator << (const char *);
00063   
00068   virtual SWModule & operator << (const SWKey *);
00069   
00073   virtual void deleteEntry ();
00074   // end write interface ------------------------
00075 };
00076 
00077 
00078 #endif

Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by doxygen1.2.15