Definition at line 171 of file TXMLEngine.cxx.
Public Member Functions | |
| TXMLInputStream (Bool_t isfilename, const char *filename, Int_t ibufsize) | |
| constructor | |
| virtual | ~TXMLInputStream () |
| destructor | |
| void | AddEntity (TXMLEntity *ent) |
| Add new entity. | |
| Bool_t | CheckFor (const char *str) |
| Check if in current position we see specified string. | |
| Int_t | CurrentLine () |
| returns current line number in the input stream | |
| int | DoRead (char *buf, int maxsize) |
| Read new data into buffer. | |
| Bool_t | EndOfFile () |
| return true if end of file is achieved | |
| Bool_t | EndOfStream () |
| return true if end of file and all data from buffer are processed | |
| Bool_t | ExpandStream (char *&curr) |
| Allocate more data for the buffer, preserving content. | |
| TXMLEntity * | FindEntity (const char *beg, Int_t len) |
| Search for the entity. | |
| Bool_t | GoodStartSymbol (unsigned char symb) |
| returns true if symbol can be used as starting in the node name | |
| Bool_t | IsFile () const |
| return true when file stream is configured | |
| Bool_t | IsFileOpen () const |
| return true when file stream is open | |
| Int_t | LocateContent () |
| locate node content, returns length (or -1 if fails) | |
| Int_t | LocateIdentifier () |
| locate identifier in the stream, returns length of the identifier (or 0 if fails) | |
| Int_t | LocateValue (unsigned curr_offset, bool withequalsign=true) |
| locate attribute value, returns length (or 0 if fails) | |
| Int_t | NumEntities () const |
| Returns number of entity. | |
| Int_t | SearchFor (const char *str) |
| Search for specified string in the stream return number of symbols before string was found, -1 if error. | |
| Bool_t | ShiftCurrent (Int_t sz=1) |
| shift current position on provided number of symbol | |
| Bool_t | ShiftStream () |
| read next portion of data from the stream in the buffer | |
| Bool_t | SkipSpaces (Bool_t tillendl=kFALSE) |
| Skip spaces at the current position. | |
| Int_t | TotalPos () |
| returns absolute byte position in the stream | |
Public Attributes | |
| char * | fCurrent |
| array of TXMLEntity | |
Protected Attributes | |
| char * | fBuf |
| Int_t | fBufSize |
| Int_t | fCurrentLine |
| TObjArray | fEntities |
| std::ifstream * | fInp |
| const char * | fInpStr |
| Int_t | fInpStrLen |
| char * | fLimitAddr |
| char * | fMaxAddr |
| Int_t | fTotalPos |
|
inline |
constructor
Definition at line 194 of file TXMLEngine.cxx.
|
inlinevirtual |
destructor
Definition at line 228 of file TXMLEngine.cxx.
|
inline |
Add new entity.
Definition at line 259 of file TXMLEngine.cxx.
Check if in current position we see specified string.
Definition at line 402 of file TXMLEngine.cxx.
|
inline |
returns current line number in the input stream
Definition at line 359 of file TXMLEngine.cxx.
Read new data into buffer.
Definition at line 286 of file TXMLEngine.cxx.
|
inline |
return true if end of file is achieved
Definition at line 249 of file TXMLEngine.cxx.
|
inline |
return true if end of file and all data from buffer are processed
Definition at line 254 of file TXMLEngine.cxx.
|
inline |
Allocate more data for the buffer, preserving content.
Definition at line 308 of file TXMLEngine.cxx.
|
inline |
Search for the entity.
Definition at line 269 of file TXMLEngine.cxx.
|
inline |
returns true if symbol can be used as starting in the node name
Definition at line 449 of file TXMLEngine.cxx.
|
inline |
return true when file stream is configured
Definition at line 239 of file TXMLEngine.cxx.
|
inline |
return true when file stream is open
Definition at line 244 of file TXMLEngine.cxx.
|
inline |
locate node content, returns length (or -1 if fails)
Definition at line 485 of file TXMLEngine.cxx.
|
inline |
locate identifier in the stream, returns length of the identifier (or 0 if fails)
Definition at line 458 of file TXMLEngine.cxx.
locate attribute value, returns length (or 0 if fails)
Definition at line 503 of file TXMLEngine.cxx.
|
inline |
Returns number of entity.
Definition at line 264 of file TXMLEngine.cxx.
Search for specified string in the stream return number of symbols before string was found, -1 if error.
Definition at line 420 of file TXMLEngine.cxx.
shift current position on provided number of symbol
Definition at line 364 of file TXMLEngine.cxx.
|
inline |
read next portion of data from the stream in the buffer
Definition at line 335 of file TXMLEngine.cxx.
Skip spaces at the current position.
Definition at line 383 of file TXMLEngine.cxx.
|
inline |
returns absolute byte position in the stream
Definition at line 354 of file TXMLEngine.cxx.
|
protected |
Definition at line 177 of file TXMLEngine.cxx.
|
protected |
Definition at line 178 of file TXMLEngine.cxx.
| char* TXMLInputStream::fCurrent |
array of TXMLEntity
Definition at line 189 of file TXMLEngine.cxx.
|
protected |
Definition at line 184 of file TXMLEngine.cxx.
|
protected |
Definition at line 186 of file TXMLEngine.cxx.
|
protected |
Definition at line 173 of file TXMLEngine.cxx.
|
protected |
Definition at line 174 of file TXMLEngine.cxx.
|
protected |
Definition at line 175 of file TXMLEngine.cxx.
|
protected |
Definition at line 181 of file TXMLEngine.cxx.
|
protected |
Definition at line 180 of file TXMLEngine.cxx.
|
protected |
Definition at line 183 of file TXMLEngine.cxx.