00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ZCOM_H
00024 #define ZCOM_H
00025
00026 #include <rawverse.h>
00027 #include <swcom.h>
00028 #include <swcomprs.h>
00029
00030 #include <defs.h>
00031
00032 class SWDLLEXPORT zCom:public zVerse, public SWCom {
00033 char *versebuf;
00034 VerseKey *lastWriteKey;
00035 bool sameBlock (VerseKey * lastWriteKey, VerseKey * key);
00036 int blockType;
00037 public:
00038
00039
00040 zCom (const char *ipath, const char *iname = 0, const char *idesc =
00041 0, int blockType = CHAPTERBLOCKS, SWCompress * icomp =
00042 0, SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN,
00043 const char* ilang = 0);
00044 virtual ~ zCom ();
00045 virtual char *getRawEntry ();
00046 virtual SWModule & operator += (int increment);
00047 virtual SWModule & operator -= (int decrement)
00048 {
00049 return this->operator += (-decrement);
00050 }
00051
00052
00053 virtual bool isWritable ()
00054 {
00055 return true;
00056 }
00057 static char createModule (const char *path, int blockBound)
00058 {
00059 return zVerse::createModule (path, blockBound);
00060 }
00061 virtual SWModule & setentry (const char *inbuf, long len);
00062 virtual SWModule & operator << (const char *inbuf);
00063 virtual SWModule & operator << (const SWKey * linkKey);
00064 virtual void deleteEntry ();
00065
00066 };
00067
00068
00069 #endif