#include <SysContent.h>
Public Types | |
| typedef StorageT::value_type | value_type |
| typedef StorageT::size_type | size_type |
| typedef StorageT::iterator | iterator |
| typedef StorageT::const_iterator | const_iterator |
Public Member Functions | |
| Writer () | |
| Default Ctor. | |
| std::ostream & | writeXml (std::ostream &str) const |
| Write collected data as XML. | |
Private Types | |
| typedef std::set< ResObject::constPtr > | StorageT |
Private Attributes | |
| RWCOW_pointer< Impl > | _pimpl |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const Writer &obj) |
| Stream output. | |
Classes | |
| class | Impl |
| |
<?xml version="1.0" encoding="UTF-8"?> <syscontent> <ident> <name>mycollection</name> <version epoch="0" ver="1.0" rel="1"/> <description>All the cool stuff...</description> <created>1165270942</created> </ident> <onsys> <entry kind="package" name="pax" epoch="0" ver="3.4" rel="12" arch="x86_64"/> <entry kind="product" name="SUSE_SLES" epoch="0" ver="10" arch="x86_64"/> <entry ... </onsys> </syscontent>
Definition at line 55 of file SysContent.h.
typedef std::set<ResObject::constPtr> zypp::syscontent::Writer::StorageT [private] |
Definition at line 57 of file SysContent.h.
| typedef StorageT::value_type zypp::syscontent::Writer::value_type |
Definition at line 59 of file SysContent.h.
| typedef StorageT::size_type zypp::syscontent::Writer::size_type |
Definition at line 60 of file SysContent.h.
| typedef StorageT::iterator zypp::syscontent::Writer::iterator |
Definition at line 61 of file SysContent.h.
| typedef StorageT::const_iterator zypp::syscontent::Writer::const_iterator |
Definition at line 62 of file SysContent.h.
| zypp::syscontent::Writer::Writer | ( | ) |
| const std::string & zypp::syscontent::Writer::name | ( | ) | const |
| Writer & zypp::syscontent::Writer::name | ( | const std::string & | val_r | ) |
| const Edition & zypp::syscontent::Writer::edition | ( | ) | const |
| const std::string & zypp::syscontent::Writer::description | ( | ) | const |
| Writer & zypp::syscontent::Writer::description | ( | const std::string & | val_r | ) |
| void zypp::syscontent::Writer::addInstalled | ( | const PoolItem & | obj_r | ) |
Collect currently installed PoolItem.
Definition at line 156 of file SysContent.cc.
References _pimpl, zypp::ResStatus::isInstalled(), zypp::PoolItem_Ref::resolvable(), and zypp::PoolItem_Ref::status().
| void zypp::syscontent::Writer::addIf | ( | const PoolItem & | obj_r | ) |
Collect PoolItem if it stays on the system.
I.e. it stays installed or is tagged to be installed. Solver selected items are omitted.
Definition at line 164 of file SysContent.cc.
References _pimpl, zypp::ResStatus::isBySolver(), zypp::ResStatus::isInstalled(), zypp::PoolItem_Ref::resolvable(), zypp::PoolItem_Ref::status(), and zypp::ResStatus::transacts().
| void zypp::syscontent::Writer::add | ( | const ResObject::constPtr & | obj_r | ) |
Unconditionally add this ResObject (or PoolItem).
Definition at line 173 of file SysContent.cc.
References _pimpl.
| bool zypp::syscontent::Writer::empty | ( | ) | const |
| Writer::size_type zypp::syscontent::Writer::size | ( | ) | const |
| Writer::const_iterator zypp::syscontent::Writer::begin | ( | ) | const |
Iterator to the begin of collected data.
Definition at line 182 of file SysContent.cc.
References _pimpl.
| Writer::const_iterator zypp::syscontent::Writer::end | ( | ) | const |
Iterator to the end of collected data.
Definition at line 185 of file SysContent.cc.
References _pimpl.
| std::ostream & zypp::syscontent::Writer::writeXml | ( | std::ostream & | str | ) | const |
Write collected data as XML.
Read them back using Reader.
Definition at line 188 of file SysContent.cc.
References _pimpl.
Referenced by operator<<().
| const std::string & zypp::syscontent::Writer::name | ( | ) | const |
| Writer & zypp::syscontent::Writer::name | ( | const std::string & | val_r | ) |
| const Edition & zypp::syscontent::Writer::edition | ( | ) | const |
| const std::string & zypp::syscontent::Writer::description | ( | ) | const |
| Writer & zypp::syscontent::Writer::description | ( | const std::string & | val_r | ) |
| void zypp::syscontent::Writer::addInstalled | ( | const PoolItem & | obj_r | ) |
Collect currently installed PoolItem.
Definition at line 156 of file SysContent.cc.
References _pimpl, zypp::ResStatus::isInstalled(), zypp::PoolItem_Ref::resolvable(), and zypp::PoolItem_Ref::status().
| void zypp::syscontent::Writer::addIf | ( | const PoolItem & | obj_r | ) |
Collect PoolItem if it stays on the system.
I.e. it stays installed or is tagged to be installed. Solver selected items are omitted.
Definition at line 164 of file SysContent.cc.
References _pimpl, zypp::ResStatus::isBySolver(), zypp::ResStatus::isInstalled(), zypp::PoolItem_Ref::resolvable(), zypp::PoolItem_Ref::status(), and zypp::ResStatus::transacts().
| void zypp::syscontent::Writer::add | ( | const ResObject::constPtr & | obj_r | ) |
Unconditionally add this ResObject (or PoolItem).
Definition at line 173 of file SysContent.cc.
References _pimpl.
| bool zypp::syscontent::Writer::empty | ( | ) | const |
| Writer::size_type zypp::syscontent::Writer::size | ( | ) | const |
| Writer::const_iterator zypp::syscontent::Writer::begin | ( | ) | const |
Iterator to the begin of collected data.
Definition at line 182 of file SysContent.cc.
References _pimpl.
| Writer::const_iterator zypp::syscontent::Writer::end | ( | ) | const |
Iterator to the end of collected data.
Definition at line 185 of file SysContent.cc.
References _pimpl.
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const Writer & | obj | |||
| ) | [related] |
RWCOW_pointer<Impl> zypp::syscontent::Writer::_pimpl [private] |
Definition at line 146 of file SysContent.h.
Referenced by add(), addIf(), addInstalled(), begin(), description(), edition(), empty(), end(), name(), size(), and writeXml().
1.5.0