13 #ifndef ZYPP_HISTORYLOGDATA_H_ 14 #define ZYPP_HISTORYLOGDATA_H_ 25 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S" 71 const std::string &
asString(
bool pad =
false)
const;
105 typedef shared_ptr<HistoryLogData>
Ptr;
117 explicit HistoryLogData( FieldVector & fields_r, size_type expect_r = 2 );
138 static Ptr create( FieldVector & fields_r );
145 size_type size()
const;
148 const_iterator begin()
const;
151 const_iterator end()
const;
157 const std::string & optionalAt( size_type idx_r )
const;
160 {
return optionalAt( idx_r ); }
166 const std::string & at( size_type idx_r )
const;
199 typedef shared_ptr<HistoryLogDataInstall>
Ptr;
200 typedef shared_ptr<const HistoryLogDataInstall>
constPtr;
221 std::string name()
const;
224 std::string reqby()
const;
225 std::string repoAlias()
const;
227 std::string userdata()
const;
238 typedef shared_ptr<HistoryLogDataRemove>
Ptr;
239 typedef shared_ptr<const HistoryLogDataRemove>
constPtr;
258 std::string name()
const;
261 std::string reqby()
const;
262 std::string userdata()
const;
273 typedef shared_ptr<HistoryLogDataRepoAdd>
Ptr;
274 typedef shared_ptr<const HistoryLogDataRepoAdd>
constPtr;
291 std::string alias()
const;
293 std::string userdata()
const;
304 typedef shared_ptr<HistoryLogDataRepoRemove>
Ptr;
305 typedef shared_ptr<const HistoryLogDataRepoRemove>
constPtr;
321 std::string alias()
const;
322 std::string userdata()
const;
333 typedef shared_ptr<HistoryLogDataRepoAliasChange>
Ptr;
334 typedef shared_ptr<const HistoryLogDataRepoAliasChange>
constPtr;
351 std::string oldAlias()
const;
352 std::string newAlias()
const;
353 std::string userdata()
const;
364 typedef shared_ptr<HistoryLogDataRepoUrlChange>
Ptr;
365 typedef shared_ptr<const HistoryLogDataRepoUrlChange>
constPtr;
382 std::string alias()
const;
384 std::string userdata()
const;
396 typedef shared_ptr<HistoryLogDataStampCommand>
Ptr;
397 typedef shared_ptr<const HistoryLogDataStampCommand>
constPtr;
414 std::string executedBy()
const;
415 std::string command()
const;
416 std::string userdata()
const;
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
shared_ptr< HistoryLogDataStampCommand > Ptr
repository providing the package
shared_ptr< const HistoryLogDataStampCommand > constPtr
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
static const HistoryActionID STAMP_COMMAND
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.
A zypp history log line identifying the program that triggered the following commit.
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