NCBI C++ ToolKit
|
Search Toolkit Book for CRfamTool
#include <misc/xmlreaders/rfam_tool.hpp>
Public Member Functions | |
CRfamTool () | |
CRfamTool (const string &xmlfile) | |
bool | GetModelByAccession (const string &accession, CRfamModel &model) |
bool | GetModelByIdentification (const string &model_identification, CRfamModel &model) |
Static Private Member Functions | |
static bool | sx_GetModel (xml::node &node, CRfamModel &model) |
Private Attributes | |
xml::document | m_doc |
Definition at line 58 of file rfam_tool.hpp.
|
inline |
Definition at line 61 of file rfam_tool.hpp.
Definition at line 45 of file rfam_tool.cpp.
References m_doc, NULL, and xml::document::swap().
bool CRfamTool::GetModelByAccession | ( | const string & | accession, |
CRfamModel & | model | ||
) |
Definition at line 52 of file rfam_tool.cpp.
References xml::node_set::begin(), ERR_POST, Error(), xml::document::get_root_node(), m_doc, xml::node::run_xpath_query(), xml::node_set::size(), and sx_GetModel().
bool CRfamTool::GetModelByIdentification | ( | const string & | model_identification, |
CRfamModel & | model | ||
) |
Definition at line 70 of file rfam_tool.cpp.
References xml::node_set::begin(), ERR_POST, Error(), xml::document::get_root_node(), m_doc, xml::node::run_xpath_query(), xml::node_set::size(), and sx_GetModel().
|
staticprivate |
Definition at line 89 of file rfam_tool.cpp.
References CRfamModel::AddParameter(), NON_CONST_ITERATE, and result.
Referenced by GetModelByAccession(), and GetModelByIdentification().
|
private |
Definition at line 86 of file rfam_tool.hpp.
Referenced by CRfamTool(), GetModelByAccession(), and GetModelByIdentification().