Classes | Functions
tagreader.cpp File Reference
#include "tagreader.h"
#include <stdio.h>
#include <stdarg.h>
#include <qxml.h>
#include <qstack.h>
#include <qdict.h>
#include <qfileinfo.h>
#include <qlist.h>
#include <qstring.h>
#include <qstringlist.h>
#include "entry.h"
#include "classdef.h"
#include "doxygen.h"
#include "util.h"
#include "message.h"
#include "defargs.h"
#include "arguments.h"
#include "filedef.h"
#include "filename.h"
#include "section.h"

Go to the source code of this file.

Classes

class  TagAnchorInfo
 
class  TagAnchorInfoList
 
class  TagEnumValueInfo
 
class  TagMemberInfo
 
class  TagClassInfo
 
class  TagNamespaceInfo
 
class  TagPackageInfo
 
class  TagIncludeInfo
 
class  TagFileInfo
 
class  TagGroupInfo
 
class  TagPageInfo
 
class  TagDirInfo
 
class  TagFileParser
 
class  TagFileParser::StartElementHandler
 
class  TagFileParser::EndElementHandler
 
class  TagFileErrorHandler
 

Functions

static QCString stripPath (const QCString &s)
 
void parseTagFile (Entry *root, const char *fullName)
 

Function Documentation

void parseTagFile ( Entry root,
const char *  fullName 
)

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
static QCString stripPath ( const QCString s)
static

Definition at line 1287 of file tagreader.cpp.

1288 {
1289  int i=s.findRev('/');
1290  if (i!=-1)
1291  {
1292  return s.right(s.length()-i-1);
1293  }
1294  else
1295  {
1296  return s;
1297  }
1298 }
uint length() const
Definition: qcstring.h:195
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:95
QCString right(uint len) const
Definition: qcstring.cpp:231
static QCString * s
Definition: config.cpp:1042