LibreOffice Module idl (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
SvIdlDataBase Class Reference

#include <database.hxx>

Inheritance diagram for SvIdlDataBase:
[legend]
Collaboration diagram for SvIdlDataBase:
[legend]

Public Member Functions

 SvIdlDataBase (const SvCommand &rCmd)
 
 ~SvIdlDataBase ()
 
SvRefMemberList< SvMetaType * > & GetTypeList ()
 
SvRefMemberList< SvMetaClass * > & GetClassList ()
 
SvRefMemberList< SvMetaModule * > & GetModuleList ()
 
void StartNewFile (std::u16string_view rName)
 
void SetExportFile (const OUString &rName)
 
void AppendSlot (SvMetaSlot *pSlot)
 
const SvIdlErrorGetError () const
 
void SetError (const SvIdlError &r)
 
const OUString & GetPath () const
 
void SetPath (const OUString &s)
 
SvRefMemberList< SvMetaObject * > & GetStack ()
 
void Write (const OString &rText) const
 
void WriteError (SvTokenStream &rInStm)
 
void SetError (const OString &rError, SvToken const &rTok)
 
void SetAndWriteError (SvTokenStream &rInStm, const OString &rError)
 
void Push (SvMetaObject *pObj)
 
sal_uInt32 GetUniqueId ()
 
bool FindId (const OString &rIdName, sal_uInt32 *pVal)
 
void InsertId (const OString &rIdName, sal_uInt32 nVal)
 
bool ReadIdFile (std::string_view rFileName)
 
SvMetaTypeFindType (std::string_view rName)
 
SvMetaTypeReadKnownType (SvTokenStream &rInStm)
 
SvMetaAttributeReadKnownAttr (SvTokenStream &rInStm, SvMetaType *pType)
 
SvMetaAttributeFindKnownAttr (const SvIdentifier &)
 
SvMetaClassReadKnownClass (SvTokenStream &rInStm)
 
SvMetaClassFindKnownClass (std::string_view aName)
 
void AddDepFile (OUString const &rFileName)
 
void WriteDepFile (SvFileStream &rStream, std::u16string_view rTarget)
 

Static Public Member Functions

static SvMetaTypeFindType (const SvMetaType *, SvRefMemberList< SvMetaType * > &)
 

Public Attributes

OUString sSlotMapFile
 
SvRefMemberList< SvMetaType * > aUsedTypes
 

Protected Member Functions

void WriteReset ()
 

Protected Attributes

::std::set< OUString > m_DepFiles
 
OUString aPath
 
SvIdlError aError
 

Private Attributes

bool bExport
 
OUString aExportFile
 
sal_uInt32 nUniqueId
 
sal_uInt32 nVerbosity
 
std::vector< OUString > aIdFileList
 
std::unique_ptr< SvStringHashTablepIdTable
 
SvRefMemberList< SvMetaType * > aTypeList
 
SvRefMemberList< SvMetaClass * > aClassList
 
SvRefMemberList< SvMetaModule * > aModuleList
 
SvRefMemberList< SvMetaSlot * > aSlotList
 
SvRefMemberList< SvMetaObject * > aContextStack
 

Detailed Description

Definition at line 60 of file database.hxx.

Constructor & Destructor Documentation

◆ SvIdlDataBase()

SvIdlDataBase::SvIdlDataBase ( const SvCommand rCmd)
explicit

Definition at line 48 of file database.cxx.

References sSlotMapFile.

◆ ~SvIdlDataBase()

SvIdlDataBase::~SvIdlDataBase ( )

Definition at line 56 of file database.cxx.

References aIdFileList.

Member Function Documentation

◆ AddDepFile()

void SvIdlDataBase::AddDepFile ( OUString const &  rFileName)

Definition at line 509 of file database.cxx.

References m_DepFiles.

Referenced by ReadIdFile(), ReadIdl(), and SvIdlParser::ReadInclude().

◆ AppendSlot()

void SvIdlDataBase::AppendSlot ( SvMetaSlot pSlot)

Definition at line 503 of file database.cxx.

References aSlotList, bExport, and SvRefMemberList< T >::push_back().

Referenced by SvIdlParser::ReadModuleElement().

◆ FindId()

bool SvIdlDataBase::FindId ( const OString &  rIdName,
sal_uInt32 *  pVal 
)

◆ FindKnownAttr()

SvMetaAttribute * SvIdlDataBase::FindKnownAttr ( const SvIdentifier rId)

◆ FindKnownClass()

SvMetaClass * SvIdlDataBase::FindKnownClass ( std::string_view  aName)

Definition at line 383 of file database.cxx.

References aClassList, aName, SvMetaReference::GetName(), and n.

Referenced by SvIdlParser::ReadKnownClass(), and ReadKnownClass().

◆ FindType() [1/2]

SvMetaType * SvIdlDataBase::FindType ( const SvMetaType pPType,
SvRefMemberList< SvMetaType * > &  rList 
)
static

Definition at line 277 of file database.cxx.

◆ FindType() [2/2]

SvMetaType * SvIdlDataBase::FindType ( std::string_view  rName)

Definition at line 286 of file database.cxx.

References aTypeList.

Referenced by SvMetaSlot::WriteSlot(), and SvMetaSlot::WriteSlotParamArray().

◆ GetClassList()

SvRefMemberList< SvMetaClass * > & SvIdlDataBase::GetClassList ( )
inline

Definition at line 90 of file database.hxx.

References aClassList.

Referenced by SvIdlParser::ReadInterfaceOrShell().

◆ GetError()

const SvIdlError & SvIdlDataBase::GetError ( ) const
inline

Definition at line 100 of file database.hxx.

References aError.

Referenced by SvIdlParser::ReadInclude().

◆ GetModuleList()

SvRefMemberList< SvMetaModule * > & SvIdlDataBase::GetModuleList ( )
inline

Definition at line 91 of file database.hxx.

References aModuleList.

Referenced by SvIdlParser::ReadSvIdl(), and SvIdlWorkingBase::WriteSfx().

◆ GetPath()

const OUString & SvIdlDataBase::GetPath ( ) const
inline

Definition at line 104 of file database.hxx.

References aPath.

Referenced by ReadIdFile(), and SvIdlParser::ReadInclude().

◆ GetStack()

SvRefMemberList< SvMetaObject * > & SvIdlDataBase::GetStack ( )
inline

Definition at line 106 of file database.hxx.

References aContextStack.

Referenced by Push(), and SvIdlParser::ReadModuleHeader().

◆ GetTypeList()

SvRefMemberList< SvMetaType * > & SvIdlDataBase::GetTypeList ( )

◆ GetUniqueId()

sal_uInt32 SvIdlDataBase::GetUniqueId ( )
inline

Definition at line 113 of file database.hxx.

References nUniqueId.

Referenced by SvMetaClass::ReadContextSvIdl(), and SvIdlParser::ReadInterfaceOrShellEntry().

◆ InsertId()

void SvIdlDataBase::InsertId ( const OString &  rIdName,
sal_uInt32  nVal 
)

Definition at line 126 of file database.cxx.

References pIdTable.

Referenced by ReadIdFile().

◆ Push()

void SvIdlDataBase::Push ( SvMetaObject pObj)

Definition at line 107 of file database.cxx.

References GetStack(), and SvRefMemberList< T >::push_back().

Referenced by SvIdlParser::ReadModuleHeader().

◆ ReadIdFile()

bool SvIdlDataBase::ReadIdFile ( std::string_view  rFileName)

◆ ReadKnownAttr()

SvMetaAttribute * SvIdlDataBase::ReadKnownAttr ( SvTokenStream rInStm,
SvMetaType pType 
)

◆ ReadKnownClass()

SvMetaClass * SvIdlDataBase::ReadKnownClass ( SvTokenStream rInStm)

◆ ReadKnownType()

SvMetaType * SvIdlDataBase::ReadKnownType ( SvTokenStream rInStm)

◆ SetAndWriteError()

void SvIdlDataBase::SetAndWriteError ( SvTokenStream rInStm,
const OString &  rError 
)

Definition at line 101 of file database.cxx.

References SvTokenStream::GetToken(), SetError(), and WriteError().

Referenced by SvIdentifier::ReadSvIdl().

◆ SetError() [1/2]

void SvIdlDataBase::SetError ( const OString &  rError,
SvToken const &  rTok 
)

◆ SetError() [2/2]

void SvIdlDataBase::SetError ( const SvIdlError r)
inline

Definition at line 101 of file database.hxx.

References aError.

Referenced by ReadIdl(), SvIdlParser::ReadInclude(), SvMetaAttribute::ReadSvIdl(), and SetAndWriteError().

◆ SetExportFile()

void SvIdlDataBase::SetExportFile ( const OUString &  rName)
inline

Definition at line 97 of file database.hxx.

References aExportFile.

◆ SetPath()

void SvIdlDataBase::SetPath ( const OUString &  s)
inline

Definition at line 105 of file database.hxx.

References aPath.

Referenced by SvIdlParser::ReadSvIdl().

◆ StartNewFile()

void SvIdlDataBase::StartNewFile ( std::u16string_view  rName)

Definition at line 497 of file database.cxx.

References aExportFile, and bExport.

Referenced by SvIdlParser::ReadInclude().

◆ Write()

void SvIdlDataBase::Write ( const OString &  rText) const

Definition at line 394 of file database.cxx.

References nVerbosity.

Referenced by SvMetaType::ReadSvIdl().

◆ WriteDepFile()

void SvIdlDataBase::WriteDepFile ( SvFileStream rStream,
std::u16string_view  rTarget 
)

Definition at line 542 of file database.cxx.

References m_DepFiles, OUStringToOString(), rTarget, and SvStream::WriteOString().

◆ WriteError()

void SvIdlDataBase::WriteError ( SvTokenStream rInStm)

◆ WriteReset()

void SvIdlDataBase::WriteReset ( )
inlineprotected

Definition at line 79 of file database.hxx.

References aUsedTypes, and SvRefMemberList< T >::clear().

Referenced by SvIdlWorkingBase::WriteSfx().

Member Data Documentation

◆ aClassList

SvRefMemberList<SvMetaClass *> SvIdlDataBase::aClassList
private

Definition at line 70 of file database.hxx.

Referenced by FindKnownClass(), and GetClassList().

◆ aContextStack

SvRefMemberList<SvMetaObject *> SvIdlDataBase::aContextStack
private

Definition at line 73 of file database.hxx.

Referenced by GetStack().

◆ aError

SvIdlError SvIdlDataBase::aError
protected

Definition at line 78 of file database.hxx.

Referenced by GetError(), SetError(), and WriteError().

◆ aExportFile

OUString SvIdlDataBase::aExportFile
private

Definition at line 63 of file database.hxx.

Referenced by SetExportFile(), and StartNewFile().

◆ aIdFileList

std::vector<OUString> SvIdlDataBase::aIdFileList
private

Definition at line 66 of file database.hxx.

Referenced by ReadIdFile(), and ~SvIdlDataBase().

◆ aModuleList

SvRefMemberList<SvMetaModule *> SvIdlDataBase::aModuleList
private

Definition at line 71 of file database.hxx.

Referenced by GetModuleList().

◆ aPath

OUString SvIdlDataBase::aPath
protected

Definition at line 77 of file database.hxx.

Referenced by GetPath(), and SetPath().

◆ aSlotList

SvRefMemberList<SvMetaSlot *> SvIdlDataBase::aSlotList
private

Definition at line 72 of file database.hxx.

Referenced by AppendSlot(), FindKnownAttr(), and ReadKnownAttr().

◆ aTypeList

SvRefMemberList<SvMetaType *> SvIdlDataBase::aTypeList
private

Definition at line 69 of file database.hxx.

Referenced by FindType(), and GetTypeList().

◆ aUsedTypes

SvRefMemberList<SvMetaType *> SvIdlDataBase::aUsedTypes

◆ bExport

bool SvIdlDataBase::bExport
private

Definition at line 62 of file database.hxx.

Referenced by AppendSlot(), and StartNewFile().

◆ m_DepFiles

::std::set< OUString > SvIdlDataBase::m_DepFiles
protected

Definition at line 76 of file database.hxx.

Referenced by AddDepFile(), and WriteDepFile().

◆ nUniqueId

sal_uInt32 SvIdlDataBase::nUniqueId
private

Definition at line 64 of file database.hxx.

Referenced by GetUniqueId().

◆ nVerbosity

sal_uInt32 SvIdlDataBase::nVerbosity
private

Definition at line 65 of file database.hxx.

Referenced by Write().

◆ pIdTable

std::unique_ptr<SvStringHashTable> SvIdlDataBase::pIdTable
private

Definition at line 67 of file database.hxx.

Referenced by FindId(), and InsertId().

◆ sSlotMapFile

OUString SvIdlDataBase::sSlotMapFile

Definition at line 84 of file database.hxx.

Referenced by SvIdlDataBase(), and SvMetaType::WriteSfxItem().


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