Emergency 20 Dokumentation  4.2.0
ContentAuthentication.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public definitions ]
38  //[-------------------------------------------------------]
39  public:
41  {
46  };
47 
52 
53  typedef boost::container::flat_map<qsf::NamedIdentifier, uint64> ChecksumsMap;
54 
55 
56  //[-------------------------------------------------------]
57  //[ Public static methods ]
58  //[-------------------------------------------------------]
59  public:
65 
66  static bool compareChecksumsMaps(const ChecksumsMap& checksumsMap1, const ChecksumsMap& checksumsMap2, ChecksumCategory upToCategory, bool logResults = false);
67 
69 
70 
71  //[-------------------------------------------------------]
72  //[ Public methods ]
73  //[-------------------------------------------------------]
74  public:
80 
85  virtual ~ContentAuthentication();
86 
91  void start();
92 
98 
99  // Make protected inherited method public
101 
102  void buildChecksumsMap(ChecksumsMap& checksumsMap);
103 
104  // Make this method public
106 
107 
108  };
109 
110 
111 //[-------------------------------------------------------]
112 //[ Namespace ]
113 //[-------------------------------------------------------]
114 } // em5
Definition: ActionPriority.h:13
static const qsf::NamedIdentifier CHECKSUM_NAME_EM2017
Definition: ContentAuthentication.h:51
Content authentication class.
Definition: ContentAuthentication.h:48
static const qsf::NamedIdentifier CHECKSUM_NAME_EM5_DELUXE
Definition: ContentAuthentication.h:49
ChecksumCategory
Definition: ContentAuthentication.h:40
static bool compareChecksumsMaps(const ChecksumsMap &checksumsMap1, const ChecksumsMap &checksumsMap2, ChecksumCategory upToCategory, bool logResults=false)
void buildChecksumsMap(ChecksumsMap &checksumsMap)
uint64 Checksum
Definition: ContentAuthentication.h:57
ContentAuthentication()
Default constructor.
static const qsf::NamedIdentifier & getChecksumNameByCategory(ChecksumCategory category)
Return the internal checksum name by its category.
Definition: ContentAuthentication.h:45
boost::container::flat_map< qsf::NamedIdentifier, uint64 > ChecksumsMap
Definition: ContentAuthentication.h:53
void start()
Start checking the content.
virtual ~ContentAuthentication()
Destructor.
Definition: ContentAuthentication.h:44
Edition
Definition: VersionSwitch.h:41
Definition: ContentAuthentication.h:43
void setCheckFileModificationDates(bool check)
static const qsf::NamedIdentifier CHECKSUM_NAME_EM2016
Definition: ContentAuthentication.h:50
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Checksum getChecksum(ChecksumCategory category)
Return a specific checksum by its category.
Content authentication class.
Definition: ContentAuthentication.h:32
Definition: ContentAuthentication.h:42
static ChecksumCategory getChecksumCategoryForEdition(VersionSwitch::Edition edition)
static const qsf::NamedIdentifier CHECKSUM_NAME_EM5
Definition: ContentAuthentication.h:48