xmlscanner.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2015 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  * Documents produced by Doxygen are derivative works derived from the
12  * input used in their production; they are not affected by this license.
13  *
14  */
15 
16 #ifndef XMLSCANNER_H
17 #define XMLSCANNER_H
18 
19 #include "parserintf.h"
20 #include "xmlcode.h"
21 
22 /** XML scanner. Only support syntax highlighting of code at the moment.
23  */
25 {
26 public:
28  virtual ~XMLScanner() {}
29  void startTranslationUnit(const char *) {}
31  void parseInput(const char *, const char *, Entry *, bool , QStrList &) {}
32  bool needsPreprocessing(const QCString &) { return FALSE; }
33 
34  void parseCode(CodeOutputInterface &codeOutIntf,
35  const char *scopeName,
36  const QCString &input,
37  SrcLangExt,
38  bool isExampleBlock,
39  const char *exampleName=0,
40  FileDef *fileDef=0,
41  int startLine=-1,
42  int endLine=-1,
43  bool inlineFragment=FALSE,
44  MemberDef *memberDef=0,
45  bool showLineNumbers=TRUE,
46  Definition *searchCtx=0,
47  bool collectXRefs=TRUE
48  )
49  {
50  parseXmlCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
51  fileDef,startLine,endLine,inlineFragment,memberDef,
52  showLineNumbers,searchCtx,collectXRefs);
53  }
54 
56  {
58  }
59 
60  void parsePrototype(const char *) {}
61 
62 private:
63 };
64 
65 #endif
void startTranslationUnit(const char *)
Definition: xmlscanner.h:29
Definition: entry.h:63
Abstract interface for programming language parsers.
Definition: parserintf.h:38
const bool FALSE
Definition: qglobal.h:370
void resetCodeParserState()
Definition: xmlscanner.h:55
virtual ~XMLScanner()
Definition: xmlscanner.h:28
SrcLangExt
Definition: types.h:41
void parseXmlCode(CodeOutputInterface &od, const char *, const QCString &s, bool, const char *exName, FileDef *fd, int startLine, int endLine, bool, MemberDef *, bool, Definition *searchCtx, bool)
Definition: xmlcode.cpp:2081
static int input(void)
Definition: code.cpp:15695
void parsePrototype(const char *)
Definition: xmlscanner.h:60
bool needsPreprocessing(const QCString &)
Definition: xmlscanner.h:32
void resetXmlCodeParserState()
Definition: xmlcode.cpp:2159
void parseInput(const char *, const char *, Entry *, bool, QStrList &)
Definition: xmlscanner.h:31
void finishTranslationUnit()
Definition: xmlscanner.h:30
void parseCode(CodeOutputInterface &codeOutIntf, const char *scopeName, const QCString &input, SrcLangExt, bool isExampleBlock, const char *exampleName=0, FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, MemberDef *memberDef=0, bool showLineNumbers=TRUE, Definition *searchCtx=0, bool collectXRefs=TRUE)
Definition: xmlscanner.h:34
const bool TRUE
Definition: qglobal.h:371
bool collectXRefs