zypp::parser::yum::FileReaderBase::BaseImpl::TagPath Struct Reference

Lightweight object for remembering currently processed tag. More...

#include <FileReaderBaseImpl.h>

List of all members.

Public Types

typedef std::list< TagTagList

Public Member Functions

void append (const Tag tag)
void remove ()
unsigned depth () const
Tag currentTag () const
bool contains (const Tag tag) const
std::string asString ()

Public Attributes

TagList path


Detailed Description

Lightweight object for remembering currently processed tag.

Usage:

Note:
the above works only if the path elements are unique. To support also non-unique elements, an equals() method will need to be implemented and used instead of contains().

tags you want to use with TagPath must be enumerated in Tag enum.

Definition at line 67 of file FileReaderBaseImpl.h.


Member Typedef Documentation

typedef std::list<Tag> zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::TagList

Definition at line 69 of file FileReaderBaseImpl.h.


Member Function Documentation

void zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::append ( const Tag  tag  )  [inline]

Definition at line 71 of file FileReaderBaseImpl.h.

References path.

Referenced by zypp::parser::yum::FileReaderBase::BaseImpl::tag().

void zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::remove (  )  [inline]

Definition at line 72 of file FileReaderBaseImpl.h.

References path.

Referenced by zypp::parser::yum::FileReaderBase::BaseImpl::toParentTag().

unsigned zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::depth (  )  const [inline]

Definition at line 73 of file FileReaderBaseImpl.h.

References path.

Referenced by asString().

Tag zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::currentTag (  )  const [inline]

Definition at line 74 of file FileReaderBaseImpl.h.

References path, and zypp::parser::yum::FileReaderBase::BaseImpl::tag_NONE.

bool zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::contains ( const Tag  tag  )  const [inline]

Definition at line 79 of file FileReaderBaseImpl.h.

References path.

Referenced by zypp::parser::yum::FileReaderBase::BaseImpl::isBeingProcessed().

string zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::asString (  ) 

Definition at line 468 of file FileReaderBaseImpl.cc.

References depth(), and path.


Member Data Documentation

TagList zypp::parser::yum::FileReaderBase::BaseImpl::TagPath::path

Definition at line 86 of file FileReaderBaseImpl.h.

Referenced by append(), asString(), contains(), currentTag(), depth(), and remove().


The documentation for this struct was generated from the following files:
Generated on Tue Sep 25 19:23:24 2007 for libzypp by  doxygen 1.5.3