|
Packit Service |
50c9f2 |
/******************************************************************************
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Copyright (C) 1997-2015 by Dimitri van Heesch.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Permission to use, copy, modify, and distribute this software and its
|
|
Packit Service |
50c9f2 |
* documentation under the terms of the GNU General Public License is hereby
|
|
Packit Service |
50c9f2 |
* granted. No representations are made about the suitability of this software
|
|
Packit Service |
50c9f2 |
* for any purpose. It is provided "as is" without express or implied warranty.
|
|
Packit Service |
50c9f2 |
* See the GNU General Public License for more details.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
* Documents produced by Doxygen are derivative works derived from the
|
|
Packit Service |
50c9f2 |
* input used in their production; they are not affected by this license.
|
|
Packit Service |
50c9f2 |
*
|
|
Packit Service |
50c9f2 |
*/
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#ifndef XMLSCANNER_H
|
|
Packit Service |
50c9f2 |
#define XMLSCANNER_H
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#include "parserintf.h"
|
|
Packit Service |
50c9f2 |
#include "xmlcode.h"
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
/** XML scanner. Only support syntax highlighting of code at the moment.
|
|
Packit Service |
50c9f2 |
*/
|
|
Packit Service |
50c9f2 |
class XMLScanner : public ParserInterface
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
public:
|
|
Packit Service |
50c9f2 |
XMLScanner() {}
|
|
Packit Service |
50c9f2 |
virtual ~XMLScanner() {}
|
|
Packit Service |
50c9f2 |
void startTranslationUnit(const char *) {}
|
|
Packit Service |
50c9f2 |
void finishTranslationUnit() {}
|
|
Packit Service |
50c9f2 |
void parseInput(const char *, const char *, Entry *, bool , QStrList &) {}
|
|
Packit Service |
50c9f2 |
bool needsPreprocessing(const QCString &) { return FALSE; }
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
void parseCode(CodeOutputInterface &codeOutIntf,
|
|
Packit Service |
50c9f2 |
const char *scopeName,
|
|
Packit Service |
50c9f2 |
const QCString &input,
|
|
Packit Service |
50c9f2 |
SrcLangExt,
|
|
Packit Service |
50c9f2 |
bool isExampleBlock,
|
|
Packit Service |
50c9f2 |
const char *exampleName=0,
|
|
Packit Service |
50c9f2 |
FileDef *fileDef=0,
|
|
Packit Service |
50c9f2 |
int startLine=-1,
|
|
Packit Service |
50c9f2 |
int endLine=-1,
|
|
Packit Service |
50c9f2 |
bool inlineFragment=FALSE,
|
|
Packit Service |
50c9f2 |
MemberDef *memberDef=0,
|
|
Packit Service |
50c9f2 |
bool showLineNumbers=TRUE,
|
|
Packit Service |
50c9f2 |
Definition *searchCtx=0,
|
|
Packit Service |
50c9f2 |
bool collectXRefs=TRUE
|
|
Packit Service |
50c9f2 |
)
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
parseXmlCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
|
|
Packit Service |
50c9f2 |
fileDef,startLine,endLine,inlineFragment,memberDef,
|
|
Packit Service |
50c9f2 |
showLineNumbers,searchCtx,collectXRefs);
|
|
Packit Service |
50c9f2 |
}
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
void resetCodeParserState()
|
|
Packit Service |
50c9f2 |
{
|
|
Packit Service |
50c9f2 |
resetXmlCodeParserState();
|
|
Packit Service |
50c9f2 |
}
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
void parsePrototype(const char *) {}
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
private:
|
|
Packit Service |
50c9f2 |
};
|
|
Packit Service |
50c9f2 |
|
|
Packit Service |
50c9f2 |
#endif
|