replicode
Classes | Typedefs | Enumerations | Functions | Variables
core Namespace Reference

Classes

class  _Object
 
class  _ObjectAdapter
 
struct  ALLXMLClearTag
 
class  CriticalSection
 
class  Error
 
class  Host
 
struct  NextToken
 
class  P
 
class  Pipe11
 
class  Pipe1N
 
class  PipeN1
 
class  PipeNN
 
class  Semaphore
 
class  SharedLibrary
 
class  SignalHandler
 
class  Time
 
struct  ToXMLStringTool
 
struct  XML
 
struct  XMLAttribute
 
struct  XMLCharacterEntity
 
struct  XMLClear
 
struct  XMLNode
 
struct  XMLNodeContents
 
struct  XMLParserBase64Tool
 
struct  XMLResults
 

Typedefs

typedef enum core::XMLTokenTypeTag XMLTokenType
 
typedef struct core::XML XML
 
typedef enum core::Attrib Attrib
 
typedef enum core::Status Status
 
typedef enum core::XMLError XMLError
 
typedef enum core::XMLElementType XMLElementType
 
typedef struct core::XMLResults XMLResults
 
typedef struct core::XMLClear XMLClear
 
typedef struct core::XMLAttribute XMLAttribute
 
typedef struct XMLDLLENTRY core::XMLNode XMLNode
 
typedef struct core::XMLNodeContents XMLNodeContents
 
typedef struct XMLDLLENTRY core::ToXMLStringTool ToXMLStringTool
 
typedef struct XMLDLLENTRY core::XMLParserBase64Tool XMLParserBase64Tool
 

Enumerations

enum  XMLTokenTypeTag {
  eTokenText = 0, eTokenQuotedText, eTokenTagStart, eTokenTagEnd,
  eTokenCloseTag, eTokenEquals, eTokenDeclaration, eTokenShortHandClose,
  eTokenClear, eTokenError
}
 
enum  Attrib { eAttribName = 0, eAttribEquals, eAttribValue }
 
enum  Status { eInsideTag = 0, eOutsideTag }
 
enum  XMLError {
  eXMLErrorNone = 0, eXMLErrorMissingEndTag, eXMLErrorNoXMLTagFound, eXMLErrorEmpty,
  eXMLErrorMissingTagName, eXMLErrorMissingEndTagName, eXMLErrorUnmatchedEndTag, eXMLErrorUnmatchedEndClearTag,
  eXMLErrorUnexpectedToken, eXMLErrorNoElements, eXMLErrorFileNotFound, eXMLErrorFirstTagNotFound,
  eXMLErrorUnknownCharacterEntity, eXMLErrorCharConversionError, eXMLErrorCannotOpenWriteFile, eXMLErrorCannotWriteFile,
  eXMLErrorBase64DataSizeIsNotMultipleOf4, eXMLErrorBase64DecodeIllegalCharacter, eXMLErrorBase64DecodeTruncatedData, eXMLErrorBase64DecodeBufferTooSmall
}
 
enum  XMLElementType {
  eNodeChild = 0, eNodeAttribute = 1, eNodeText = 2, eNodeClear = 3,
  eNodeNULL = 4
}
 

Functions

bool CalcTimeout (struct timespec &timeout, uint32_t ms)
 
uint64_t GetTime ()
 
uint8_t BSR (uint32_t data)
 
bool WaitForSocketReadability (socket s, int32_t timeout)
 
bool WaitForSocketWriteability (socket s, int32_t timeout)
 
void freeXMLString (XMLSTR t)
 
int mmin (const int t1, const int t2)
 
char myIsTextWideChar (const void *b, int len)
 
char * myWideCharToMultiByte (const wchar_t *s)
 
static FILE * xfopen (XMLCSTR filename, XMLCSTR mode)
 
static int xstrlen (XMLCSTR c)
 
static int xstrnicmp (XMLCSTR c1, XMLCSTR c2, int l)
 
static int xstrncmp (XMLCSTR c1, XMLCSTR c2, int l)
 
static int xstricmp (XMLCSTR c1, XMLCSTR c2)
 
static XMLSTR xstrstr (XMLCSTR c1, XMLCSTR c2)
 
static XMLSTR xstrcpy (XMLSTR c1, XMLCSTR c2)
 
static int _strnicmp (const char *c1, const char *c2, int l)
 
XMLSTR stringDup (XMLCSTR lpszData, int cbData)
 
XMLSTR toXMLStringUnSafe (XMLSTR dest, XMLCSTR source)
 
int lengthXMLString (XMLCSTR source)
 
XMLSTR fromXMLString (XMLCSTR s, int lo, XML *pXML)
 
char myTagCompare (XMLCSTR cclose, XMLCSTR copen)
 
static XMLCHAR getNextChar (XML *pXML)
 
static NextToken GetNextToken (XML *pXML, int *pcbToken, enum XMLTokenTypeTag *pType)
 
static void myFree (void *p)
 
static void * myRealloc (void *p, int newsize, int memInc, int sizeofElem)
 
static void CountLinesAndColumns (XMLCSTR lpXML, int nUpto, XMLResults *pResults)
 
static void charmemset (XMLSTR dest, XMLCHAR c, int l)
 

Variables

static XMLNode::XMLCharEncoding characterEncoding = XMLNode::encoding_UTF8
 
static char guessWideCharChars = 1
 
static char dropWhiteSpace = 1
 
static ALLXMLClearTag XMLClearTags []
 
static XMLCharacterEntity XMLEntities []
 
static const char XML_utf8ByteTable [256]
 
static const char XML_asciiByteTable [256]
 
static const char XML_sjisByteTable [256]
 
static const char * XML_ByteTable = (const char *)XML_utf8ByteTable
 
static const char base64Fillchar = _X('=')
 
