libzypp  17.23.5
HistoryLogData.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
13 #ifndef ZYPP_HISTORYLOGDATA_H_
14 #define ZYPP_HISTORYLOGDATA_H_
15 
16 #include <iosfwd>
17 
18 #include <zypp/APIConfig.h>
19 #include <zypp/Date.h>
20 #include <zypp/Edition.h>
21 #include <zypp/Arch.h>
22 #include <zypp/CheckSum.h>
23 #include <zypp/Url.h>
24 #include <zypp/Patch.h>
25 
26 #define HISTORY_LOG_DATE_FORMAT "%Y-%m-%d %H:%M:%S"
27 
29 namespace zypp
30 {
38  {
39  static const HistoryActionID NONE;
40 
41  static const HistoryActionID INSTALL;
42  static const HistoryActionID REMOVE;
43  static const HistoryActionID REPO_ADD;
49 
50  enum ID
51  {
53 
62  };
63 
65 
66  HistoryActionID(ID id) : _id(id) {}
67 
68  explicit HistoryActionID(const std::string & strval_r);
69 
70  ID toEnum() const { return _id; }
71 
72  static HistoryActionID::ID parse(const std::string & strval_r);
73 
74  const std::string & asString(bool pad = false) const;
75 
76  private:
78  };
79 
81  inline bool operator==( const HistoryActionID & lhs, const HistoryActionID & rhs )
82  { return lhs.toEnum() == rhs.toEnum(); }
83 
85  inline bool operator!=( const HistoryActionID & lhs, const HistoryActionID & rhs )
86  { return lhs.toEnum() != rhs.toEnum(); }
87 
89  std::ostream & operator << (std::ostream & str, const HistoryActionID & id);
91 
106  {
107  public:
108  typedef shared_ptr<HistoryLogData> Ptr;
109  typedef shared_ptr<const HistoryLogData> constPtr;
110 
111  typedef std::vector<std::string> FieldVector;
113  typedef FieldVector::const_iterator const_iterator;
114 
115  public:
120  explicit HistoryLogData( FieldVector & fields_r, size_type expect_r = 2 );
121 
126  HistoryLogData( FieldVector & fields_r, HistoryActionID action_r, size_type expect_r = 2 );
127 
129  virtual ~HistoryLogData();
130 
141  static Ptr create( FieldVector & fields_r );
142 
143  public:
145  bool empty() const;
146 
148  size_type size() const;
149 
151  const_iterator begin() const;
152 
154  const_iterator end() const;
155 
160  const std::string & optionalAt( size_type idx_r ) const;
162  const std::string & operator[]( size_type idx_r ) const
163  { return optionalAt( idx_r ); }
164 
169  const std::string & at( size_type idx_r ) const;
170 
171  public:
172  enum Index
173  {
176  };
177 
178  public:
179  Date date() const;
180  HistoryActionID action() const;
181 
182  public:
183  class Impl;
184  private:
186  protected:
188  };
189 
191  std::ostream & operator<<( std::ostream & str, const HistoryLogData & obj );
193 
200  {
201  public:
202  typedef shared_ptr<HistoryLogDataInstall> Ptr;
203  typedef shared_ptr<const HistoryLogDataInstall> constPtr;
207  HistoryLogDataInstall( FieldVector & fields_r );
208 
209  public:
210  enum Index
211  {
221  };
222 
223  public:
224  std::string name() const;
225  Edition edition() const;
226  Arch arch() const;
227  std::string reqby() const;
228  std::string repoAlias() const;
229  CheckSum checksum() const;
230  std::string userdata() const;
231  };
232 
233  //PATCH SEVERITY CATEGORY OLDSTATE NEWSTATE
240  {
241  public:
242  typedef shared_ptr<HistoryLogPatchStateChange> Ptr;
243  typedef shared_ptr<const HistoryLogPatchStateChange> constPtr;
248 
249  public:
250  enum Index
251  {
263  };
264 
265  public:
266  std::string name() const;
267  Edition edition() const;
268  Arch arch() const;
269  std::string repoAlias() const;
271  Patch::Category category() const;
272  std::string oldstate() const;
273  std::string newstate() const;
274  std::string userdata() const;
275  };
276 
277 
284  {
285  public:
286  typedef shared_ptr<HistoryLogDataRemove> Ptr;
287  typedef shared_ptr<const HistoryLogDataRemove> constPtr;
291  HistoryLogDataRemove( FieldVector & fields_r );
292 
293  public:
294  enum Index
295  {
303  };
304 
305  public:
306  std::string name() const;
307  Edition edition() const;
308  Arch arch() const;
309  std::string reqby() const;
310  std::string userdata() const;
311  };
312 
319  {
320  public:
321  typedef shared_ptr<HistoryLogDataRepoAdd> Ptr;
322  typedef shared_ptr<const HistoryLogDataRepoAdd> constPtr;
326  HistoryLogDataRepoAdd( FieldVector & fields_r );
327 
328  public:
329  enum Index
330  {
336  };
337 
338  public:
339  std::string alias() const;
340  Url url() const;
341  std::string userdata() const;
342  };
343 
350  {
351  public:
352  typedef shared_ptr<HistoryLogDataRepoRemove> Ptr;
353  typedef shared_ptr<const HistoryLogDataRepoRemove> constPtr;
358 
359  public:
360  enum Index
361  {
366  };
367 
368  public:
369  std::string alias() const;
370  std::string userdata() const;
371  };
372 
379  {
380  public:
381  typedef shared_ptr<HistoryLogDataRepoAliasChange> Ptr;
382  typedef shared_ptr<const HistoryLogDataRepoAliasChange> constPtr;
387 
388  public:
389  enum Index
390  {
396  };
397 
398  public:
399  std::string oldAlias() const;
400  std::string newAlias() const;
401  std::string userdata() const;
402  };
403 
410  {
411  public:
412  typedef shared_ptr<HistoryLogDataRepoUrlChange> Ptr;
413  typedef shared_ptr<const HistoryLogDataRepoUrlChange> constPtr;
418 
419  public:
420  enum Index
421  {
427  };
428 
429  public:
430  std::string alias() const;
431  Url newUrl() const;
432  std::string userdata() const;
433  };
434 
442  {
443  public:
444  typedef shared_ptr<HistoryLogDataStampCommand> Ptr;
445  typedef shared_ptr<const HistoryLogDataStampCommand> constPtr;
450 
451  public:
452  enum Index
453  {
459  };
460 
461  public:
462  std::string executedBy() const;
463  std::string command() const;
464  std::string userdata() const;
465  };
466 
467 } // namespace zypp
469 #endif /* ZYPP_HISTORYLOGDATA_H_ */
zypp::HistoryLogDataInstall
A zypp history log line for an installed packaged.
Definition: HistoryLogData.h:199
zypp::HistoryLogDataInstall::CHEKSUM_INDEX
package checksum
Definition: HistoryLogData.h:219
zypp::HistoryLogData::constPtr
shared_ptr< const HistoryLogData > constPtr
Definition: HistoryLogData.h:109
zypp::HistoryActionID::NONE_e
Definition: HistoryLogData.h:52
zypp::HistoryLogDataRepoAliasChange::ACTION_INDEX
Definition: HistoryLogData.h:392
Edition.h
zypp::HistoryLogDataRepoAdd::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:291
zypp::HistoryLogData::HistoryLogData
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:172
zypp::HistoryActionID::HistoryActionID
HistoryActionID(ID id)
Definition: HistoryLogData.h:66
zypp::HistoryLogDataRepoRemove
A zypp history log line for a removed repository.
Definition: HistoryLogData.h:349
zypp::HistoryLogDataRepoRemove::constPtr
shared_ptr< const HistoryLogDataRepoRemove > constPtr
Definition: HistoryLogData.h:353
zypp::HistoryLogDataStampCommand::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:330
zypp::HistoryLogPatchStateChange::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:262
zypp::HistoryLogData::date
Date date() const
date
Definition: HistoryLogData.cc:231
zypp::HistoryLogDataRepoAliasChange::NEWALIAS_INDEX
repositories new alias
Definition: HistoryLogData.h:394
zypp::HistoryLogPatchStateChange::oldstate
std::string oldstate() const
Definition: HistoryLogData.cc:267
zypp::HistoryActionID::asString
const std::string & asString(bool pad=false) const
Definition: HistoryLogData.cc:76
zypp::HistoryActionID::REPO_CHANGE_ALIAS
static const HistoryActionID REPO_CHANGE_ALIAS
Definition: HistoryLogData.h:45
zypp::HistoryLogDataRepoAdd::constPtr
shared_ptr< const HistoryLogDataRepoAdd > constPtr
Definition: HistoryLogData.h:322
zypp::HistoryLogDataRepoAliasChange::DATE_INDEX
Definition: HistoryLogData.h:391
zypp::HistoryLogDataInstall::REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
Definition: HistoryLogData.h:217
zypp::HistoryLogDataInstall::reqby
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
Definition: HistoryLogData.cc:250
zypp::HistoryLogData::size_type
FieldVector::size_type size_type
Definition: HistoryLogData.h:112
zypp::HistoryLogData::_pimpl
RWCOW_pointer< Impl > _pimpl
Implementation class.
Definition: HistoryLogData.h:183
zypp::HistoryLogDataRemove::arch
Arch arch() const
package architecture
Definition: HistoryLogData.cc:279
zypp::HistoryLogData::Index
Index
< indices of known fields
Definition: HistoryLogData.h:172
zypp::HistoryLogDataInstall::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:220
zypp::HistoryLogDataStampCommand::COMMAND_INDEX
the commandline executed
Definition: HistoryLogData.h:457
zypp::HistoryLogData::FieldVector
std::vector< std::string > FieldVector
Definition: HistoryLogData.h:111
zypp::HistoryLogDataRemove::edition
Edition edition() const
package edition
Definition: HistoryLogData.cc:278
zypp::HistoryLogDataRepoAdd::url
Url url() const
repository url
Definition: HistoryLogData.cc:290
zypp::HistoryLogData::size
size_type size() const
Number of fields in vector.
Definition: HistoryLogData.cc:212
zypp::CheckSum
Definition: CheckSum.h:33
zypp::HistoryActionID::REPO_ADD_e
Definition: HistoryLogData.h:56
zypp::HistoryLogDataRemove::HistoryLogDataRemove
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:274
zypp::HistoryActionID::PATCH_STATE_CHANGE
static const HistoryActionID PATCH_STATE_CHANGE
Definition: HistoryLogData.h:48
zypp::HistoryLogDataInstall::repoAlias
std::string repoAlias() const
repository providing the package
Definition: HistoryLogData.cc:251
zypp::HistoryLogDataRepoAdd::ACTION_INDEX
Definition: HistoryLogData.h:332
zypp::HistoryLogDataRemove
A zypp history log line for a removed packge.
Definition: HistoryLogData.h:283
zypp::HistoryLogDataStampCommand::constPtr
shared_ptr< const HistoryLogDataStampCommand > constPtr
Definition: HistoryLogData.h:445
zypp::HistoryLogDataStampCommand::Ptr
shared_ptr< HistoryLogDataStampCommand > Ptr
Definition: HistoryLogData.h:444
zypp::HistoryActionID::REPO_ADD
static const HistoryActionID REPO_ADD
Definition: HistoryLogData.h:43
zypp::HistoryLogPatchStateChange::severity
Patch::SeverityFlag severity() const
Definition: HistoryLogData.cc:265
zypp::Edition
Edition represents [epoch:]version[-release]
Definition: Edition.h:60
zypp::HistoryLogPatchStateChange::CATEGORY_INDEX
patch category
Definition: HistoryLogData.h:259
zypp::HistoryActionID::REPO_CHANGE_URL
static const HistoryActionID REPO_CHANGE_URL
Definition: HistoryLogData.h:46
zypp::HistoryLogDataInstall::NAME_INDEX
package name
Definition: HistoryLogData.h:214
CheckSum.h
zypp::HistoryLogPatchStateChange::category
Patch::Category category() const
Definition: HistoryLogData.cc:266
zypp::HistoryLogDataRepoAliasChange::HistoryLogDataRepoAliasChange
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:305
zypp::HistoryLogDataRemove::name
std::string name() const
package name
Definition: HistoryLogData.cc:277
zypp::HistoryLogDataStampCommand::ACTION_INDEX
Definition: HistoryLogData.h:455
zypp::HistoryLogData::Impl
Definition: HistoryLogData.cc:108
zypp::HistoryLogPatchStateChange::Ptr
shared_ptr< HistoryLogPatchStateChange > Ptr
Definition: HistoryLogData.h:242
zypp::HistoryLogData
A zypp history log line split into fields.
Definition: HistoryLogData.h:105
zypp::HistoryLogDataRepoAdd::alias
std::string alias() const
repository alias
Definition: HistoryLogData.cc:289
zypp::HistoryLogData::const_iterator
FieldVector::const_iterator const_iterator
Definition: HistoryLogData.h:113
zypp::HistoryLogData::begin
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
Definition: HistoryLogData.cc:215
zypp::HistoryActionID::REPO_REMOVE_e
Definition: HistoryLogData.h:57
zypp::HistoryLogDataRepoUrlChange::ALIAS_INDEX
repository alias
Definition: HistoryLogData.h:424
zypp::HistoryLogDataRepoAdd::URL_INDEX
repository url
Definition: HistoryLogData.h:334
zypp::HistoryLogData::operator[]
const std::string & operator[](size_type idx_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: HistoryLogData.h:162
zypp::HistoryLogDataStampCommand::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:458
zypp::HistoryLogData::~HistoryLogData
virtual ~HistoryLogData()
Dtor.
Definition: HistoryLogData.cc:180
zypp::HistoryLogDataRepoRemove::alias
std::string alias() const
repository alias
Definition: HistoryLogData.cc:299
zypp::HistoryLogDataRepoUrlChange
A zypp history log line for a repo url change.
Definition: HistoryLogData.h:409
zypp::HistoryLogDataInstall::ACTION_INDEX
Definition: HistoryLogData.h:213
zypp::Arch
Architecture.
Definition: Arch.h:36
zypp::HistoryLogPatchStateChange::ARCH_INDEX
patch architecture
Definition: HistoryLogData.h:256
zypp::HistoryLogDataRepoAliasChange::oldAlias
std::string oldAlias() const
repositories old alias
Definition: HistoryLogData.cc:308
zypp::HistoryLogDataInstall::edition
Edition edition() const
package edition
Definition: HistoryLogData.cc:248
zypp::Patch::SeverityFlag
SeverityFlag
Possible severity levels for (security) patches.
Definition: Patch.h:76
zypp::HistoryLogDataRepoRemove::ALIAS_INDEX
repository alias
Definition: HistoryLogData.h:364
zypp::HistoryLogPatchStateChange::edition
Edition edition() const
package edition
Definition: HistoryLogData.cc:262
zypp::HistoryLogDataRepoUrlChange::newUrl
Url newUrl() const
repositories new url
Definition: HistoryLogData.cc:319
zypp::HistoryLogDataRepoAdd::Ptr
shared_ptr< HistoryLogDataRepoAdd > Ptr
Definition: HistoryLogData.h:321
zypp::HistoryLogDataRemove::EDITION_INDEX
package edition
Definition: HistoryLogData.h:299
zypp::HistoryLogPatchStateChange::constPtr
shared_ptr< const HistoryLogPatchStateChange > constPtr
Definition: HistoryLogData.h:243
zypp::HistoryLogDataRepoRemove::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:300
zypp::HistoryLogDataInstall::Ptr
shared_ptr< HistoryLogDataInstall > Ptr
Definition: HistoryLogData.h:202
zypp::HistoryLogDataRepoUrlChange::ACTION_INDEX
Definition: HistoryLogData.h:423
zypp::HistoryLogDataRepoAliasChange::constPtr
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
Definition: HistoryLogData.h:382
zypp::HistoryLogDataRemove::NAME_INDEX
package name
Definition: HistoryLogData.h:298
zypp::HistoryActionID::NONE
static const HistoryActionID NONE
Definition: HistoryLogData.h:39
zypp::HistoryLogPatchStateChange::arch
Arch arch() const
package architecture
Definition: HistoryLogData.cc:263
Url.h
zypp::HistoryLogData::end
const_iterator end() const
Iterator pointing behind the last element in vector.
Definition: HistoryLogData.cc:218
zypp::HistoryActionID::operator!=
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
Definition: HistoryLogData.h:85
zypp::HistoryLogPatchStateChange::SEVERITY_INDEX
patch severity
Definition: HistoryLogData.h:258
Arch.h
zypp::HistoryActionID::REMOVE
static const HistoryActionID REMOVE
Definition: HistoryLogData.h:42
zypp::HistoryLogPatchStateChange::repoAlias
std::string repoAlias() const
repository providing the package
Definition: HistoryLogData.cc:264
zypp::HistoryLogPatchStateChange::REPOALIAS_INDEX
repository providing the patch
Definition: HistoryLogData.h:257
zypp::HistoryLogDataRepoAdd::HistoryLogDataRepoAdd
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:286
zypp::HistoryLogDataRemove::REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
Definition: HistoryLogData.h:301
zypp::HistoryLogDataRepoUrlChange::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:426
zypp::HistoryLogDataStampCommand
A zypp history log line identifying the program that triggered the following commit.
Definition: HistoryLogData.h:441
zypp::HistoryLogDataRepoAliasChange::OLDALIAS_INDEX
repositories old alias
Definition: HistoryLogData.h:393
zypp::HistoryLogPatchStateChange::NEWSTATE_INDEX
the state of the patch after the change
Definition: HistoryLogData.h:261
zypp::HistoryLogData::DATE_INDEX
date
Definition: HistoryLogData.h:174
zypp::HistoryLogDataRemove::reqby
std::string reqby() const
requested by (user@hostname, pid:appname, or empty (solver))
Definition: HistoryLogData.cc:280
zypp::HistoryLogData::action
HistoryActionID action() const
HistoryActionID (or NONE_e if unknown)
Definition: HistoryLogData.cc:234
zypp::Patch::Category
Category
Definition: Patch.h:48
zypp::HistoryLogPatchStateChange::EDITION_INDEX
patch edition
Definition: HistoryLogData.h:255
zypp::HistoryLogDataRepoUrlChange::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:320
zypp::HistoryLogPatchStateChange::HistoryLogPatchStateChange
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:258
zypp::HistoryActionID::parse
static HistoryActionID::ID parse(const std::string &strval_r)
Definition: HistoryLogData.cc:49
zypp::HistoryActionID::REPO_CHANGE_ALIAS_e
Definition: HistoryLogData.h:58
zypp::HistoryLogDataRepoAdd::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:335
Date.h
zypp::HistoryActionID::toEnum
ID toEnum() const
Definition: HistoryLogData.h:70
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::HistoryLogDataInstall::HistoryLogDataInstall
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:244
zypp::HistoryLogDataRepoUrlChange::HistoryLogDataRepoUrlChange
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:315
zypp::HistoryLogDataInstall::DATE_INDEX
Definition: HistoryLogData.h:212
zypp::HistoryLogDataRepoUrlChange::constPtr
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
Definition: HistoryLogData.h:413
zypp::HistoryLogDataRemove::ARCH_INDEX
package architecture
Definition: HistoryLogData.h:300
zypp::HistoryActionID::REMOVE_e
Definition: HistoryLogData.h:55
zypp::HistoryLogDataRepoAdd::ALIAS_INDEX
repository alias
Definition: HistoryLogData.h:333
zypp::HistoryActionID::PATCH_STATE_CHANGE_e
Definition: HistoryLogData.h:61
zypp::HistoryActionID::ID
ID
Definition: HistoryLogData.h:50
zypp::HistoryLogDataRepoAdd
A zypp history log line for an added repository.
Definition: HistoryLogData.h:318
zypp::HistoryActionID::HistoryActionID
HistoryActionID()
Definition: HistoryLogData.h:64
zypp::HistoryLogDataRepoUrlChange::Ptr
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
Definition: HistoryLogData.h:412
zypp::HistoryLogDataRepoAdd::DATE_INDEX
Definition: HistoryLogData.h:331
zypp::HistoryActionID::REPO_REMOVE
static const HistoryActionID REPO_REMOVE
Definition: HistoryLogData.h:44
zypp::HistoryLogPatchStateChange::OLDSTATE_INDEX
the state of the patch before the change
Definition: HistoryLogData.h:260
zypp::HistoryLogDataRepoUrlChange::NEWURL_INDEX
repositories new url
Definition: HistoryLogData.h:425
zypp::HistoryLogDataInstall::REPOALIAS_INDEX
repository providing the package
Definition: HistoryLogData.h:218
zypp::HistoryLogDataRemove::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:281
zypp::HistoryLogData::at
const std::string & at(size_type idx_r) const
Access (required) field by number.
Definition: HistoryLogData.cc:227
zypp::HistoryLogDataRepoAliasChange::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:310
zypp::HistoryLogPatchStateChange::NAME_INDEX
patch name
Definition: HistoryLogData.h:254
zypp::HistoryActionID::STAMP_COMMAND_e
Definition: HistoryLogData.h:60
zypp::HistoryLogDataStampCommand::USER_INDEX
executed by user@hostname
Definition: HistoryLogData.h:456
zypp::HistoryLogDataInstall::checksum
CheckSum checksum() const
package checksum
Definition: HistoryLogData.cc:252
zypp::HistoryActionID::INSTALL
static const HistoryActionID INSTALL
Definition: HistoryLogData.h:41
zypp::HistoryActionID::REPO_CHANGE_URL_e
Definition: HistoryLogData.h:59
zypp::HistoryActionID::STAMP_COMMAND
static const HistoryActionID STAMP_COMMAND
Definition: HistoryLogData.h:47
zypp::HistoryLogDataRepoRemove::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:365
zypp::HistoryLogData::optionalAt
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
Definition: HistoryLogData.cc:221
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
zypp::Date
Store and operate on date (time_t).
Definition: Date.h:32
zypp::HistoryLogDataStampCommand::executedBy
std::string executedBy() const
executed by user@hostname
Definition: HistoryLogData.cc:328
zypp::HistoryLogPatchStateChange::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:269
zypp::HistoryLogData::create
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
Definition: HistoryLogData.cc:183
zypp::HistoryLogPatchStateChange::ACTION_INDEX
Definition: HistoryLogData.h:253
zypp::HistoryLogDataRepoAliasChange::Ptr
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
Definition: HistoryLogData.h:381
zypp::HistoryActionID::_id
ID _id
Definition: HistoryLogData.h:77
zypp::HistoryLogDataStampCommand::HistoryLogDataStampCommand
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:325
zypp::HistoryLogDataInstall::name
std::string name() const
package name
Definition: HistoryLogData.cc:247
zypp::HistoryActionID::operator==
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
Definition: HistoryLogData.h:81
zypp::HistoryLogDataRepoRemove::HistoryLogDataRepoRemove
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition: HistoryLogData.cc:296
zypp::HistoryLogDataRepoAliasChange::newAlias
std::string newAlias() const
repositories new alias
Definition: HistoryLogData.cc:309
zypp::sat::detail::size_type
SolvableIdType size_type
Definition: PoolMember.h:126
zypp::HistoryLogData::empty
bool empty() const
Whether FieldVector is empty.
Definition: HistoryLogData.cc:209
zypp::HistoryLogDataRemove::Ptr
shared_ptr< HistoryLogDataRemove > Ptr
Definition: HistoryLogData.h:286
zypp::HistoryLogDataInstall::constPtr
shared_ptr< const HistoryLogDataInstall > constPtr
Definition: HistoryLogData.h:203
zypp::HistoryLogDataInstall::arch
Arch arch() const
package architecture
Definition: HistoryLogData.cc:249
zypp::HistoryLogDataInstall::userdata
std::string userdata() const
userdata/transactionID
Definition: HistoryLogData.cc:253
zypp::HistoryLogDataRepoAliasChange
A zypp history log line for a repo alias change.
Definition: HistoryLogData.h:378
zypp::RWCOW_pointer< Impl >
zypp::HistoryLogDataInstall::EDITION_INDEX
package edition
Definition: HistoryLogData.h:215
str
String related utilities and Regular expression matching.
zypp::HistoryLogDataRemove::ACTION_INDEX
Definition: HistoryLogData.h:297
zypp::HistoryLogDataStampCommand::DATE_INDEX
Definition: HistoryLogData.h:454
zypp::HistoryLogDataRepoRemove::Ptr
shared_ptr< HistoryLogDataRepoRemove > Ptr
Definition: HistoryLogData.h:352
zypp::HistoryLogData::operator=
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
zypp::HistoryLogPatchStateChange
A zypp history log line for an installed packaged.
Definition: HistoryLogData.h:239
zypp::HistoryActionID
Enumeration of known history actions.
Definition: HistoryLogData.h:37
zypp::HistoryLogData::ACTION_INDEX
HistoryActionID.
Definition: HistoryLogData.h:175
zypp::Url
Url manipulation class.
Definition: Url.h:87
zypp::HistoryActionID::INSTALL_e
Definition: HistoryLogData.h:54
zypp::HistoryLogDataRepoUrlChange::DATE_INDEX
Definition: HistoryLogData.h:422
zypp::HistoryLogDataInstall::ARCH_INDEX
package architecture
Definition: HistoryLogData.h:216
zypp::HistoryLogDataStampCommand::command
std::string command() const
the commandline executed
Definition: HistoryLogData.cc:329
zypp::HistoryLogDataRemove::constPtr
shared_ptr< const HistoryLogDataRemove > constPtr
Definition: HistoryLogData.h:287
zypp::HistoryLogDataRepoRemove::DATE_INDEX
Definition: HistoryLogData.h:362
zypp::HistoryLogPatchStateChange::DATE_INDEX
Definition: HistoryLogData.h:252
zypp::HistoryLogDataRemove::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:302
zypp::HistoryLogDataRepoUrlChange::alias
std::string alias() const
repository alias
Definition: HistoryLogData.cc:318
zypp::HistoryLogDataRemove::DATE_INDEX
Definition: HistoryLogData.h:296
zypp::HistoryLogPatchStateChange::name
std::string name() const
package name
Definition: HistoryLogData.cc:261
Patch.h
zypp::HistoryLogPatchStateChange::newstate
std::string newstate() const
Definition: HistoryLogData.cc:268
zypp::HistoryLogDataRepoRemove::ACTION_INDEX
Definition: HistoryLogData.h:363
zypp::HistoryLogDataRepoAliasChange::USERDATA_INDEX
userdata/transactionID
Definition: HistoryLogData.h:395
zypp::HistoryLogData::Ptr
shared_ptr< HistoryLogData > Ptr
Definition: HistoryLogData.h:108