Functions
tagreader.h File Reference

Go to the source code of this file.

Functions

void parseTagFile (Entry *root, const char *fullPathName)
 

Function Documentation

void parseTagFile ( Entry root,
const char *  fullPathName 
)

Definition at line 1527 of file tagreader.cpp.

1528 {
1529  QFileInfo fi(fullName);
1530  if (!fi.exists()) return;
1531  TagFileParser handler( fullName ); // tagName
1532  handler.setFileName(fullName);
1533  TagFileErrorHandler errorHandler;
1534  QFile xmlFile( fullName );
1535  QXmlInputSource source( xmlFile );
1536  QXmlSimpleReader reader;
1537  reader.setContentHandler( &handler );
1538  reader.setErrorHandler( &errorHandler );
1539  reader.parse( source );
1540  handler.buildLists(root);
1541  handler.addIncludes();
1542  //handler.dump();
1543 }
bool parse(const QXmlInputSource &input)
Definition: qxml.cpp:2077
void setErrorHandler(QXmlErrorHandler *handler)
Definition: qxml.cpp:2051
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).
Definition: qxml.h:238
void setContentHandler(QXmlContentHandler *handler)
Definition: qxml.cpp:2043
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
static msg_handler handler
Definition: qglobal.cpp:234
The QXmlInputSource class is the source where XML data is read from.
Definition: qxml.h:162
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:51