Logo ROOT  
Reference Guide
TXMLInputStream Class Reference

Definition at line 170 of file TXMLEngine.cxx.

Public Member Functions

 TXMLInputStream (Bool_t isfilename, const char *filename, Int_t ibufsize)
 constructor More...
 
virtual ~TXMLInputStream ()
 destructor More...
 
void AddEntity (TXMLEntity *ent)
 Add new entity. More...
 
Bool_t CheckFor (const char *str)
 Check if in current position we see specified string. More...
 
Int_t CurrentLine ()
 returns current line number in the input stream More...
 
int DoRead (char *buf, int maxsize)
 Read new data into buffer. More...
 
Bool_t EndOfFile ()
 return true if end of file is achieved More...
 
Bool_t EndOfStream ()
 return true if end of file and all data from buffer are processed More...
 
Bool_t ExpandStream (char *&curr)
 Allocate more data for the buffer, preserving content. More...
 
TXMLEntityFindEntity (const char *beg, Int_t len)
 Search for the entity. More...
 
Bool_t GoodStartSymbol (unsigned char symb)
 returns true if symbol can be used as starting in the node name More...
 
Int_t LocateContent ()
 locate node content, returns length (or -1 if fails) More...
 
Int_t LocateIdentifier ()
 locate identifier in the stream, returns length of the identifier (or 0 if fails) More...
 
Int_t LocateValue (unsigned curr_offset, bool withequalsign=true)
 locate attribute value, returns length (or 0 if fails) More...
 
Int_t NumEntities () const
 Returns number of entity. More...
 
Int_t SearchFor (const char *str)
 Search for specified string in the stream return number of symbols before string was found, -1 if error. More...
 
Bool_t ShiftCurrent (Int_t sz=1)
 shift current position on provided number of symbol More...
 
Bool_t ShiftStream ()
 read next portion of data from the stream in the buffer More...
 
Bool_t SkipSpaces (Bool_t tillendl=kFALSE)
 Skip spaces at the current position. More...
 
Int_t TotalPos ()
 returns absolute byte position in the stream More...
 

Public Attributes

char * fCurrent
 array of TXMLEntity More...
 

Protected Attributes

char * fBuf
 
Int_t fBufSize
 
Int_t fCurrentLine
 
TObjArray fEntities
 
std::istream * fInp
 
const char * fInpStr
 
Int_t fInpStrLen
 
char * fLimitAddr
 
char * fMaxAddr
 
Int_t fTotalPos
 

Constructor & Destructor Documentation

◆ TXMLInputStream()

TXMLInputStream::TXMLInputStream ( Bool_t  isfilename,
const char *  filename,
Int_t  ibufsize 
)
inline

constructor

Definition at line 193 of file TXMLEngine.cxx.

◆ ~TXMLInputStream()

virtual TXMLInputStream::~TXMLInputStream ( )
inlinevirtual

destructor

Definition at line 227 of file TXMLEngine.cxx.

Member Function Documentation

◆ AddEntity()

void TXMLInputStream::AddEntity ( TXMLEntity ent)
inline

Add new entity.

Definition at line 248 of file TXMLEngine.cxx.

◆ CheckFor()

Bool_t TXMLInputStream::CheckFor ( const char *  str)
inline

Check if in current position we see specified string.

Definition at line 391 of file TXMLEngine.cxx.

◆ CurrentLine()

Int_t TXMLInputStream::CurrentLine ( )
inline

returns current line number in the input stream

Definition at line 348 of file TXMLEngine.cxx.

◆ DoRead()

int TXMLInputStream::DoRead ( char *  buf,
int  maxsize 
)
inline

Read new data into buffer.

Definition at line 275 of file TXMLEngine.cxx.

◆ EndOfFile()

Bool_t TXMLInputStream::EndOfFile ( )
inline

return true if end of file is achieved

Definition at line 238 of file TXMLEngine.cxx.

◆ EndOfStream()

Bool_t TXMLInputStream::EndOfStream ( )
inline

return true if end of file and all data from buffer are processed

Definition at line 243 of file TXMLEngine.cxx.

◆ ExpandStream()