XMLCSTR base64EncodeTable = _X("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
 
const unsigned char base64DecodeTable []
 

Typedef Documentation

typedef enum core::Attrib core::Attrib
typedef enum core::Status core::Status
typedef struct core::XML core::XML

Enumeration Type Documentation

Enumerator
eAttribName 
eAttribEquals 
eAttribValue 
Enumerator
eInsideTag 
eOutsideTag 
Enumerator
eNodeChild 
eNodeAttribute 
eNodeText 
eNodeClear 
eNodeNULL 
Enumerator
eXMLErrorNone 
eXMLErrorMissingEndTag 
eXMLErrorNoXMLTagFound 
eXMLErrorEmpty 
eXMLErrorMissingTagName 
eXMLErrorMissingEndTagName 
eXMLErrorUnmatchedEndTag 
eXMLErrorUnmatchedEndClearTag 
eXMLErrorUnexpectedToken 
eXMLErrorNoElements 
eXMLErrorFileNotFound 
eXMLErrorFirstTagNotFound 
eXMLErrorUnknownCharacterEntity 
eXMLErrorCharConversionError 
eXMLErrorCannotOpenWriteFile 
eXMLErrorCannotWriteFile 
eXMLErrorBase64DataSizeIsNotMultipleOf4 
eXMLErrorBase64DecodeIllegalCharacter 
eXMLErrorBase64DecodeTruncatedData 
eXMLErrorBase64DecodeBufferTooSmall 
Enumerator
eTokenText 
eTokenQuotedText 
eTokenTagStart 
eTokenTagEnd 
eTokenCloseTag 
eTokenEquals 
eTokenDeclaration 
eTokenShortHandClose 
eTokenClear 
eTokenError 

Function Documentation

static int core::_strnicmp ( const char *  c1,
const char *  c2,
int  l 
)
inlinestatic

Here is the caller graph for this function:

uint8_t core_dll core::BSR ( uint32_t  data)

Here is the caller graph for this function:

bool core::CalcTimeout ( struct timespec &  timeout,
uint32_t  ms 
)
static void core::charmemset ( XMLSTR  dest,
XMLCHAR  c,
int  l 
)
inlinestatic

Here is the caller graph for this function:

static void core::CountLinesAndColumns ( XMLCSTR  lpXML,
int  nUpto,
XMLResults pResults 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

XMLDLLENTRY void core::freeXMLString ( XMLSTR  t)
XMLSTR core::fromXMLString ( XMLCSTR  s,
int  lo,
XML pXML 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static XMLCHAR core::getNextChar ( XML pXML)
inlinestatic

Here is the caller graph for this function:

static NextToken core::GetNextToken ( XML pXML,
int *  pcbToken,
enum XMLTokenTypeTag pType 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t core::GetTime ( )
int core::lengthXMLString ( XMLCSTR  source)

Here is the caller graph for this function:

int core::mmin ( const int  t1,
const int  t2 
)
inline

Here is the caller graph for this function:

static void core::myFree ( void *  p)
inlinestatic

Here is the caller graph for this function:

char core::myIsTextWideChar ( const void *  b,
int  len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static void* core::myRealloc ( void *  p,
int  newsize,
int  memInc,
int  sizeofElem 
)
inlinestatic

Here is the caller graph for this function:

char core::myTagCompare ( XMLCSTR  cclose,
XMLCSTR  copen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* core::myWideCharToMultiByte ( const wchar_t *  s)

Here is the caller graph for this function:

XMLDLLENTRY XMLSTR core::stringDup ( XMLCSTR  lpszData,
int  cbData 
)

Here is the call graph for this function:

Here is the caller graph for this function:

XMLSTR core::toXMLStringUnSafe ( XMLSTR  dest,
XMLCSTR  source 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool core_dll core::WaitForSocketReadability ( socket  s,
int32_t  timeout 
)

Here is the caller graph for this function:

bool core_dll core::WaitForSocketWriteability ( socket  s,
int32_t  timeout 
)

Here is the caller graph for this function:

static FILE* core::xfopen ( XMLCSTR  filename,
XMLCSTR  mode 
)
inlinestatic

Here is the caller graph for this function:

static XMLSTR core::xstrcpy ( XMLSTR  c1,
XMLCSTR  c2 
)
inlinestatic

Here is the caller graph for this function:

static int core::xstricmp ( XMLCSTR  c1,
XMLCSTR  c2 
)
inlinestatic

Here is the caller graph for this function:

static int core::xstrlen ( XMLCSTR  c)
inlinestatic

Here is the caller graph for this function:

static int core::xstrncmp ( XMLCSTR  c1,
XMLCSTR  c2,
int  l 
)
inlinestatic

Here is the caller graph for this function:

static int core::xstrnicmp ( XMLCSTR  c1,
XMLCSTR  c2,
int  l 
)
inlinestatic

Here is the caller graph for this function:

static XMLSTR core::xstrstr ( XMLCSTR  c1,
XMLCSTR  c2 
)
inlinestatic

Here is the caller graph for this function:

Variable Documentation

const unsigned char core::base64DecodeTable[]
Initial value:
= {
99, 98, 98, 98, 98, 98, 98, 98, 98, 97, 97, 98, 98, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 62, 98, 98, 98, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 98, 98,
98, 96, 98, 98, 98, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 98, 98, 98, 98, 98, 98, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98
}
XMLCSTR core::base64EncodeTable = _X("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
const char core::base64Fillchar = _X('=')
static
XMLNode::XMLCharEncoding core::characterEncoding = XMLNode::encoding_UTF8
static
char core::dropWhiteSpace = 1
static
char core::guessWideCharChars = 1
static
const char core::XML_asciiByteTable[256]
static
Initial value:
= {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
}
const char* core::XML_ByteTable = (const char *)XML_utf8ByteTable
static
const char core::XML_sjisByteTable[256]
static
Initial value:
= {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
}
const char core::XML_utf8ByteTable[256]
static
Initial value:
= {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
}
ALLXMLClearTag core::XMLClearTags[]
static
Initial value:
= {
{ _X("<![CDATA["), 9, _X("]]>") },
{ _X("<!DOCTYPE"), 9, _X(">") },
{ _X("<PRE>") , 5, _X("</PRE>") },
{ _X("<Script>") , 8, _X("</Script>")},
{ _X("<!--") , 4, _X("-->") },
{ NULL , 0, NULL }
}
#define _X(c)
Definition: xml_parser.h:101
XMLCharacterEntity core::XMLEntities[]
static
Initial value:
= {
{ _X("&amp;"), 5, _X('&')},
{ _X("&lt;"), 4, _X('<')},
{ _X("&gt;"), 4, _X('>')},
{ _X("&quot;"), 6, _X('\"')},
{ _X("&apos;"), 6, _X('\'')},
{ NULL , 0, '\0' }
}
#define _X(c)
Definition: xml_parser.h:101