Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
procesing XML file More...
#include <FXXMLFile.h>
Public Member Functions | |
FXXMLFile () | |
Create XML file i/o object. | |
FXXMLFile (const FXString &filename, Direction d=Load, FXuval sz=4096) | |
Create XML file i/o object and open it. | |
FXbool | open (const FXString &filename, Direction d=Load, FXuval sz=4096) |
Open XML file for direction d. | |
virtual FXival | fill (FXival count) |
Read at least count bytes into buffer; return bytes available, or -1 for error. | |
virtual FXival | flush (FXival count) |
Write at least count bytes from buffer; return space available, or -1 for error. | |
FXbool | close () |
Close XML file and delete buffers. | |
virtual | ~FXXMLFile () |
Close XML file. | |
Public Member Functions inherited from FX::FXXML | |
FXXML () | |
Construct XML serializer. | |
FXXML (FXchar *buffer, FXuval sz=4096, Direction d=Load) | |
Construct XML serializer and open for direction d. More... | |
FXbool | open (FXchar *buffer=nullptr, FXuval sz=4096, Direction d=Load) |
Open XML stream for given direction d. More... | |
FXuval | size () const |
Return size of parse buffer. | |
Direction | direction () const |
Return direction in effect. | |
FXint | getLine () const |
Return current line number. | |
FXint | getColumn () const |
Return current column number. | |
FXlong | getOffset () const |
Return offset from begin of file. | |
Error | parse () |
Parse the file, return error code to indicate success or failure. | |
Error | startDocument () |
Document start. | |
Error | startElement (const FXString &tag) |
Element start w/no attributes. | |
Error | startElement (const FXString &tag, const FXStringDictionary &atts) |
Element start w/attributes. | |
Error | characters (const FXString &text) |
Characters. | |
Error | comment (const FXString &text) |
Comment. | |
Error | processing (const FXString &target, const FXString &text) |
Processing instruction. | |
Error | endElement (const FXString &tag) |
Element end. | |
Error | endDocument () |
Document end. | |
FXbool | close () |
Close stream and delete buffer, if owned. | |
virtual | ~FXXML () |
Close XML stream and clean up. | |
Public Member Functions inherited from FX::FXParseBuffer | |
FXParseBuffer () | |
Initialize parse buffer to empty. | |
FXParseBuffer (FXchar *buffer, FXuval sz=4096, Direction d=Load) | |
Initialize parse buffer with given size and direction. More... | |
FXbool | open (FXchar *buffer=nullptr, FXuval sz=4096, Direction d=Load) |
Open parse buffer with given size and direction. | |
Direction | direction () const |
Return current direction. | |
FXuval | size () const |
Return current buffer size. | |
FXbool | close () |
Close parse buffer. | |
virtual | ~FXParseBuffer () |
Clean up and close buffer. | |
Additional Inherited Members | |
Public Types inherited from FX::FXXML | |
enum | Error { ErrOK, ErrEmpty, ErrSave, ErrLoad, ErrSpace, ErrEquals, ErrName, ErrString, ErrToken, ErrDigit, ErrHexDigit, ErrSemiColon, ErrReference, ErrNoMatch, ErrEof } |
enum | { CRLF = 0x0001, REFS = 0x0002 } |
enum | { UTF8 = 1, UTF16LE = 2, UTF16BE = 3, UTF32LE = 4, UTF32BE = 5 } |
Public Types inherited from FX::FXParseBuffer | |
enum | Direction { Stop = 0, Save = 1, Load = 2 } |
Static Public Member Functions inherited from FX::FXXML | |
static const FXchar * | getError (Error err) |
Returns error code for given error. | |
static FXbool | decode (FXString &dst, const FXString &src, FXuint flags=CRLF|REFS) |
Decode escaped special characters from XML stream. | |
static FXbool | encode (FXString &dst, const FXString &src, FXuint flags=CRLF|REFS) |
Encode special characters for inclusion into XML stream. | |
Public Attributes inherited from FX::FXXML | |
FXCallback< Error() > | startDocumentCB |
Called when start of document is recognized. | |
FXCallback< Error(const FXString &, const FXStringDictionary &) > | startElementCB |
Called when start of element is recognized. | |
FXCallback< Error(const FXString &) > | charactersCB |
Called to pass batch of decoded characters. | |
FXCallback< Error(const FXString &) > | commentCB |
Called to pass comment string. | |
FXCallback< Error(const FXString &, const FXString &) > | processingCB |
Called to pass processing instruction. | |
FXCallback< Error(const FXString &) > | endElementCB |
Called when end of element is recognized. | |
FXCallback< Error() > | endDocumentCB |
Called when end of document is recognized. | |
Protected Member Functions inherited from FX::FXParseBuffer | |
FXbool | need (FXival count) |
FXbool | emit (FXchar ch, FXint count) |
FXbool | emit (const FXchar *str, FXint count) |
Protected Attributes inherited from FX::FXXML | |
FXlong | offset |
Element * | current |
FXint | column |
FXint | line |
FXString | vers |
FXuint | enc |
Protected Attributes inherited from FX::FXParseBuffer | |
FXchar * | begptr |
FXchar * | endptr |
FXchar * | wptr |
FXchar * | rptr |
FXchar * | sptr |
Direction | dir |
procesing XML file
Copyright © 1997-2022 Jeroen van der Zijp |