IsisDlm
Version 0.2
|
Keyword construct handler. More...
#include <KeywordHandler.h>
Public Types | |
typedef PvlSpecs::PvlType | PvlType |
Public Member Functions | |
KeywordHandler () | |
KeywordHandler (const QString &path, const PvlType &type=PvlSpecs::Keyword, const bool &recurse=false) | |
KeywordHandler (const std::string &path, const PvlType &type=PvlSpecs::Keyword, const bool &recurse=false) | |
~KeywordHandler () | |
void | setRecursive () |
void | setNoRecursive () |
Isis::PvlKeyword | read (Isis::Pvl &pvl) const |
Static Public Member Functions | |
static Isis::PvlKeyword | read (const QString &path, Isis::Pvl &pvl) |
Private Types | |
typedef QList< PvlSpecs > | PvlElementList |
Private Member Functions | |
void | init (const QString &path, const PvlType &type) |
QVariant | find (Isis::PvlObject &pvl) const |
QVariant | findElement (const PvlElementList &plist, const QVariant &source) const |
Isis::PvlKeyword * | getKeyword (Isis::PvlContainer *pvl, const QString &name) const |
Private Attributes | |
QString | m_path |
PvlElementList | m_pvlParts |
bool | m_recursive |
Keyword construct handler.
typedef QList<PvlSpecs> ISISDLM::KeywordHandler::PvlElementList [private] |
ISISDLM::KeywordHandler::KeywordHandler | ( | const QString & | path, |
const PvlType & | type = PvlSpecs::Keyword , |
||
const bool & | recurse = false |
||
) |
ISISDLM::KeywordHandler::KeywordHandler | ( | const std::string & | path, |
const PvlType & | type = PvlSpecs::Keyword , |
||
const bool & | recurse = false |
||
) |
ISISDLM::KeywordHandler::~KeywordHandler | ( | ) | [inline] |
QVariant ISISDLM::KeywordHandler::find | ( | Isis::PvlObject & | pvl | ) | const [private] |
References findElement(), m_pvlParts, m_recursive, and ISISDLM::PvlSpecs::name().
QVariant ISISDLM::KeywordHandler::findElement | ( | const PvlElementList & | plist, |
const QVariant & | source | ||
) | const [private] |
References getKeyword(), ISISDLM::PvlSpecs::hasQualifiers(), ISISDLM::PvlSpecs::Keyword, ISISDLM::PvlSpecs::name(), and ISISDLM::PvlSpecs::type().
Referenced by find().
PvlKeyword * ISISDLM::KeywordHandler::getKeyword | ( | Isis::PvlContainer * | pvl, |
const QString & | name | ||
) | const [private] |
Referenced by findElement().
void ISISDLM::KeywordHandler::init | ( | const QString & | path, |
const PvlType & | type | ||
) | [private] |
References ISISDLM::PvlSpecs::Container, m_path, and m_pvlParts.
Referenced by KeywordHandler().
Isis::PvlKeyword ISISDLM::KeywordHandler::read | ( | Isis::Pvl & | pvl | ) | const |
Referenced by ISISDLM::isis_get_key(), and ISISDLM::isis_query_key().
static Isis::PvlKeyword ISISDLM::KeywordHandler::read | ( | const QString & | path, |
Isis::Pvl & | pvl | ||
) | [static] |
References m_recursive.
References m_recursive.
QString ISISDLM::KeywordHandler::m_path [private] |
Referenced by init().
bool ISISDLM::KeywordHandler::m_recursive [private] |
Referenced by find(), setNoRecursive(), and setRecursive().