The SWORD Project
1.9.0.svnversion
|
#include <rawcom4.h>
Static Public Member Functions | |
static char | createModule (const char *path, const char *v11n="KJV") |
static signed char | createModule (const char *path) |
static void | nullPercent (char percent, void *userData) |
Public Attributes | |
bool | terminateSearch |
Static Public Attributes | |
static const char | nl = '\n' |
static const signed int | SEARCHFLAG_MATCHWHOLEENTRY = 4096 |
static const signed int | SEARCHFLAG_STRICTBOUNDARIES = 8192 |
static const signed int | SEARCHTYPE_ENTRYATTR = -3 |
static const signed int | SEARCHTYPE_EXTERNAL = -4 |
static const signed int | SEARCHTYPE_MULTIWORD = -2 |
static const signed int | SEARCHTYPE_PHRASE = -1 |
static const signed int | SEARCHTYPE_REGEX = 0 |
Protected Member Functions | |
void | doLinkEntry (char testmt, long destidxoff, long srcidxoff) |
void | doSetText (char testmt, long idxoff, const char *buf, long len=-1) |
VerseKey & | getVerseKey (SWKey *key=0) |
const VerseKey & | getVerseKey (const SWKey *key=0) const |
const VerseKey & | getVerseKeyConst (const SWKey *key=0) const |
Static Protected Member Functions | |
static void | prepText (SWBuf &buf) |
Protected Attributes | |
ConfigEntMap * | config |
char | direction |
SWDisplay * | disp |
char | encoding |
FilterList * | encodingFilters |
AttributeTypeList | entryAttributes |
SWBuf | entryBuf |
long | entryIndex |
int | entrySize |
char | error |
FileDesc * | idxfp [2] |
SWKey * | key |
ListKey | listKey |
char | markup |
char * | moddesc |
char * | modlang |
char * | modname |
char * | modtype |
OptionFilterList * | optionFilters |
ConfigEntMap | ownConfig |
char * | path |
bool | procEntAttr |
FilterList * | rawFilters |
FilterList * | renderFilters |
bool | skipConsecutiveLinks |
FilterList * | stripFilters |
FileDesc * | textfp [2] |
Static Protected Attributes | |
static StdOutDisplay | rawdisp |
SWORD_NAMESPACE_START RawCom4::RawCom4 | ( | const char * | ipath, |
const char * | iname = 0 , |
||
const char * | idesc = 0 , |
||
SWDisplay * | idisp = 0 , |
||
SWTextEncoding | encoding = ENC_UNKNOWN , |
||
SWTextDirection | dir = DIRECTION_LTR , |
||
SWTextMarkup | markup = FMT_UNKNOWN , |
||
const char * | ilang = 0 , |
||
const char * | versification = "KJV" |
||
) |
Definition at line 44 of file rawcom4.cpp.
|
virtual |
Definition at line 54 of file rawcom4.cpp.
Adds an EncodingFilter to this module's
newFilter | the filter to add |
Definition at line 627 of file swmodule.h.
|
inlineinherited |
Definition at line 634 of file swmodule.h.
|
inlinevirtualinherited |
Adds an OptionFilter to this module's optionFilters queue. Option Filters are used to turn options in the text on or off, or so some other state (e.g. Strong's Number, Footnotes, Cross References, etc.)
newFilter | the filter to add |
Definition at line 727 of file swmodule.h.
|
inlineinherited |
Definition at line 734 of file swmodule.h.
Adds a RawFilter to this module's rawFilters queue
newFilter | the filter to add |
Definition at line 694 of file swmodule.h.
|
inlineinherited |
Definition at line 701 of file swmodule.h.
Adds a RenderFilter to this module's renderFilters queue. Render Filters are called when the module is asked to produce renderable text.
newFilter | the filter to add |
Definition at line 564 of file swmodule.h.
|
inlineinherited |
Definition at line 571 of file swmodule.h.
Adds a StripFilter to this module's stripFilters queue. Strip filters are called when a module is asked to render an entry without any markup (like when searching).
newFilter | the filter to add |
Definition at line 681 of file swmodule.h.
|
inlineinherited |
Definition at line 688 of file swmodule.h.
|
virtualinherited |
Allocates a key of specific type for module The different reimplementations of SWModule (e.g. SWText) support SWKey implementations, which support special. This functions returns a SWKey object which works with the current implementation of SWModule. For example for the SWText class it returns a VerseKey object.
Reimplemented from SWModule.
Definition at line 64 of file swcom.cpp.
|
inlineinherited |
Definition at line 50 of file rawcom4.h.
|
staticinherited |
Creates a new, empty module
path | path where to create the new module |
Definition at line 1676 of file swmodule.cpp.
|
virtualinherited |
ask the object to build any indecies it wants for optimal searching
Reimplemented from SWSearchable.
Definition at line 1193 of file swmodule.cpp.
|
inlinevirtual |
|
virtual |
Delete current module entry - only if module isWritable()
Reimplemented from SWModule.
Definition at line 151 of file rawcom4.cpp.
|
virtualinherited |
Reimplemented from SWSearchable.
Definition at line 1178 of file swmodule.cpp.
|
inlineinherited |
|
inlineinherited |
Sets module description
imoddesc | Value which to set moddesc; [0]-only get |
Definition at line 381 of file swmodule.h.
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
Calls this module's display object and passes itself
Definition at line 272 of file swmodule.cpp.
|
inlineinherited |
|
protectedinherited |
Definition at line 220 of file rawverse4.cpp.
|
protectedinherited |
Definition at line 179 of file rawverse4.cpp.
|
inlineinherited |
|
inlinevirtualinherited |
encodingFilter run a buf through this module's Encoding Filters
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 671 of file swmodule.h.
|
inlinevirtualinherited |
|
virtualinherited |
OptionFilterBuffer a text buffer
filters | the FilterList of filters to iterate |
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 1657 of file swmodule.cpp.
|
virtualinherited |
FilterBuffer a text buffer
filters | the FilterList of filters to iterate |
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 1669 of file swmodule.cpp.
|
inherited |
|
virtualinherited |
|
virtualinherited |
Returns bibliographic data for a module in the requested format
bibFormat | format of the bibliographic data |
Definition at line 1149 of file swmodule.cpp.
|
inlinevirtualinherited |
Definition at line 219 of file swmodule.h.
Gets a configuration property about a module. These entries are primarily pulled from the module's .conf file, but also includes some virtual entries such as: PrefixPath - the absolute filesystem path to the sword module repository location where this module is located. AbsoluteDataPath - the full path to the root folder where the module data is stored.
Definition at line 1159 of file swmodule.cpp.
|
inherited |
|
virtualinherited |
|
virtualinherited |
Gets display driver
Definition at line 258 of file swmodule.cpp.
|
inlineinherited |
|
inlinevirtualinherited |
Entry Attributes are special data pertaining to the current entry. To see what Entry Attributes exists for a specific entry of a module, the example examples/cmdline/lookup.cpp is a good utility which displays this information. It is also useful as an example of how to access such.
Definition at line 817 of file swmodule.h.
|
inlinevirtualinherited |
Definition at line 243 of file swmodule.h.
|
virtualinherited |
|
virtualinherited |
Gets the current module key
Definition at line 284 of file swmodule.cpp.
|
inlinevirtualinherited |
gets the key text for the module. do we really need this?
Reimplemented in SWLD.
Definition at line 304 of file swmodule.h.
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlinevirtualinherited |
Definition at line 736 of file swmodule.h.
|
inlineinherited |
Definition at line 500 of file swmodule.h.
|
virtual |
This function is reimplemented by the different kinds of module objects
Implements SWModule.
Definition at line 69 of file rawcom4.cpp.
|
inlinevirtualinherited |
Retrieves a container of render filters associated with this module.
Definition at line 577 of file swmodule.h.
|
virtualinherited |
Produces any header data which might be useful which is associated with the processing done with this filter. A typical example is a suggested CSS style block for classed containers.
SWModule::getRenderHeader() - Produces any header data which might be useful which associated with the processing done with this filter. A typical example is a suggested CSS style block for classed containers.
Definition at line 1002 of file swmodule.cpp.
|
inlineinherited |
|
inherited |
Definition at line 59 of file swcom.h.
Reimplemented from SWModule.
Definition at line 170 of file rawcom4.cpp.
|
virtualinherited |
was SWORD compiled with code to optimize searching for this driver?
Reimplemented from SWSearchable.
Definition at line 1170 of file swmodule.cpp.
|
virtual |
Increments module key a number of entries
steps | Number of entries to jump forward |
Reimplemented from SWModule.
Definition at line 98 of file rawcom4.cpp.
|
inlineinherited |
Definition at line 314 of file swmodule.h.
|
inlineinherited |
Reimplemented from SWModule.
Definition at line 157 of file rawcom4.cpp.
|
inlinevirtualinherited |
|
virtualinherited |
Check if the search is optimally supported (e.g. if index files are presnt and working) This function checks whether the search framework may work in the best way.
Definition at line 52 of file swsearchable.cpp.
|
inlinevirtualinherited |
Whether or not to only hit one entry when iterating encounters consecutive links when iterating
Definition at line 802 of file swmodule.h.
|
inlinevirtualinherited |
Definition at line 213 of file swmodule.h.
|
virtual |
Is the module writable? :)
Reimplemented from SWModule.
Definition at line 59 of file rawcom4.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Sets/gets module KeyText
ikeytext | Value which to set keytext; [0]-only get |
Definition at line 297 of file swmodule.h.
|
inlineinherited |
Definition at line 441 of file swmodule.h.
|
virtualinherited |
Definition at line 46 of file swcacher.cpp.
Link the current module entry to another module entry - only if module isWritable()
Reimplemented from SWModule.
Definition at line 138 of file rawcom4.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Sets module name
imodname | Value which to set modname; [0]-only get |
Definition at line 363 of file swmodule.h.
|
staticinherited |
This is the default callback function for searching. This function is a placeholder and does nothing. You can define your own function for search progress evaluation, and pass it over to Search().
Definition at line 31 of file swsearchable.cpp.
OptionFilter a text buffer
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 742 of file swmodule.h.
|
virtualinherited |
|
staticprotectedinherited |
Definition at line 1695 of file swmodule.cpp.
|
inlineinherited |
Definition at line 828 of file swmodule.h.
RawFilter a text buffer
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 716 of file swmodule.h.
|
inherited |
Definition at line 155 of file rawverse4.cpp.
Removes an EncodingFilter from this module's encodingFilters queue
oldFilter | the filter to remove |
Definition at line 640 of file swmodule.h.
|
inlineinherited |
Definition at line 647 of file swmodule.h.
Removes a RenderFilter from this module's renderFilters queue
oldFilter | the filter to remove |
Definition at line 585 of file swmodule.h.
|
inlineinherited |
Definition at line 592 of file swmodule.h.
RenderFilter run a buf through this module's Render Filters
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 616 of file swmodule.h.
Produces renderable text of the current module entry or supplied text
buf | buffer to massage instead of current module entry; if buf is 0, the current module position text will be used |
len | max len to process |
render | for internal use |
Definition at line 1038 of file swmodule.cpp.
|
inherited |
Definition at line 1017 of file swmodule.cpp.
|
inlineinherited |
Produces renderable text of the module entry at the supplied key
tmpKey | key to use to grab text |
Definition at line 1087 of file swmodule.cpp.
|
inlinevirtualinherited |
Replaces an EncodingFilter in this module's encodingfilters queue
oldFilter | the filter to remove |
newFilter | the filter to add in its place |
Definition at line 654 of file swmodule.h.
|
inlineinherited |
Definition at line 665 of file swmodule.h.
|
inlinevirtualinherited |
Replaces a RenderFilter in this module's renderfilters queue
oldFilter | the filter to remove |
newFilter | the filter to add in its place |
Definition at line 599 of file swmodule.h.
|
inlineinherited |
Definition at line 610 of file swmodule.h.
|
virtualinherited |
|
virtualinherited |
Searches a module
istr | string for which to search |
searchType | type of search to perform SEARCHTYPE_REGEX - regex; (for backward compat, if > 0 then used as additional REGEX FLAGS) SEARCHTYPE_PHRASE - phrase SEARCHTYPE_MULTIWORD - multiword SEARCHTYPE_ENTRYATTR - entryAttrib (eg. Word//Lemma./G1234/) (Lemma with dot means check components (Lemma.[1-9]) also) SEARCHTYPE_EXTERNAL - Use External Search Framework (CLucene, Xapian, etc.) -5 - multilemma window; set 'flags' param to window size (NOT DONE) |
flags | bitwise options flags for search. Each search type supports different options. REG_ICASE - perform case insensitive search. Supported by most all search types SEARCHFLAG_* - SWORD-specific search flags for various search types. See SWModule::SEARCHFLAG_ consts |
scope | Key containing the scope. VerseKey or ListKey are useful here. |
justCheckIfSupported | If set, don't search but instead set this variable to true/false if the requested search is supported, |
percent | Callback function to get the current search status in %. |
percentUserData | Anything that you might want to send to the precent callback function. |
Implements SWSearchable.
Definition at line 397 of file swmodule.cpp.
|
inlineinherited |
Definition at line 478 of file swmodule.h.
|
virtualinherited |
Definition at line 1165 of file swmodule.cpp.
|
virtualinherited |
Sets display driver
idisp | pointer to SWDisplay class to assign to this module |
Definition at line 262 of file swmodule.cpp.
|
virtual |
Modify the current module entry text - only if module isWritable()
Reimplemented from SWModule.
Definition at line 132 of file rawcom4.cpp.
|
virtualinherited |
Sets a key to this module for position to a particular record
ikey | key with which to set this module |
Definition at line 298 of file swmodule.cpp.
Sets a key to this module for position to a particular record
ikey | The SWKey which should be used as new key. |
Definition at line 267 of file swmodule.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Sets this module's key to provided keyText without disturbing any settings on the a key itself This is simply a shortcut for the common module->getKey()->setText(keyText);
keyText | key with which to set this module |
Definition at line 260 of file swmodule.h.
|
virtualinherited |
Positions this modules to a logical position entry
pos | position (e.g. TOP, BOTTOM) |
Reimplemented in SWLD.
Definition at line 327 of file swmodule.cpp.
|
inlinevirtualinherited |
Processing Entry Attributes can be expensive. This method allows turning the processing off if they are not desired. Some internal engine processing turns them off (like searching) temporarily for optimization.
Definition at line 824 of file swmodule.h.
|
inlinevirtualinherited |
Whether or not to only hit one entry when iterating encounters consecutive links when iterating
val | = true means only include entry once in iteration |
Definition at line 797 of file swmodule.h.
|
inlineinherited |
Sets module type
imodtype | Value which to set modtype; [0]-only get |
Definition at line 397 of file swmodule.h.
StripFilter run a buf through this module's Strip Filters
buf | the buffer to filter |
key | key location from where this buffer was extracted |
Definition at line 707 of file swmodule.h.
Produces plain text, without markup, of the current module entry, or supplied text
buf | buf to massage instead of current module entry; if buf is 0, the current text will be used |
len | max len to process |
Definition at line 990 of file swmodule.cpp.
|
inlineinherited |
Definition at line 758 of file swmodule.h.
Produces plain text, without markup, of the module entry at the supplied key
tmpKey | desired module entry |
Definition at line 1118 of file swmodule.cpp.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 116 of file swmodule.h.
|
protectedinherited |
Definition at line 132 of file swmodule.h.
|
protectedinherited |
this module's display object
Definition at line 137 of file swmodule.h.
|
protectedinherited |
Definition at line 134 of file swmodule.h.
|
protectedinherited |
filters to be executed to decode text for display
Definition at line 155 of file swmodule.h.
|
mutableprotectedinherited |
Definition at line 117 of file swmodule.h.
|
mutableprotectedinherited |
Definition at line 140 of file swmodule.h.
|
mutableprotectedinherited |
Definition at line 158 of file swmodule.h.
|
mutableprotectedinherited |
Definition at line 157 of file swmodule.h.
|
mutableprotectedinherited |
Definition at line 120 of file swmodule.h.
|
protectedinherited |
Definition at line 43 of file rawverse4.h.
|
protectedinherited |
the current key
Definition at line 124 of file swmodule.h.
|
protectedinherited |
Definition at line 126 of file swmodule.h.
|
protectedinherited |
Definition at line 133 of file swmodule.h.
|
protectedinherited |
Definition at line 128 of file swmodule.h.
|
protectedinherited |
Definition at line 130 of file swmodule.h.
|
protectedinherited |
Definition at line 127 of file swmodule.h.
|
protectedinherited |
Definition at line 129 of file swmodule.h.
|
staticinherited |
Definition at line 51 of file rawverse4.h.
|
protectedinherited |
filters to be executed to change markup to user prefs
Definition at line 152 of file swmodule.h.
|
protectedinherited |
Definition at line 115 of file swmodule.h.
|
protectedinherited |
Definition at line 46 of file rawverse4.h.
|
mutableprotectedinherited |
Definition at line 118 of file swmodule.h.
|
staticprotectedinherited |
Definition at line 139 of file swmodule.h.
|
protectedinherited |
filters to be executed immediately upon fileread
Definition at line 146 of file swmodule.h.
|
protectedinherited |
filters to be executed to format for display
Definition at line 149 of file swmodule.h.
|
staticinherited |
Definition at line 165 of file swmodule.h.
|
staticinherited |
Definition at line 169 of file swmodule.h.
|
staticinherited |
Definition at line 174 of file swmodule.h.
|
staticinherited |
Definition at line 175 of file swmodule.h.
|
staticinherited |
Definition at line 173 of file swmodule.h.
|
staticinherited |
Definition at line 172 of file swmodule.h.
|
staticinherited |
Definition at line 171 of file swmodule.h.
|
protectedinherited |
Definition at line 121 of file swmodule.h.
|
protectedinherited |
filters to be executed to remove all markup (for searches)
Definition at line 143 of file swmodule.h.
|
inherited |
Set this bool to false to terminate the search which is executed by this module (search()). This is useful for threaded applications to terminate the search from another thread.
Definition at line 181 of file swmodule.h.
|
protectedinherited |
Definition at line 44 of file rawverse4.h.