libzypp 17.31.23
zypp::xml::ParseDef::Impl Class Reference

ParseDef implementation. More...

Public Types

typedef shared_ptr< ImplImplPtr
typedef std::map< std::string, ImplPtrSubNodes

Public Member Functions

 Impl (const std::string &name_r, Mode mode_r, const shared_ptr< ParseDefConsume > &target_r=shared_ptr< ParseDefConsume >())
 ~Impl ()
bool isOptional () const
bool isMandatory () const
bool singleDef () const
bool multiDef () const
void addNode (const ImplPtr &subnode_r)
ImplPtr getNode (const std::string &name_r) const
void take (Reader &reader_r)

Public Attributes

std::string _name
Mode _mode
DefaultIntegral< unsigned, 0 > _visited
SubNodes _subnodes
ParseDefImplConsume _callback
DefaultIntegral< int,-1 > _parseDepth

Private Member Functions

bool skipNode (Reader &reader_r)
 Skip the current node.
std::string exstr (const std::string &what_r, const Impl &impl_r) const
std::string exstr (const std::string &what_r, const Impl &impl_r, const Reader &reader_r) const


std::ostream & operator<< (std::ostream &str, const ParseDef::Impl &obj)

Detailed Description

ParseDef implementation.

Check using share_ptr_from_this for parent in addNode.

Definition at line 94 of file

Member Typedef Documentation

◆ ImplPtr

Definition at line 98 of file

◆ SubNodes

typedef std::map<std::string, ImplPtr> zypp::xml::ParseDef::Impl::SubNodes

Definition at line 99 of file

Constructor & Destructor Documentation

◆ Impl()

zypp::xml::ParseDef::Impl::Impl ( const std::string &  name_r,
Mode  mode_r,
const shared_ptr< ParseDefConsume > &  target_r = shared_ptr<ParseDefConsume>() 

Definition at line 102 of file

◆ ~Impl()

zypp::xml::ParseDef::Impl::~Impl ( )

Definition at line 111 of file

Member Function Documentation

◆ isOptional()

bool zypp::xml::ParseDef::Impl::isOptional ( ) const

Definition at line 119 of file

◆ isMandatory()

bool zypp::xml::ParseDef::Impl::isMandatory ( ) const

Definition at line 122 of file

◆ singleDef()

bool zypp::xml::ParseDef::Impl::singleDef ( ) const

Definition at line 125 of file

◆ multiDef()

bool zypp::xml::ParseDef::Impl::multiDef ( ) const

Definition at line 128 of file

◆ addNode()

void zypp::xml::ParseDef::Impl::addNode ( const ImplPtr subnode_r)

Definition at line 186 of file

◆ getNode()

ImplPtr zypp::xml::ParseDef::Impl::getNode ( const std::string &  name_r) const

Definition at line 134 of file

◆ take()

void zypp::xml::ParseDef::Impl::take ( Reader reader_r)

Definition at line 207 of file

◆ skipNode()

bool zypp::xml::ParseDef::Impl::skipNode ( xml::Reader reader_r)

Skip the current node.

Current node must be XML_READER_TYPE_ELEMENT.
At the corresponding end node. (XML_READER_TYPE_END_ELEMENT or atill at the same node, if it'a an empty element <node />).
last call to xml::Reader::nextNode.
ParseDefValidateExceptionif no matching end node found.

Definition at line 329 of file

◆ exstr() [1/2]

std::string zypp::xml::ParseDef::Impl::exstr ( const std::string &  what_r,
const Impl impl_r 
) const

Definition at line 155 of file

◆ exstr() [2/2]

std::string zypp::xml::ParseDef::Impl::exstr ( const std::string &  what_r,
const Impl impl_r,
const Reader reader_r 
) const

Definition at line 161 of file

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  str,
const ParseDef::Impl obj 

Definition at line 348 of file

Member Data Documentation

◆ _name

std::string zypp::xml::ParseDef::Impl::_name

Definition at line 169 of file

◆ _mode

Mode zypp::xml::ParseDef::Impl::_mode

Definition at line 170 of file

◆ _visited

DefaultIntegral<unsigned,0> zypp::xml::ParseDef::Impl::_visited

Definition at line 171 of file

◆ _parent

Impl* zypp::xml::ParseDef::Impl::_parent

Definition at line 173 of file

◆ _subnodes

SubNodes zypp::xml::ParseDef::Impl::_subnodes

Definition at line 174 of file

◆ _callback

ParseDefImplConsume zypp::xml::ParseDef::Impl::_callback

Definition at line 175 of file

◆ _parseDepth

DefaultIntegral<int,-1> zypp::xml::ParseDef::Impl::_parseDepth

Definition at line 177 of file

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