libzypp 17.37.10

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-core/Globals.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{
37 struct HistoryActionID
38 {
39 static const HistoryActionID NONE ZYPP_API;
40
41 static const HistoryActionID INSTALL ZYPP_API;
42 static const HistoryActionID REMOVE ZYPP_API;
43 static const HistoryActionID REPO_ADD ZYPP_API;
44 static const HistoryActionID REPO_REMOVE ZYPP_API;
45 static const HistoryActionID REPO_CHANGE_ALIAS ZYPP_API;
46 static const HistoryActionID REPO_CHANGE_URL ZYPP_API;
47 static const HistoryActionID STAMP_COMMAND ZYPP_API;
48 static const HistoryActionID PATCH_STATE_CHANGE ZYPP_API;
49
50 enum ID
51 {
52 NONE_e,
53
54 INSTALL_e,
55 REMOVE_e,
56 REPO_ADD_e,
57 REPO_REMOVE_e,
58 REPO_CHANGE_ALIAS_e,
59 REPO_CHANGE_URL_e,
60 STAMP_COMMAND_e,
61 PATCH_STATE_CHANGE_e
62 };
63
64 HistoryActionID() : _id(NONE_e) {}
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:
77 ID _id;
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
105 class ZYPP_API HistoryLogData
106 {
107 public:
108 using Ptr = shared_ptr<HistoryLogData>;
109 using constPtr = shared_ptr<const HistoryLogData>;
110
111 using FieldVector = std::vector<std::string>;
112 using size_type = FieldVector::size_type;
113 using const_iterator = FieldVector::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 {
174 DATE_INDEX = 0,
175 ACTION_INDEX = 1,
176 };
177
178 public:
179 Date date() const;
180 HistoryActionID action() const;
181
182 public:
183 class Impl;
184 private:
185 RWCOW_pointer<Impl> _pimpl;
186 protected:
187 HistoryLogData & operator=( const HistoryLogData & );
188 };
189
191 std::ostream & operator<<( std::ostream & str, const HistoryLogData & obj );
193
199 class ZYPP_API HistoryLogDataInstall : public HistoryLogData
200 {
201 public:
202 using Ptr = shared_ptr<HistoryLogDataInstall>;
203 using constPtr = shared_ptr<const HistoryLogDataInstall>;
207 HistoryLogDataInstall( FieldVector & fields_r );
208
209 public:
210 enum Index
211 {
212 DATE_INDEX = HistoryLogData::DATE_INDEX,
213 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
214 NAME_INDEX,
215 EDITION_INDEX,
216 ARCH_INDEX,
217 REQBY_INDEX,
218 REPOALIAS_INDEX,
219 CHEKSUM_INDEX,
220 USERDATA_INDEX,
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
239 class ZYPP_API HistoryLogPatchStateChange : public HistoryLogData
240 {
241 public:
242 using Ptr = shared_ptr<HistoryLogPatchStateChange>;
243 using constPtr = shared_ptr<const HistoryLogPatchStateChange>;
247 HistoryLogPatchStateChange( FieldVector & fields_r );
248
249 public:
250 enum Index
251 {
252 DATE_INDEX = HistoryLogData::DATE_INDEX,
253 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
254 NAME_INDEX,
255 EDITION_INDEX,
256 ARCH_INDEX,
257 REPOALIAS_INDEX,
258 SEVERITY_INDEX,
259 CATEGORY_INDEX,
260 OLDSTATE_INDEX,
261 NEWSTATE_INDEX,
262 USERDATA_INDEX,
263 };
264
265 public:
266 std::string name() const;
267 Edition edition() const;
268 Arch arch() const;
269 std::string repoAlias() const;
270 Patch::SeverityFlag severity() const;
271 Patch::Category category() const;
272 std::string oldstate() const;
273 std::string newstate() const;
274 std::string userdata() const;
275 };
276
277
283 class ZYPP_API HistoryLogDataRemove : public HistoryLogData
284 {
285 public:
286 using Ptr = shared_ptr<HistoryLogDataRemove>;
287 using constPtr = shared_ptr<const HistoryLogDataRemove>;
291 HistoryLogDataRemove( FieldVector & fields_r );
292
293 public:
294 enum Index
295 {
296 DATE_INDEX = HistoryLogData::DATE_INDEX,
297 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
298 NAME_INDEX,
299 EDITION_INDEX,
300 ARCH_INDEX,
301 REQBY_INDEX,
302 USERDATA_INDEX,
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
318 class ZYPP_API HistoryLogDataRepoAdd : public HistoryLogData
319 {
320 public:
321 using Ptr = shared_ptr<HistoryLogDataRepoAdd>;
322 using constPtr = shared_ptr<const HistoryLogDataRepoAdd>;
326 HistoryLogDataRepoAdd( FieldVector & fields_r );
327
328 public:
329 enum Index
330 {
331 DATE_INDEX = HistoryLogData::DATE_INDEX,
332 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
333 ALIAS_INDEX,
334 URL_INDEX,
335 USERDATA_INDEX,
336 };
337
338 public:
339 std::string alias() const;
340 Url url() const;
341 std::string userdata() const;
342 };
343
349 class ZYPP_API HistoryLogDataRepoRemove : public HistoryLogData
350 {
351 public:
352 using Ptr = shared_ptr<HistoryLogDataRepoRemove>;
353 using constPtr = shared_ptr<const HistoryLogDataRepoRemove>;
357 HistoryLogDataRepoRemove( FieldVector & fields_r );
358
359 public:
360 enum Index
361 {
362 DATE_INDEX = HistoryLogData::DATE_INDEX,
363 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
364 ALIAS_INDEX,
365 USERDATA_INDEX,
366 };
367
368 public:
369 std::string alias() const;
370 std::string userdata() const;
371 };
372
378 class ZYPP_API HistoryLogDataRepoAliasChange : public HistoryLogData
379 {
380 public:
381 using Ptr = shared_ptr<HistoryLogDataRepoAliasChange>;
382 using constPtr = shared_ptr<const HistoryLogDataRepoAliasChange>;
386 HistoryLogDataRepoAliasChange( FieldVector & fields_r );
387
388 public:
389 enum Index
390 {
391 DATE_INDEX = HistoryLogData::DATE_INDEX,
392 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
393 OLDALIAS_INDEX,
394 NEWALIAS_INDEX,
395 USERDATA_INDEX,
396 };
397
398 public:
399 std::string oldAlias() const;
400 std::string newAlias() const;
401 std::string userdata() const;
402 };
403
409 class ZYPP_API HistoryLogDataRepoUrlChange : public HistoryLogData
410 {
411 public:
412 using Ptr = shared_ptr<HistoryLogDataRepoUrlChange>;
413 using constPtr = shared_ptr<const HistoryLogDataRepoUrlChange>;
417 HistoryLogDataRepoUrlChange( FieldVector & fields_r );
418
419 public:
420 enum Index
421 {
422 DATE_INDEX = HistoryLogData::DATE_INDEX,
423 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
424 ALIAS_INDEX,
425 NEWURL_INDEX,
426 USERDATA_INDEX,
427 };
428
429 public:
430 std::string alias() const;
431 Url newUrl() const;
432 std::string userdata() const;
433 };
434
441 class ZYPP_API HistoryLogDataStampCommand : public HistoryLogData
442 {
443 public:
444 using Ptr = shared_ptr<HistoryLogDataStampCommand>;
445 using constPtr = shared_ptr<const HistoryLogDataStampCommand>;
449 HistoryLogDataStampCommand( FieldVector & fields_r );
450
451 public:
452 enum Index
453 {
454 DATE_INDEX = HistoryLogData::DATE_INDEX,
455 ACTION_INDEX = HistoryLogData::ACTION_INDEX,
456 USER_INDEX,
457 COMMAND_INDEX,
458 USERDATA_INDEX,
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_ */
Arch.h
Edition.h
Patch.h
Impl
shared_ptr
zypp::Arch
Architecture.
Definition Arch.h:37
zypp::CheckSum
Definition CheckSum.h:34
zypp::Date
Store and operate on date (time_t).
Definition Date.h:33
zypp::Edition
Edition represents [epoch:]version[-release]
Definition Edition.h:61
zypp::HistoryLogDataInstall::HistoryLogDataInstall
HistoryLogDataInstall(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:244
zypp::HistoryLogDataInstall::constPtr
shared_ptr< const HistoryLogDataInstall > constPtr
Definition HistoryLogData.h:203
zypp::HistoryLogDataInstall::Ptr
shared_ptr< HistoryLogDataInstall > Ptr
Definition HistoryLogData.h:202
zypp::HistoryLogDataInstall::Index
Index
< indices of known fields
Definition HistoryLogData.h:211
zypp::HistoryLogDataInstall::EDITION_INDEX
@ EDITION_INDEX
package edition
Definition HistoryLogData.h:215
zypp::HistoryLogDataInstall::REQBY_INDEX
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
Definition HistoryLogData.h:217
zypp::HistoryLogDataInstall::ARCH_INDEX
@ ARCH_INDEX
package architecture
Definition HistoryLogData.h:216
zypp::HistoryLogDataInstall::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:220
zypp::HistoryLogDataInstall::REPOALIAS_INDEX
@ REPOALIAS_INDEX
repository providing the package
Definition HistoryLogData.h:218
zypp::HistoryLogDataInstall::CHEKSUM_INDEX
@ CHEKSUM_INDEX
package checksum
Definition HistoryLogData.h:219
zypp::HistoryLogDataInstall::NAME_INDEX
@ NAME_INDEX
package name
Definition HistoryLogData.h:214
zypp::HistoryLogDataInstall::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:213
zypp::HistoryLogDataInstall::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:212
zypp::HistoryLogDataRemove::constPtr
shared_ptr< const HistoryLogDataRemove > constPtr
Definition HistoryLogData.h:287
zypp::HistoryLogDataRemove::Index
Index
< indices of known fields
Definition HistoryLogData.h:295
zypp::HistoryLogDataRemove::NAME_INDEX
@ NAME_INDEX
package name
Definition HistoryLogData.h:298
zypp::HistoryLogDataRemove::REQBY_INDEX
@ REQBY_INDEX
requested by (user@hostname, pid:appname, or empty (solver))
Definition HistoryLogData.h:301
zypp::HistoryLogDataRemove::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:296
zypp::HistoryLogDataRemove::ARCH_INDEX
@ ARCH_INDEX
package architecture
Definition HistoryLogData.h:300
zypp::HistoryLogDataRemove::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:302
zypp::HistoryLogDataRemove::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:297
zypp::HistoryLogDataRemove::EDITION_INDEX
@ EDITION_INDEX
package edition
Definition HistoryLogData.h:299
zypp::HistoryLogDataRemove::HistoryLogDataRemove
HistoryLogDataRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:274
zypp::HistoryLogDataRemove::Ptr
shared_ptr< HistoryLogDataRemove > Ptr
Definition HistoryLogData.h:286
zypp::HistoryLogDataRepoAdd::Ptr
shared_ptr< HistoryLogDataRepoAdd > Ptr
Definition HistoryLogData.h:321
zypp::HistoryLogDataRepoAdd::constPtr
shared_ptr< const HistoryLogDataRepoAdd > constPtr
Definition HistoryLogData.h:322
zypp::HistoryLogDataRepoAdd::Index
Index
< indices of known fields
Definition HistoryLogData.h:330
zypp::HistoryLogDataRepoAdd::URL_INDEX
@ URL_INDEX
repository url
Definition HistoryLogData.h:334
zypp::HistoryLogDataRepoAdd::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:331
zypp::HistoryLogDataRepoAdd::ALIAS_INDEX
@ ALIAS_INDEX
repository alias
Definition HistoryLogData.h:333
zypp::HistoryLogDataRepoAdd::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:332
zypp::HistoryLogDataRepoAdd::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:335
zypp::HistoryLogDataRepoAdd::HistoryLogDataRepoAdd
HistoryLogDataRepoAdd(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:286
zypp::HistoryLogDataRepoAliasChange::Ptr
shared_ptr< HistoryLogDataRepoAliasChange > Ptr
Definition HistoryLogData.h:381
zypp::HistoryLogDataRepoAliasChange::Index
Index
< indices of known fields
Definition HistoryLogData.h:390
zypp::HistoryLogDataRepoAliasChange::NEWALIAS_INDEX
@ NEWALIAS_INDEX
repositories new alias
Definition HistoryLogData.h:394
zypp::HistoryLogDataRepoAliasChange::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:392
zypp::HistoryLogDataRepoAliasChange::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:395
zypp::HistoryLogDataRepoAliasChange::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:391
zypp::HistoryLogDataRepoAliasChange::OLDALIAS_INDEX
@ OLDALIAS_INDEX
repositories old alias
Definition HistoryLogData.h:393
zypp::HistoryLogDataRepoAliasChange::constPtr
shared_ptr< const HistoryLogDataRepoAliasChange > constPtr
Definition HistoryLogData.h:382
zypp::HistoryLogDataRepoAliasChange::HistoryLogDataRepoAliasChange
HistoryLogDataRepoAliasChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:305
zypp::HistoryLogDataRepoRemove::Index
Index
< indices of known fields
Definition HistoryLogData.h:361
zypp::HistoryLogDataRepoRemove::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:365
zypp::HistoryLogDataRepoRemove::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:363
zypp::HistoryLogDataRepoRemove::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:362
zypp::HistoryLogDataRepoRemove::ALIAS_INDEX
@ ALIAS_INDEX
repository alias
Definition HistoryLogData.h:364
zypp::HistoryLogDataRepoRemove::HistoryLogDataRepoRemove
HistoryLogDataRepoRemove(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:296
zypp::HistoryLogDataRepoRemove::constPtr
shared_ptr< const HistoryLogDataRepoRemove > constPtr
Definition HistoryLogData.h:353
zypp::HistoryLogDataRepoRemove::Ptr
shared_ptr< HistoryLogDataRepoRemove > Ptr
Definition HistoryLogData.h:352
zypp::HistoryLogDataRepoUrlChange::Index
Index
< indices of known fields
Definition HistoryLogData.h:421
zypp::HistoryLogDataRepoUrlChange::NEWURL_INDEX
@ NEWURL_INDEX
repositories new url
Definition HistoryLogData.h:425
zypp::HistoryLogDataRepoUrlChange::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:423
zypp::HistoryLogDataRepoUrlChange::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:426
zypp::HistoryLogDataRepoUrlChange::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:422
zypp::HistoryLogDataRepoUrlChange::ALIAS_INDEX
@ ALIAS_INDEX
repository alias
Definition HistoryLogData.h:424
zypp::HistoryLogDataRepoUrlChange::HistoryLogDataRepoUrlChange
HistoryLogDataRepoUrlChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:315
zypp::HistoryLogDataRepoUrlChange::Ptr
shared_ptr< HistoryLogDataRepoUrlChange > Ptr
Definition HistoryLogData.h:412
zypp::HistoryLogDataRepoUrlChange::constPtr
shared_ptr< const HistoryLogDataRepoUrlChange > constPtr
Definition HistoryLogData.h:413
zypp::HistoryLogDataStampCommand::Ptr
shared_ptr< HistoryLogDataStampCommand > Ptr
Definition HistoryLogData.h:444
zypp::HistoryLogDataStampCommand::HistoryLogDataStampCommand
HistoryLogDataStampCommand(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:325
zypp::HistoryLogDataStampCommand::Index
Index
< indices of known fields
Definition HistoryLogData.h:453
zypp::HistoryLogDataStampCommand::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:454
zypp::HistoryLogDataStampCommand::COMMAND_INDEX
@ COMMAND_INDEX
the commandline executed
Definition HistoryLogData.h:457
zypp::HistoryLogDataStampCommand::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:455
zypp::HistoryLogDataStampCommand::USER_INDEX
@ USER_INDEX
executed by user@hostname
Definition HistoryLogData.h:456
zypp::HistoryLogDataStampCommand::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:458
zypp::HistoryLogDataStampCommand::constPtr
shared_ptr< const HistoryLogDataStampCommand > constPtr
Definition HistoryLogData.h:445
zypp::HistoryLogData
A zypp history log line split into fields.
Definition HistoryLogData.h:106
zypp::HistoryLogData::create
static Ptr create(FieldVector &fields_r)
Factory method creating HistoryLogData classes.
Definition HistoryLogData.cc:183
zypp::HistoryLogData::operator=
HistoryLogData & operator=(const HistoryLogData &)
no base class assign
zypp::HistoryLogData::end
const_iterator end() const
Iterator pointing behind the last element in vector.
Definition HistoryLogData.cc:218
zypp::HistoryLogData::FieldVector
std::vector< std::string > FieldVector
Definition HistoryLogData.h:111
zypp::HistoryLogData::constPtr
shared_ptr< const HistoryLogData > constPtr
Definition HistoryLogData.h:109
zypp::HistoryLogData::const_iterator
FieldVector::const_iterator const_iterator
Definition HistoryLogData.h:113
zypp::HistoryLogData::optionalAt
const std::string & optionalAt(size_type idx_r) const
Access (optional) field by number.
Definition HistoryLogData.cc:221
zypp::HistoryLogData::begin
const_iterator begin() const
Iterator pointing to 1st element in vector (or end()).
Definition HistoryLogData.cc:215
zypp::HistoryLogData::size_type
FieldVector::size_type size_type
Definition HistoryLogData.h:112
zypp::HistoryLogData::Index
Index
< indices of known fields
Definition HistoryLogData.h:173
zypp::HistoryLogData::ACTION_INDEX
@ ACTION_INDEX
HistoryActionID.
Definition HistoryLogData.h:175
zypp::HistoryLogData::DATE_INDEX
@ DATE_INDEX
date
Definition HistoryLogData.h:174
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::HistoryLogData::empty
bool empty() const
Whether FieldVector is empty.
Definition HistoryLogData.cc:209
zypp::HistoryLogData::_pimpl
RWCOW_pointer< Impl > _pimpl
Implementation class.
Definition HistoryLogData.h:185
zypp::HistoryLogData::HistoryLogData
HistoryLogData(FieldVector &fields_r, size_type expect_r=2)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:172
zypp::HistoryLogData::Ptr
shared_ptr< HistoryLogData > Ptr
Definition HistoryLogData.h:108
zypp::HistoryLogData::size
size_type size() const
Number of fields in vector.
Definition HistoryLogData.cc:212
zypp::HistoryLogPatchStateChange::constPtr
shared_ptr< const HistoryLogPatchStateChange > constPtr
Definition HistoryLogData.h:243
zypp::HistoryLogPatchStateChange::Index
Index
< indices of known fields
Definition HistoryLogData.h:251
zypp::HistoryLogPatchStateChange::OLDSTATE_INDEX
@ OLDSTATE_INDEX
the state of the patch before the change
Definition HistoryLogData.h:260
zypp::HistoryLogPatchStateChange::CATEGORY_INDEX
@ CATEGORY_INDEX
patch category
Definition HistoryLogData.h:259
zypp::HistoryLogPatchStateChange::EDITION_INDEX
@ EDITION_INDEX
patch edition
Definition HistoryLogData.h:255
zypp::HistoryLogPatchStateChange::NAME_INDEX
@ NAME_INDEX
patch name
Definition HistoryLogData.h:254
zypp::HistoryLogPatchStateChange::ARCH_INDEX
@ ARCH_INDEX
patch architecture
Definition HistoryLogData.h:256
zypp::HistoryLogPatchStateChange::NEWSTATE_INDEX
@ NEWSTATE_INDEX
the state of the patch after the change
Definition HistoryLogData.h:261
zypp::HistoryLogPatchStateChange::ACTION_INDEX
@ ACTION_INDEX
Definition HistoryLogData.h:253
zypp::HistoryLogPatchStateChange::SEVERITY_INDEX
@ SEVERITY_INDEX
patch severity
Definition HistoryLogData.h:258
zypp::HistoryLogPatchStateChange::DATE_INDEX
@ DATE_INDEX
Definition HistoryLogData.h:252
zypp::HistoryLogPatchStateChange::REPOALIAS_INDEX
@ REPOALIAS_INDEX
repository providing the patch
Definition HistoryLogData.h:257
zypp::HistoryLogPatchStateChange::USERDATA_INDEX
@ USERDATA_INDEX
userdata/transactionID
Definition HistoryLogData.h:262
zypp::HistoryLogPatchStateChange::HistoryLogPatchStateChange
HistoryLogPatchStateChange(FieldVector &fields_r)
Ctor moving FieldVector (via swap).
Definition HistoryLogData.cc:258
zypp::HistoryLogPatchStateChange::Ptr
shared_ptr< HistoryLogPatchStateChange > Ptr
Definition HistoryLogData.h:242
zypp::Patch::SeverityFlag
SeverityFlag
Possible severity levels for (security) patches.
Definition Patch.h:76
zypp::Patch::Category
Category
Definition Patch.h:48
zypp::Url
Url manipulation class.
Definition Url.h:93
str
String related utilities and Regular expression matching.
zypp::url
Url details namespace.
Definition UrlBase.cc:58
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition SerialNumber.cc:52
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
zypp::HistoryActionID
Enumeration of known history actions.
Definition HistoryLogData.h:38
zypp::HistoryActionID::operator==
bool operator==(const HistoryActionID &lhs, const HistoryActionID &rhs)
Definition HistoryLogData.h:81
zypp::HistoryActionID::asString
const std::string & asString(bool pad=false) const
Definition HistoryLogData.cc:76
zypp::HistoryActionID::HistoryActionID
HistoryActionID()
Definition HistoryLogData.h:64
zypp::HistoryActionID::ID
ID
Definition HistoryLogData.h:51
zypp::HistoryActionID::PATCH_STATE_CHANGE_e
@ PATCH_STATE_CHANGE_e
Definition HistoryLogData.h:61
zypp::HistoryActionID::REPO_ADD_e
@ REPO_ADD_e
Definition HistoryLogData.h:56
zypp::HistoryActionID::NONE_e
@ NONE_e
Definition HistoryLogData.h:52
zypp::HistoryActionID::REMOVE_e
@ REMOVE_e
Definition HistoryLogData.h:55
zypp::HistoryActionID::STAMP_COMMAND_e
@ STAMP_COMMAND_e
Definition HistoryLogData.h:60
zypp::HistoryActionID::REPO_CHANGE_URL_e
@ REPO_CHANGE_URL_e
Definition HistoryLogData.h:59
zypp::HistoryActionID::REPO_REMOVE_e
@ REPO_REMOVE_e
Definition HistoryLogData.h:57
zypp::HistoryActionID::INSTALL_e
@ INSTALL_e
Definition HistoryLogData.h:54
zypp::HistoryActionID::REPO_CHANGE_ALIAS_e
@ REPO_CHANGE_ALIAS_e
Definition HistoryLogData.h:58
zypp::HistoryActionID::ZYPP_API
static const HistoryActionID NONE ZYPP_API
Definition HistoryLogData.h:39
zypp::HistoryActionID::parse
static HistoryActionID::ID parse(const std::string &strval_r)
Definition HistoryLogData.cc:49
zypp::HistoryActionID::toEnum
ID toEnum() const
Definition HistoryLogData.h:70
zypp::HistoryActionID::HistoryActionID
HistoryActionID(ID id)
Definition HistoryLogData.h:66
zypp::HistoryActionID::_id
ID _id
Definition HistoryLogData.h:77
zypp::HistoryActionID::operator!=
bool operator!=(const HistoryActionID &lhs, const HistoryActionID &rhs)
Definition HistoryLogData.h:85
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469
Globals.h
Provides API related macros.
CheckSum.h
Date.h
Url.h