LibreOffice Module connectivity (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
connectivity::OSQLScanner Class Reference

Scanner for SQL92. More...

#include <sqlscan.hxx>

Collaboration diagram for connectivity::OSQLScanner:
[legend]

Public Member Functions

 OSQLScanner ()
 
 ~OSQLScanner ()
 
sal_Int32 SQLyygetc ()
 
void SQLyyerror (char const *fmt)
 
IParseContext::InternationalKeyCode getInternationalTokenID (const char *sToken) const
 
void prepareScan (const OUString &rNewStatement, const IParseContext *pContext, bool bInternational)
 
const OUString & getErrorMessage () const
 
const OString & getStatement () const
 
void setScanner (bool _bNull=false)
 
void SetRule (sal_Int32 nRule)
 
sal_Int32 GetCurrentPos () const
 

Static Public Member Functions

static sal_Int32 SQLlex ()
 
static sal_Int32 GetGERRule ()
 
static sal_Int32 GetENGRule ()
 
static sal_Int32 GetSQLRule ()
 
static sal_Int32 GetDATERule ()
 
static sal_Int32 GetSTRINGRule ()
 

Private Attributes

const IParseContextm_pContext
 
OString m_sStatement
 
OUString m_sErrorMessage
 
sal_Int32 m_nCurrentPos
 
bool m_bInternational
 
sal_Int32 m_nRule
 

Detailed Description

Scanner for SQL92.

Definition at line 30 of file sqlscan.hxx.

Constructor & Destructor Documentation

◆ OSQLScanner()

OSQLScanner::OSQLScanner ( )

Definition at line 712 of file sqlflex.l.

References IN_SQLyyerror, and m_nCurrentPos.

◆ ~OSQLScanner()

OSQLScanner::~OSQLScanner ( )

Definition at line 722 of file sqlflex.l.

Member Function Documentation

◆ GetCurrentPos()

sal_Int32 connectivity::OSQLScanner::GetCurrentPos ( ) const
inline

Definition at line 63 of file sqlscan.hxx.

References m_nCurrentPos.

Referenced by gatherNamePre().

◆ GetDATERule()

sal_Int32 OSQLScanner::GetDATERule ( )
static

Definition at line 797 of file sqlflex.l.

References DATE.

Referenced by connectivity::OSQLParser::predicateTree().

◆ GetENGRule()

sal_Int32 OSQLScanner::GetENGRule ( )
static

Definition at line 795 of file sqlflex.l.

Referenced by connectivity::OSQLParser::predicateTree().

◆ getErrorMessage()

const OUString & connectivity::OSQLScanner::getErrorMessage ( ) const
inline

Definition at line 50 of file sqlscan.hxx.

References m_sErrorMessage.

Referenced by connectivity::OSQLParser::predicateTree().

◆ GetGERRule()

sal_Int32 OSQLScanner::GetGERRule ( )
static

Definition at line 794 of file sqlflex.l.

Referenced by connectivity::OSQLParser::predicateTree().

◆ getInternationalTokenID()

IParseContext::InternationalKeyCode OSQLScanner::getInternationalTokenID ( const char *  sToken) const

◆ GetSQLRule()

sal_Int32 OSQLScanner::GetSQLRule ( )
static

Definition at line 796 of file sqlflex.l.

References SQL.

Referenced by connectivity::OSQLParser::predicateTree().

◆ getStatement()

const OString & connectivity::OSQLScanner::getStatement ( ) const
inline

Definition at line 51 of file sqlscan.hxx.

References m_sStatement.

Referenced by gatherNamePre().

◆ GetSTRINGRule()

sal_Int32 OSQLScanner::GetSTRINGRule ( )
static

Definition at line 798 of file sqlflex.l.

References STRING.

Referenced by connectivity::OSQLParser::predicateTree().

◆ prepareScan()

void OSQLScanner::prepareScan ( const OUString &  rNewStatement,
const IParseContext pContext,
bool  bInternational 
)

◆ SetRule()

void connectivity::OSQLScanner::SetRule ( sal_Int32  nRule)
inline

Definition at line 57 of file sqlscan.hxx.

References m_nRule.

Referenced by connectivity::OSQLParser::predicateTree().

◆ setScanner()

void OSQLScanner::setScanner ( bool  _bNull = false)

◆ SQLlex()

sal_Int32 OSQLScanner::SQLlex ( )
static

Definition at line 803 of file sqlflex.l.

◆ SQLyyerror()

void OSQLScanner::SQLyyerror ( char const *  fmt)

Definition at line 726 of file sqlflex.l.

References ch, checkeof(), IN_SQLyyerror, m_nCurrentPos, m_pContext, m_sErrorMessage, and m_sStatement.

Referenced by do_fatal_error().

◆ SQLyygetc()

sal_Int32 OSQLScanner::SQLyygetc ( void  )

Definition at line 781 of file sqlflex.l.

References m_nCurrentPos, m_sStatement, and nPos.

Member Data Documentation

◆ m_bInternational

bool connectivity::OSQLScanner::m_bInternational
private

Definition at line 37 of file sqlscan.hxx.

Referenced by getInternationalTokenID(), and prepareScan().

◆ m_nCurrentPos

sal_Int32 connectivity::OSQLScanner::m_nCurrentPos
private

Definition at line 36 of file sqlscan.hxx.

Referenced by GetCurrentPos(), prepareScan(), SQLyyerror(), and SQLyygetc().

◆ m_nRule

sal_Int32 connectivity::OSQLScanner::m_nRule
private

Definition at line 38 of file sqlscan.hxx.

Referenced by prepareScan(), and SetRule().

◆ m_pContext

const IParseContext* connectivity::OSQLScanner::m_pContext
private

Definition at line 32 of file sqlscan.hxx.

Referenced by getInternationalTokenID(), prepareScan(), and SQLyyerror().

◆ m_sErrorMessage

OUString connectivity::OSQLScanner::m_sErrorMessage
private

Definition at line 34 of file sqlscan.hxx.

Referenced by getErrorMessage(), prepareScan(), and SQLyyerror().

◆ m_sStatement

OString connectivity::OSQLScanner::m_sStatement
private

Definition at line 33 of file sqlscan.hxx.

Referenced by getStatement(), prepareScan(), SQLyyerror(), and SQLyygetc().


The documentation for this class was generated from the following files: