LibreOffice Module idl (master) 1
|
#include <lex.hxx>
Public Member Functions | |
SvTokenStream (const OUString &rFileName) | |
~SvTokenStream () | |
const OUString & | GetFileName () const |
SvStream & | GetStream () |
SvToken & | GetToken_PrevAll () |
SvToken & | GetToken_Next () |
SvToken & | GetToken () const |
bool | ReadIf (char cChar) |
void | ReadIfDelimiter () |
sal_uInt32 | Tell () const |
void | Seek (sal_uInt32 nPos) |
void | SeekToMax () |
Private Member Functions | |
void | InitCtor () |
char | GetNextChar () |
char | GetFastNextChar () |
void | FillTokenList () |
sal_uInt64 | GetNumber () |
bool | MakeToken (SvToken &) |
bool | IsEof () const |
void | SetMax () |
void | CalcColumn () |
Private Attributes | |
sal_uInt64 | nLine |
sal_uInt64 | nColumn |
sal_Int32 | nBufPos |
char | c |
OString | aStrTrue |
OString | aStrFalse |
sal_uInt32 | nMaxPos |
std::unique_ptr< SvFileStream > | pInStream |
OUString | aFileName |
std::vector< std::unique_ptr< SvToken > > | aTokList |
std::vector< std::unique_ptr< SvToken > >::iterator | pCurToken |
OString | aBufStr |
Static Private Attributes | |
static const sal_uInt16 | nTabSize = 4 |
SvTokenStream::SvTokenStream | ( | const OUString & | rFileName | ) |
Definition at line 84 of file lex.cxx.
References InitCtor(), and STD_READ.
|
inlineprivate |
|
private |
Definition at line 95 of file lex.cxx.
References aTokList, SvToken::IsComment(), SvToken::IsEof(), MakeToken(), pCurToken, SvToken::SetColumn(), and SvToken::SetLine().
Referenced by InitCtor().
|
inlineprivate |
Definition at line 119 of file lex.hxx.
References aBufStr, and nBufPos.
Referenced by GetNumber(), and MakeToken().
|
inline |
Definition at line 151 of file lex.hxx.
References aFileName.
Referenced by SvIdlDataBase::WriteError().
|
private |
Definition at line 127 of file lex.cxx.
References aBufStr, nBufPos, nColumn, nLine, nTabSize, and pInStream.
Referenced by InitCtor(), and MakeToken().
|
private |
Definition at line 151 of file lex.cxx.
References c, and GetFastNextChar().
Referenced by MakeToken().
|
inline |
Definition at line 152 of file lex.hxx.
References pInStream.
Referenced by SvIdlDataBase::ReadIdFile(), and SvIdlParser::ReadInclude().
|
inline |
Definition at line 177 of file lex.hxx.
Referenced by SvIdlParser::Read(), SvMetaClass::ReadContextSvIdl(), SvIdlParser::ReadIdentifier(), ReadIf(), SvIdlParser::ReadIf(), SvIdlParser::ReadIfBoolAttribute(), ReadIfDelimiter(), SvIdlParser::ReadIfDelimiter(), SvIdlParser::ReadIfIdAttribute(), SvIdlParser::ReadInclude(), SvIdlParser::ReadInterfaceOrShellEntry(), SvIdlParser::ReadString(), ReadStringSvIdl(), SvIdlParser::ReadStruct(), SvIdlParser::ReadSvIdl(), SvMetaAttribute::ReadSvIdl(), SvBOOL::ReadSvIdl(), SvIdentifier::ReadSvIdl(), SvIdlDataBase::SetAndWriteError(), SvParseException::SvParseException(), and SvIdlDataBase::WriteError().
|
inline |
Definition at line 165 of file lex.hxx.
References aTokList, pCurToken, and SetMax().
Referenced by SvIdlParser::Read(), SvMetaClass::ReadContextSvIdl(), SvMetaType::ReadHeaderSvIdl(), SvIdlParser::ReadIdentifier(), SvIdlDataBase::ReadIdFile(), ReadIf(), SvIdlParser::ReadIf(), SvIdlParser::ReadIfBoolAttribute(), ReadIfDelimiter(), SvIdlParser::ReadIfDelimiter(), SvIdlParser::ReadIfIdAttribute(), SvIdlParser::ReadInterfaceOrShellEntry(), SvIdlDataBase::ReadKnownAttr(), SvIdlDataBase::ReadKnownClass(), SvIdlDataBase::ReadKnownType(), SvMetaObject::ReadNameSvIdl(), SvIdlParser::ReadString(), ReadStringSvIdl(), SvBOOL::ReadSvIdl(), and SvIdentifier::ReadSvIdl().
|
inline |
Definition at line 154 of file lex.hxx.
References aTokList, and pCurToken.
Referenced by SvIdlDataBase::WriteError().
|
private |
Definition at line 73 of file lex.cxx.
References aStrFalse, aStrTrue, c, FillTokenList(), GetNextChar(), nBufPos, nColumn, nLine, and nMaxPos.
Referenced by SvTokenStream().
|
inlineprivate |
|
private |
Definition at line 191 of file lex.cxx.
References aBuf, aStr, aStrFalse, SvToken::aString, aStrTrue, SvToken::bBool, Bool, c, CalcColumn(), SvToken::cChar, Char, Comment, EndOfFile, ERRCODE_NONE, GetFastNextChar(), GetIdlApp(), GetNextChar(), GetNumber(), Identifier, Integer, IsEof(), nColumn, nLine, SvToken::nLong, nTabSize, SvToken::nType, pInStream, SvToken::SetColumn(), SvToken::SetHash(), SvToken::SetLine(), and String.
Referenced by FillTokenList().
|
inline |
Definition at line 179 of file lex.hxx.
References GetToken(), and GetToken_Next().
Referenced by SvIdlParser::ReadIfBoolAttribute(), SvIdlParser::ReadIfIdAttribute(), SvMetaType::ReadMethodArgs(), ReadStringSvIdl(), SvMetaObject::ReadSvIdl(), SvBOOL::ReadSvIdl(), and SvIdentifier::ReadSvIdl().
|
inline |
Definition at line 190 of file lex.hxx.
References GetToken(), and GetToken_Next().
Referenced by SvMetaObject::DoReadContextSvIdl(), SvIdlParser::ReadInclude(), and SvMetaObject::ReadSvIdl().
|
inline |
Definition at line 202 of file lex.hxx.
References aTokList, nPos, pCurToken, and SetMax().
Referenced by SvMetaClass::ReadContextSvIdl(), SvMetaType::ReadHeaderSvIdl(), SvIdlParser::ReadIfBoolAttribute(), SvIdlParser::ReadIfIdAttribute(), SvIdlParser::ReadInclude(), SvIdlDataBase::ReadKnownAttr(), SvIdlDataBase::ReadKnownClass(), SvIdlDataBase::ReadKnownType(), SvMetaType::ReadMethodArgs(), SvMetaObject::ReadNameSvIdl(), SvIdlParser::ReadSlot(), ReadStringSvIdl(), SvMetaObject::ReadSvIdl(), SvMetaSlot::ReadSvIdl(), SvMetaAttribute::ReadSvIdl(), SvBOOL::ReadSvIdl(), and SvIdentifier::ReadSvIdl().
|
inline |
|
inlineprivate |
|
inline |
Definition at line 200 of file lex.hxx.
References aTokList, and pCurToken.
Referenced by SvMetaObject::DoReadContextSvIdl(), SvMetaClass::ReadContextSvIdl(), SvMetaType::ReadHeaderSvIdl(), SvIdlParser::ReadIfBoolAttribute(), SvIdlParser::ReadIfIdAttribute(), SvIdlParser::ReadInclude(), SvIdlParser::ReadInterfaceOrShell(), SvIdlDataBase::ReadKnownAttr(), SvIdlDataBase::ReadKnownClass(), SvIdlDataBase::ReadKnownType(), SvMetaType::ReadMethodArgs(), SvIdlParser::ReadModuleBody(), SvMetaObject::ReadNameSvIdl(), SvIdlParser::ReadSlot(), ReadStringSvIdl(), SvMetaObject::ReadSvIdl(), SvMetaSlot::ReadSvIdl(), SvMetaAttribute::ReadSvIdl(), SvBOOL::ReadSvIdl(), SvIdentifier::ReadSvIdl(), and SetMax().
|
private |
Definition at line 114 of file lex.hxx.
Referenced by CalcColumn(), GetFastNextChar(), and GetNextChar().
|
private |
Definition at line 110 of file lex.hxx.
Referenced by GetFileName().
|
private |
Definition at line 106 of file lex.hxx.
Referenced by InitCtor(), and MakeToken().
|
private |
Definition at line 105 of file lex.hxx.
Referenced by InitCtor(), and MakeToken().
|
private |
Definition at line 111 of file lex.hxx.
Referenced by FillTokenList(), GetToken_Next(), GetToken_PrevAll(), Seek(), SeekToMax(), and Tell().
|
private |
Definition at line 103 of file lex.hxx.
Referenced by CalcColumn(), GetNumber(), InitCtor(), and MakeToken().
|
private |
Definition at line 102 of file lex.hxx.
Referenced by CalcColumn(), GetFastNextChar(), GetNextChar(), and InitCtor().
|
private |
Definition at line 101 of file lex.hxx.
Referenced by CalcColumn(), GetNextChar(), InitCtor(), and MakeToken().
|
private |
Definition at line 101 of file lex.hxx.
Referenced by GetNextChar(), InitCtor(), and MakeToken().
|
private |
Definition at line 107 of file lex.hxx.
Referenced by InitCtor(), SeekToMax(), and SetMax().
|
staticprivate |
Definition at line 104 of file lex.hxx.
Referenced by CalcColumn(), GetNextChar(), and MakeToken().
|
private |
Definition at line 112 of file lex.hxx.
Referenced by FillTokenList(), GetToken_Next(), GetToken_PrevAll(), Seek(), SeekToMax(), and Tell().
|
private |
Definition at line 109 of file lex.hxx.
Referenced by GetNextChar(), GetStream(), IsEof(), and MakeToken().