DICScannerBase.h
Go to the documentation of this file.
//$$FILE$$
//$$VERSION$$
//$$DATE$$
//$$LICENSE$$
/*
PURPOSE: DDL 2.1 compliant CIF file lexer ...
*/
#ifndef DICSCANNERBASE_H
#define DICSCANNERBASE_H
/*
#if !defined(DDL_FLEX_LEXER_INCLUDED)
#undef yyFlexLexer
#define yyFlexLexer DDLFlexLexer
#include <rcsb/FlexLexer.h>
#endif
*/
#include <string>
#include <fstream>
#include <stdio.h>
#include <string.h>
#ifndef DEBUG
#define DEBUG 0
#endif
class DICScanner // : public DDLFlexLexer
{
protected:
std::string *_tBuf;
int _isText;
int _i, _j, _len;
protected:
std::ofstream log;
bool _verbose;
void alt_yymore(void);
void OpenLog(const std::string& logName, bool verboseLevel);
public:
int NDBlineNo;
int isSave;
DICScanner(std::istream *yyin);
DICScanner();
void Clear();
void Reset();
int ProcessNone();
void ProcessWhiteSpace();
int ProcessData();
int ProcessItemSaveBegin();
int ProcessCategorySaveBegin();
int ProcessSaveEndScanner();
int ProcessLoopScanner();
void ProcessStop();
int ProcessDot();
int ProcessQuestion();
void ProcessComment();
int ProcessItemNameScanner();
int ProcessUnquotedString();
int ProcessSQuotedString();
int ProcessDQuotedString();
int ProcessEof();
virtual int yylex();
virtual ~DICScanner() {Reset();};
};
#endif
DICScanner::ProcessUnquotedString
int ProcessUnquotedString()
DICScanner::ProcessWhiteSpace
void ProcessWhiteSpace()
DICScanner::_i
int _i
Definition: DICScannerBase.h:54
DICScanner::ProcessEof
int ProcessEof()
DICScanner::_j
int _j
Definition: DICScannerBase.h:54
DICScanner::log
std::ofstream log
Definition: DICScannerBase.h:57
DICScanner::ProcessSQuotedString
int ProcessSQuotedString()
DICScanner::ProcessStop
void ProcessStop()
DICScanner::Reset
void Reset()
DICScanner::ProcessData
int ProcessData()
DICScanner::ProcessItemSaveBegin
int ProcessItemSaveBegin()
DICScanner::ProcessDQuotedString
int ProcessDQuotedString()
DICScanner::ProcessDot
int ProcessDot()
DICScanner::ProcessComment
void ProcessComment()
DICScanner::ProcessNone
int ProcessNone()
DICScanner::ProcessCategorySaveBegin
int ProcessCategorySaveBegin()
DICScanner::ProcessQuestion
int ProcessQuestion()
DICScanner::alt_yymore
void alt_yymore(void)
DICScanner
Private class that represents a dictionary scanner.
Definition: DICScannerBase.h:48
DICScanner::OpenLog
void OpenLog(const std::string &logName, bool verboseLevel)
DICScanner::_verbose
bool _verbose
Definition: DICScannerBase.h:58
DICScanner::ProcessLoopScanner
int ProcessLoopScanner()
DICScanner::~DICScanner
virtual ~DICScanner()
Definition: DICScannerBase.h:86
DICScanner::DICScanner
DICScanner()
DICScanner::_tBuf
std::string * _tBuf
Definition: DICScannerBase.h:52
DICScanner::_len
int _len
Definition: DICScannerBase.h:54
DICScanner::_isText
int _isText
Definition: DICScannerBase.h:53
DICScanner::yylex
virtual int yylex()
DICScanner::Clear
void Clear()
DICScanner::ProcessSaveEndScanner
int ProcessSaveEndScanner()
DICScanner::isSave
int isSave
Definition: DICScannerBase.h:64
DICScanner::ProcessItemNameScanner
int ProcessItemNameScanner()
DICScanner::NDBlineNo
int NDBlineNo
Definition: DICScannerBase.h:63