Utilities that must be implemented in a platform-specific way
Utilities that must be implemented in a platform-specific way.This class contains functions that must be implemented in a platform-specific manner. This is just an abstract class. The concrete implementations of these functions are available in the per-platform files indide
src/util/Platforms
.
static XMLNetAccessor* fgNetAccessor
static XMLTransService* fgTransService
If, during initialization, we cannot even get far enough
along to get transcoding up or get message loading working, we call
this. Each platform can implement it however they want. This method is
expected to display something meaningful and end the process. The
enum indicates why its being called, to allow the per-platform code
to display something more specific if desired. static void panic( const PanicReasons reason )
static void closeFile(FileHandle theFile)
static unsigned int fileSize(FileHandle theFile)
static FileHandle openFile(const char* const fileName)
static FileHandle openFile(const XMLCh* const fileName)
static FileHandle openStdInHandle()
static unsigned int readFileBuffer( FileHandle theFile, const unsigned int toRead, XMLByte* const toFill )
toRead - The number of byte to read from the current position
toFill - The string buffer to fill
static void resetFile(FileHandle theFile)
static bool isRelative(const XMLCh* const toCheck)
static XMLCh* weavePaths( const XMLCh* const basePath, const XMLCh* const relativePath )
relativePath - The string containing the relative path
static void lockMutex(void* const mtxHandle)
static void* makeMutex()
static void unlockMutex(void* const mtxHandle)
static int atomicDecrement(int& location)
static XMLNetAccessor* makeNetAccessor()
static XMLTransService* makeTransService()
static void platformInit()
alphabetic index hierarchy of classes
Xerces-C XML Parser for C++ Version 1.1 |
|
generated by doc++