LibreOffice Module xmlhelp (master) 1
|
#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< StringToDataMap > | m_pStringToDataMap |
std::unique_ptr< StringToValPosMap > | m_pStringToValPosMap |
css::uno::Reference< css::ucb::XSimpleFileAccess3 > | m_xSFA |
css::uno::Sequence< sal_Int8 > | m_aItData |
int | m_nItRead |
int | m_iItPos |
|
inline |
Definition at line 71 of file db.hxx.
References comphelper::isFileUrl(), and m_aFileURL.
|
delete |
void helpdatafileproxy::Hdf::createHashMap | ( | bool | bOptimizeForPerformance | ) |
Definition at line 81 of file db.cxx.
References aData, end, helpdatafileproxy::HDFData::getData(), implReadLenAndData(), m_aFileURL, m_pStringToDataMap, m_pStringToValPosMap, m_xSFA, pData, and releaseHashMap().
Referenced by chelp::Databases::getKeyword(), and getValueForKey().
Definition at line 243 of file db.cxx.
References implReadLenAndData(), m_aItData, m_iItPos, m_nItRead, and p.
Referenced by chelp::Databases::getKeyword().
bool helpdatafileproxy::Hdf::getValueForKey | ( | const OString & | rKey, |
HDFData & | rValue | ||
) |
Definition at line 152 of file db.cxx.
References aData, helpdatafileproxy::HDFData::copyToBuffer(), createHashMap(), Exception, m_aFileURL, m_pStringToDataMap, m_pStringToValPosMap, m_xSFA, and pData.
Referenced by chelp::KeywordInfo::KeywordElement::init(), chelp::URLParameter::readHelpDataFile(), and chelp::Databases::setActiveText().
|
staticprivate |
Definition at line 62 of file db.cxx.
References helpdatafileproxy::HDFData::copyToBuffer(), end, and pData.
Referenced by createHashMap(), and getNextKeyAndValue().
|
delete |
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().
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().
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().
|
private |
Definition at line 53 of file db.hxx.
Referenced by createHashMap(), getValueForKey(), Hdf(), and startIteration().
|
private |
Definition at line 60 of file db.hxx.
Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().
|
private |
Definition at line 62 of file db.hxx.
Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().
|
private |
Definition at line 61 of file db.hxx.
Referenced by getNextKeyAndValue(), startIteration(), and stopIteration().
|
private |
Definition at line 54 of file db.hxx.
Referenced by createHashMap(), getValueForKey(), and releaseHashMap().
|
private |
Definition at line 55 of file db.hxx.
Referenced by createHashMap(), getValueForKey(), and releaseHashMap().
|
private |
Definition at line 57 of file db.hxx.
Referenced by createHashMap(), getValueForKey(), and startIteration().