| |
\---------------------------------------------------------------------*/
-/** \file HistoryLogReader.h
+/** \file zypp/parser/HistoryLogReader.h
*
*/
-#ifndef ZYPP_HISTORYLOGREADER_H_
-#define ZYPP_HISTORYLOGREADER_H_
+#ifndef ZYPP_PARSER_HISTORYLOGREADER_H_
+#define ZYPP_PARSER_HISTORYLOGREADER_H_
#include "zypp/base/PtrTypes.h"
#include "zypp/ProgressData.h"
namespace parser
{ /////////////////////////////////////////////////////////////////
-
+ ///////////////////////////////////////////////////////////////////
+ /// \class HistoryLogReader
+ /// \brief Zypp history file parser
+ /// \ingroup g_ZyppHistory
+ /// \ingroup g_ZyppParser
+ ///
+ /// Reads a zypp history log file and calls the ProcessItem function
+ /// passed in the constructor for each item read.
+ ///
+ /// \code
+ /// struct HistoryItemCollector
+ /// {
+ /// vector<HistoryItem::Ptr> items;
+ ///
+ /// bool operator()( const HistoryItem::Ptr & item_ptr )
+ /// {
+ /// items.push_back(item_ptr);
+ /// return true;
+ /// }
+ /// }
+ /// ...
+ /// HistoryItemCollector ic;
+ /// HistoryLogReader reader("/var/log/zypp/history", boost::ref(ic));
+ ///
+ /// try
+ /// {
+ /// reader.readAll();
+ /// }
+ /// catch (const Exception & e)
+ /// {
+ /// cout << e.asUserHistory() << endl;
+ /// }
+ /// \endcode
/////////////////////////////////////////////////////////////////////
- //
- // CLASS NAME: HistoryLogReader
- //
- /**
- * Reads a zypp history log file and calls the ProcessItem function passed
- * in the constructor for each item read.
- *
- * Example:
- * <code>
- *
- * struct HistoryItemCollector
- * {
- * vector<HistoryItem::Ptr> items;
- *
- * bool processEntry( const HistoryItem::Ptr & item_ptr )
- * {
- * items.push_back(item_ptr);
- * return true;
- * }
- * }
- *
- * ...
- *
- * HistoryItemCollector ic;
- * HistoryLogReader reader("/var/log/zypp/history", boost::ref(ic));
- *
- * try
- * {
- * reader.readAll();
- * }
- * catch (const Exception & e)
- * {
- * cout << e.asUserHistory() << endl;
- * }
- *
- * </code>
- *
- * \see http://en.opensuse.org/Libzypp/Package_History
- */
class HistoryLogReader
{
public:
} // namespace zypp
///////////////////////////////////////////////////////////////////
-#endif /* ZYPP_HISTORYLOGREADER_H_ */
+#endif /* ZYPP_PARSER_HISTORYLOGREADER_H_ */