librcsb-core-wrapper 1.005
DICScannerBase.h
Go to the documentation of this file.
1//$$FILE$$
2//$$VERSION$$
3//$$DATE$$
4//$$LICENSE$$
5
6
14/*
15 PURPOSE: DDL 2.1 compliant CIF file lexer ...
16*/
17
18
19#ifndef DICSCANNERBASE_H
20#define DICSCANNERBASE_H
21
22
23/*
24#if !defined(DDL_FLEX_LEXER_INCLUDED)
25#undef yyFlexLexer
26#define yyFlexLexer DDLFlexLexer
27#include <rcsb/FlexLexer.h>
28#endif
29*/
30
31#include <string>
32
33
34#include <fstream>
35#include <stdio.h>
36#include <string.h>
37
38#ifndef DEBUG
39#define DEBUG 0
40#endif
41
42
48class DICScanner // : public DDLFlexLexer
49{
50 protected:
51
52 std::string *_tBuf;
54 int _i, _j, _len;
55
56 protected:
57 std::ofstream log;
59 void alt_yymore(void);
60 void OpenLog(const std::string& logName, bool verboseLevel);
61
62 public:
64 int isSave;
65 DICScanner(std::istream *yyin);
67 void Clear();
68 void Reset();
85 virtual int yylex();
86 virtual ~DICScanner() {Reset();};
87};
88
89#endif
90
Private class that represents a dictionary scanner.
Definition DICScannerBase.h:49
int ProcessEof()
int ProcessNone()
int ProcessDot()
int _j
Definition DICScannerBase.h:54
void Reset()
virtual ~DICScanner()
Definition DICScannerBase.h:86
void ProcessComment()
int _i
Definition DICScannerBase.h:54
int ProcessSaveEndScanner()
int ProcessItemNameScanner()
int ProcessItemSaveBegin()
std::ofstream log
Definition DICScannerBase.h:57
int ProcessDQuotedString()
int ProcessCategorySaveBegin()
int ProcessQuestion()
int _len
Definition DICScannerBase.h:54
std::string * _tBuf
Definition DICScannerBase.h:52
int ProcessSQuotedString()
virtual int yylex()
void ProcessStop()
void OpenLog(const std::string &logName, bool verboseLevel)
bool _verbose
Definition DICScannerBase.h:58
int ProcessUnquotedString()
int ProcessData()
DICScanner(std::istream *yyin)
void alt_yymore(void)
int NDBlineNo
Definition DICScannerBase.h:63
void ProcessWhiteSpace()
void Clear()
int _isText
Definition DICScannerBase.h:53
int isSave
Definition DICScannerBase.h:64
int ProcessLoopScanner()