The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swmodule.h File Reference
#include <swdisp.h>
#include <listkey.h>
#include <swconfig.h>
#include <swcacher.h>
#include <swsearchable.h>
#include <iostream>
#include <list>
#include <defs.h>
+ Include dependency graph for swmodule.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SWModule::StdOutDisplay
 
class  SWModule
 

Macros

#define SWMODULE_OPERATORS
 
#define SWTextDirection   char
 
#define SWTextEncoding   char
 
#define SWTextMarkup   char
 

Typedefs

typedef std::map< SWBuf,
AttributeValue, std::less
< SWBuf > > 
AttributeList
 
typedef std::map< SWBuf,
AttributeList, std::less
< SWBuf > > 
AttributeTypeList
 
typedef std::map< SWBuf, SWBuf,
std::less< SWBuf > > 
AttributeValue
 
typedef std::list< SWFilter * > FilterList
 
typedef std::list
< SWOptionFilter * > 
OptionFilterList
 

Enumerations

enum  { DIRECTION_LTR = 0, DIRECTION_RTL, DIRECTION_BIDI }
 
enum  {
  FMT_UNKNOWN = 0, FMT_PLAIN, FMT_THML, FMT_GBF,
  FMT_HTML, FMT_HTMLHREF, FMT_RTF, FMT_OSIS,
  FMT_WEBIF, FMT_TEI, FMT_XHTML, FMT_LATEX
}
 
enum  {
  ENC_UNKNOWN = 0, ENC_LATIN1, ENC_UTF8, ENC_SCSU,
  ENC_UTF16, ENC_RTF, ENC_HTML
}
 
enum  { BIB_BIBTEX = 0 }
 

Macro Definition Documentation

#define SWMODULE_OPERATORS
Value:
operator SWBuf() { return renderText(); } \
operator SWKey &() { return *getKey(); } \
operator SWKey *() { return getKey(); } \
SWModule &operator <<(const char *inbuf) { setEntry(inbuf); return *this; } \
SWModule &operator <<(const SWKey *sourceKey) { linkEntry(sourceKey); return *this; } \
SWModule &operator -=(int steps) { decrement(steps); return *this; } \
SWModule &operator +=(int steps) { increment(steps); return *this; } \
SWModule &operator ++(int) { return *this += 1; } \
SWModule &operator --(int) { return *this -= 1; } \
SWModule &operator =(SW_POSITION p) { setPosition(p); return *this; } \ \
SWDEPRECATED operator const char *() { static SWBuf unsafeTmp = renderText(); return unsafeTmp.c_str(); }
Definition: swbuf.h:47
#define SWDEPRECATED
Definition: defs.h:174
const char * c_str() const
Definition: swbuf.h:158
Definition: swkey.h:77

Definition at line 54 of file swmodule.h.

#define SWTextDirection   char

Definition at line 77 of file swmodule.h.

#define SWTextEncoding   char

Definition at line 78 of file swmodule.h.

#define SWTextMarkup   char

Definition at line 79 of file swmodule.h.

Typedef Documentation

typedef std::map< SWBuf, AttributeValue, std::less < SWBuf > > AttributeList

Definition at line 74 of file swmodule.h.

typedef std::map< SWBuf, AttributeList, std::less < SWBuf > > AttributeTypeList

Definition at line 75 of file swmodule.h.

typedef std::map< SWBuf, SWBuf, std::less < SWBuf > > AttributeValue

Definition at line 73 of file swmodule.h.

typedef std::list< SWFilter * > FilterList

Definition at line 71 of file swmodule.h.

typedef std::list< SWOptionFilter * > OptionFilterList

Definition at line 72 of file swmodule.h.

Enumeration Type Documentation

anonymous enum
Enumerator
DIRECTION_LTR 
DIRECTION_RTL 
DIRECTION_BIDI 

Definition at line 44 of file swmodule.h.

anonymous enum
Enumerator
FMT_UNKNOWN 
FMT_PLAIN 
FMT_THML 
FMT_GBF 
FMT_HTML 
FMT_HTMLHREF 
FMT_RTF 
FMT_OSIS 
FMT_WEBIF 
FMT_TEI 
FMT_XHTML 
FMT_LATEX 

Definition at line 45 of file swmodule.h.

anonymous enum
Enumerator
ENC_UNKNOWN 
ENC_LATIN1 
ENC_UTF8 
ENC_SCSU 
ENC_UTF16 
ENC_RTF 
ENC_HTML 

Definition at line 46 of file swmodule.h.

anonymous enum
Enumerator
BIB_BIBTEX 

Definition at line 47 of file swmodule.h.

47 {BIB_BIBTEX = 0, /* possible future formats: BIB_MARCXML, BIB_MARC21, BIB_DCMI BIB_OSISHEADER, BIB_SBL_XHTML, BIB_MLA_XHTML, BIB_APA_XHTML, BIB_CHICAGO_XHTML */};