13 #ifndef ZYPP_HISTORYLOGDATA_H_ 14 #define ZYPP_HISTORYLOGDATA_H_ 25 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S" 69 const std::string &
asString(
bool pad =
false)
const;
103 typedef shared_ptr<HistoryLogData>
Ptr;
115 explicit HistoryLogData( FieldVector & fields_r, size_type expect_r = 2 );
136 static Ptr create( FieldVector & fields_r );
143 size_type size()
const;
146 const_iterator begin()
const;
149 const_iterator end()
const;
155 const std::string & optionalAt( size_type idx_r )
const;
158 {
return optionalAt( idx_r ); }
164 const std::string & at( size_type idx_r )
const;
197 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
198 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
219 std::string name()
const;
222 std::string reqby()
const;
223 std::string repoAlias()
const;
225 std::string userdata()
const;
236 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
237 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
256 std::string name()
const;
259 std::string reqby()
const;
260 std::string userdata()
const;
271 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
272 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
289 std::string alias()
const;
291 std::string userdata()
const;
302 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
303 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
319 std::string alias()
const;
320 std::string userdata()
const;
331 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
332 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
349 std::string oldAlias()
const;
350 std::string newAlias()
const;
351 std::string userdata()
const;
362 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
363 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
380 std::string alias()
const;
382 std::string userdata()
const;
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
repository providing the package
std::vector< std::string > FieldVector
shared_ptr< const HistoryLogDataRepoAdd > constPtr
FieldVector::size_type size_type
String related utilities and Regular expression matching.
static const HistoryActionID REMOVE
static const HistoryActionID NONE
Edition represents [epoch:]version[-release]
RWCOW_pointer< Impl > _pimpl
Implementation class.
Index
< indices of known fields
A zypp history log line for a removed packge.
static const HistoryActionID REPO_CHANGE_ALIAS
static const HistoryActionID INSTALL
FieldVector::const_iterator const_iterator
Store and operate on date (time_t).
A zypp history log line for an installed packaged.
requested by (user, pid:appname, or empty (solver))
shared_ptr< HistoryLogDataInstall > Ptr
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
shared_ptr< HistoryLogDataRepoAdd > Ptr
const std::string & operator[](size_type idx_r) const
A zypp history log line for a repo url change.
const std::string & asString(bool pad=false) const
Provides API related macros.
static const HistoryActionID REPO_REMOVE
static const HistoryActionID REPO_CHANGE_URL
shared_ptr< HistoryLogDataRemove > Ptr
A zypp history log line for a removed repository.
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
A zypp history log line split into fieldsEach valid history log line starts with a date and HistoryAc...
static HistoryActionID::ID parse(const std::string &strval_r)
requested by (user, pid:appname, or empty (solver))
A zypp history log line for a repo alias change.
static const HistoryActionID REPO_ADD
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
shared_ptr< const HistoryLogDataInstall > constPtr
A zypp history log line for an added repository.
Enumeration of known history actions.
shared_ptr< const HistoryLogDataRepoRemove > constPtr
Easy-to use interface to the ZYPP dependency resolver.
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogData > Ptr
shared_ptr< const HistoryLogDataRemove > constPtr
shared_ptr< const HistoryLogData > constPtr
std::ostream & operator<<(std::ostream &str, const HistoryActionID &id)
shared_ptr< HistoryLogDataRepoRemove > Ptr