Bool_t TXMLInputStream::ExpandStream ( char *&  curr)
inline

Allocate more data for the buffer, preserving content.

Definition at line 297 of file TXMLEngine.cxx.

◆ FindEntity()

TXMLEntity * TXMLInputStream::FindEntity ( const char *  beg,
Int_t  len 
)
inline

Search for the entity.

Definition at line 258 of file TXMLEngine.cxx.

◆ GoodStartSymbol()

Bool_t TXMLInputStream::GoodStartSymbol ( unsigned char  symb)
inline

returns true if symbol can be used as starting in the node name

Definition at line 438 of file TXMLEngine.cxx.

◆ LocateContent()

Int_t TXMLInputStream::LocateContent ( )
inline

locate node content, returns length (or -1 if fails)

Definition at line 474 of file TXMLEngine.cxx.

◆ LocateIdentifier()

Int_t TXMLInputStream::LocateIdentifier ( )
inline

locate identifier in the stream, returns length of the identifier (or 0 if fails)

Definition at line 447 of file TXMLEngine.cxx.

◆ LocateValue()

Int_t TXMLInputStream::LocateValue ( unsigned  curr_offset,
bool  withequalsign = true 
)
inline

locate attribute value, returns length (or 0 if fails)

Definition at line 492 of file TXMLEngine.cxx.

◆ NumEntities()

Int_t TXMLInputStream::NumEntities ( ) const
inline

Returns number of entity.

Definition at line 253 of file TXMLEngine.cxx.

◆ SearchFor()

Int_t TXMLInputStream::SearchFor ( const char *  str)
inline

Search for specified string in the stream return number of symbols before string was found, -1 if error.

Definition at line 409 of file TXMLEngine.cxx.

◆ ShiftCurrent()

Bool_t TXMLInputStream::ShiftCurrent ( Int_t  sz = 1)
inline

shift current position on provided number of symbol

Definition at line 353 of file TXMLEngine.cxx.

◆ ShiftStream()

Bool_t TXMLInputStream::ShiftStream ( )
inline

read next portion of data from the stream in the buffer

Definition at line 324 of file TXMLEngine.cxx.

◆ SkipSpaces()

Bool_t TXMLInputStream::SkipSpaces ( Bool_t  tillendl = kFALSE)
inline

Skip spaces at the current position.

Definition at line 372 of file TXMLEngine.cxx.

◆ TotalPos()

Int_t TXMLInputStream::TotalPos ( )
inline

returns absolute byte position in the stream

Definition at line 343 of file TXMLEngine.cxx.

Member Data Documentation

◆ fBuf

char* TXMLInputStream::fBuf
protected

Definition at line 176 of file TXMLEngine.cxx.

◆ fBufSize

Int_t TXMLInputStream::fBufSize
protected

Definition at line 177 of file TXMLEngine.cxx.

◆ fCurrent

char* TXMLInputStream::fCurrent

array of TXMLEntity

Definition at line 188 of file TXMLEngine.cxx.

◆ fCurrentLine

Int_t TXMLInputStream::fCurrentLine
protected

Definition at line 183 of file TXMLEngine.cxx.

◆ fEntities

TObjArray TXMLInputStream::fEntities
protected

Definition at line 185 of file TXMLEngine.cxx.

◆ fInp

std::istream* TXMLInputStream::fInp
protected

Definition at line 172 of file TXMLEngine.cxx.

◆ fInpStr

const char* TXMLInputStream::fInpStr
protected

Definition at line 173 of file TXMLEngine.cxx.

◆ fInpStrLen

Int_t TXMLInputStream::fInpStrLen
protected

Definition at line 174 of file TXMLEngine.cxx.

◆ fLimitAddr

char* TXMLInputStream::fLimitAddr
protected

Definition at line 180 of file TXMLEngine.cxx.

◆ fMaxAddr

char* TXMLInputStream::fMaxAddr
protected

Definition at line 179 of file TXMLEngine.cxx.

◆ fTotalPos

Int_t TXMLInputStream::fTotalPos
protected

Definition at line 182 of file TXMLEngine.cxx.


The documentation for this class was generated from the following file: