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

#include <db.hxx>

Public Member Functions

 Hdf (OUString aFileURL, css::uno::Reference< css::ucb::XSimpleFileAccess3 > xSFA)
 
 ~Hdf ()
 
void createHashMap (bool bOptimizeForPerformance)
 
void releaseHashMap ()
 
bool getValueForKey (const OString &rKey, HDFData &rValue)
 
bool startIteration ()
 
bool getNextKeyAndValue (HDFData &rKey, HDFData &rValue)
 
void stopIteration ()
 
 Hdf (const Hdf &)=delete
 
void operator= (const Hdf &)=delete
 

Static Private Member Functions

static bool implReadLenAndData (const char *pData, char const *end, int &riPos, HDFData &rValue)
 

Private Attributes

OUString m_aFileURL
 
std::unique_ptr< StringToDataMapm_pStringToDataMap
 
std::unique_ptr< StringToValPosMapm_pStringToValPosMap
 
css::uno::Reference< css::ucb::XSimpleFileAccess3 > m_xSFA
 
css::uno::Sequence< sal_Int8m_aItData
 
int m_nItRead
 
int m_iItPos
 

Detailed Description

Definition at line 51 of file db.hxx.

Constructor & Destructor Documentation

◆ Hdf() [1/2]

helpdatafileproxy::Hdf::Hdf ( OUString  aFileURL,
css::uno::Reference< css::ucb::XSimpleFileAccess3 >  xSFA 
)
inline

Definition at line 71 of file db.hxx.

References comphelper::isFileUrl(), and m_aFileURL.

◆ ~Hdf()

helpdatafileproxy::Hdf::~Hdf ( )

Definition at line 148 of file db.cxx.

◆ Hdf() [2/2]

helpdatafileproxy::Hdf::Hdf ( const Hdf )
delete

Member Function Documentation

◆ createHashMap()

void helpdatafileproxy::Hdf::createHashMap ( bool  bOptimizeForPerformance)

◆ getNextKeyAndValue()

bool helpdatafileproxy::Hdf::getNextKeyAndValue ( HDFData rKey,
HDFData rValue 
)

Definition at line 243 of file db.cxx.

References implReadLenAndData(), m_aItData, m_iItPos, m_nItRead, and p.

Referenced by chelp::Databases::getKeyword().

◆ getValueForKey()

bool helpdatafileproxy::Hdf::getValueForKey ( const OString &  rKey,
HDFData rValue 
)

◆ implReadLenAndData()

bool helpdatafileproxy::Hdf::implReadLenAndData ( const char *  pData,
char const *  end,
int riPos,
HDFData rValue 
)
staticprivate

Definition at line 62 of file db.cxx.

References helpdatafileproxy::HDFData::copyToBuffer(), end, and pData.

Referenced by createHashMap(), and getNextKeyAndValue().

◆ operator=()

void helpdatafileproxy::Hdf::operator= ( const Hdf )
delete

◆ releaseHashMap()

void helpdatafileproxy::Hdf::releaseHashMap ( )

Definition at line 141 of file db.cxx.

References m_pStringToDataMap, and m_pStringToValPosMap.

Referenced by createHashMap(), and chelp::Databases::getKeyword().

◆ startIteration()

bool helpdatafileproxy::Hdf::startIteration ( )

Definition at line 219 of file db.cxx.

References m_aFileURL, m_aItData, m_iItPos, m_nItRead, m_xSFA, and stopIteration().

Referenced by chelp::Databases::getKeyword().

◆ stopIteration()

void helpdatafileproxy::Hdf::stopIteration ( )

Definition at line 260 of file db.cxx.

References m_aItData, m_iItPos, and m_nItRead.

Referenced by chelp::Databases::getKeyword(), and startIteration().

Member Data Documentation

◆ m_aFileURL

OUString helpdatafileproxy::Hdf::m_aFileURL
private

Definition at line 53 of file db.hxx.

Referenced by createHashMap(), getValueForKey(), Hdf(), and startIteration().

◆ m_aItData

css::uno::Sequence< sal_Int8 > helpdatafileproxy::Hdf::m_aItData
private

Definition at line 60 of file db.hxx.

Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().

◆ m_iItPos

int helpdatafileproxy::Hdf::m_iItPos
private

Definition at line 62 of file db.hxx.

Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().

◆ m_nItRead

int helpdatafileproxy::Hdf::m_nItRead
private

Definition at line 61 of file db.hxx.

Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().

◆ m_pStringToDataMap

std::unique_ptr<StringToDataMap> helpdatafileproxy::Hdf::m_pStringToDataMap
private

Definition at line 54 of file db.hxx.

Referenced by createHashMap(), getValueForKey(), and releaseHashMap().

◆ m_pStringToValPosMap

std::unique_ptr<StringToValPosMap> helpdatafileproxy::Hdf::m_pStringToValPosMap
private

Definition at line 55 of file db.hxx.

Referenced by createHashMap(), getValueForKey(), and releaseHashMap().

◆ m_xSFA

css::uno::Reference< css::ucb::XSimpleFileAccess3 > helpdatafileproxy::Hdf::m_xSFA
private

Definition at line 57 of file db.hxx.

Referenced by createHashMap(), getValueForKey(), and startIteration().


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