ISLEman
sqlscanner.h
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 SQLSCANNER_H
17 #define SQLSCANNER_H
18 
19 #include "parserintf.h"
20 #include "sqlcode.h"
21 
25 {
26 public:
27  SQLScanner() {}
28  virtual ~SQLScanner() {}
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  parseSqlCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
51  fileDef,startLine,endLine,inlineFragment,memberDef,
52  showLineNumbers,searchCtx,collectXRefs);
53  }
54 
56  {
57  resetSqlCodeParserState();
58  }
59 
60  void parsePrototype(const char *) {}
61 
62 private:
63 };
64 
65 #endif
Definition: qstrlist.h:57
void resetCodeParserState()
Resets the state of the code parser.
Definition: sqlscanner.h:55
The common base class of all entity definitions found in the sources.
Definition: definition.h:92
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)
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output...
Definition: sqlscanner.h:34
A model of a class/file/namespace member symbol.
Definition: memberdef.h:43
Represents an unstructured piece of information, about an entity found in the sources.
Definition: entry.h:63
Abstract interface for programming language parsers.
Definition: parserintf.h:38
void parsePrototype(const char *)
Callback function called by the comment block scanner.
Definition: sqlscanner.h:60
A model of a file symbol.
Definition: filedef.h:64
bool needsPreprocessing(const QCString &)
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed t...
Definition: sqlscanner.h:32
SrcLangExt
Language as given by extension.
Definition: types.h:41
SQL scanner.
Definition: sqlscanner.h:24
void parseInput(const char *, const char *, Entry *, bool, QStrList &)
Parses a single input file with the goal to build an Entry tree.
Definition: sqlscanner.h:31
void startTranslationUnit(const char *)
Starts processing a translation unit (source files + headers).
Definition: sqlscanner.h:29
This is an alternative implementation of QCString.
Definition: qcstring.h:131
Output interface for code parser.
Definition: outputgen.h:59
void finishTranslationUnit()
Called after all files in a translation unit have been processed.
Definition: sqlscanner.h:30