Emergency 20 Dokumentation  4.2.0
em5::ContentAuthentication Class Reference

Content authentication class. More...

#include <ContentAuthentication.h>

Inheritance diagram for em5::ContentAuthentication:
qsf::game::ContentAuthentication

Public Types

enum  ChecksumCategory { CHECKSUM_EM5, CHECKSUM_EM5_DELUXE, CHECKSUM_EM2016, CHECKSUM_EM2017 }
 
typedef boost::container::flat_map< qsf::NamedIdentifier, uint64ChecksumsMap
 

Public Member Functions

 ContentAuthentication ()
 Default constructor. More...
 
virtual ~ContentAuthentication ()
 Destructor. More...
 
void start ()
 Start checking the content. More...
 
Checksum getChecksum (ChecksumCategory category)
 Return a specific checksum by its category. More...
 
void buildChecksumsMap (ChecksumsMap &checksumsMap)
 

Static Public Member Functions

static const qsf::NamedIdentifiergetChecksumNameByCategory (ChecksumCategory category)
 Return the internal checksum name by its category. More...
 
static bool compareChecksumsMaps (const ChecksumsMap &checksumsMap1, const ChecksumsMap &checksumsMap2, ChecksumCategory upToCategory, bool logResults=false)
 
static ChecksumCategory getChecksumCategoryForEdition (VersionSwitch::Edition edition)
 

Static Public Attributes

static const qsf::NamedIdentifier CHECKSUM_NAME_EM5
 
static const qsf::NamedIdentifier CHECKSUM_NAME_EM5_DELUXE
 
static const qsf::NamedIdentifier CHECKSUM_NAME_EM2016
 
static const qsf::NamedIdentifier CHECKSUM_NAME_EM2017
 

Additional Inherited Members

- Protected Types inherited from qsf::game::ContentAuthentication
typedef uint64 Checksum
 
typedef std::map< StringHash, CategoryCategoryMap
 
- Protected Member Functions inherited from qsf::game::ContentAuthentication
 ContentAuthentication ()
 Default constructor. More...
 
void clear ()
 
void addFiles (const StringHash &categoryName, const std::vector< std::string > &fileList)
 
void addFiles (const StringHash &categoryName, const FileListing &fileListing)
 
void addHashProvider (FileCache &fileCache)
 
void setCheckFileModificationDates (bool check)
 
Checksum getChecksum (const StringHash &categoryName)
 
bool testChecksum (const StringHash &categoryName, Checksum checksum)
 
void debugLogChecksums ()
 

Detailed Description

Content authentication class.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
CHECKSUM_EM5 
CHECKSUM_EM5_DELUXE 
CHECKSUM_EM2016 
CHECKSUM_EM2017 

Constructor & Destructor Documentation

em5::ContentAuthentication::ContentAuthentication ( )

Default constructor.

virtual em5::ContentAuthentication::~ContentAuthentication ( )
virtual

Destructor.

Reimplemented from qsf::game::ContentAuthentication.

Member Function Documentation

void em5::ContentAuthentication::buildChecksumsMap ( ChecksumsMap checksumsMap)
static bool em5::ContentAuthentication::compareChecksumsMaps ( const ChecksumsMap checksumsMap1,
const ChecksumsMap checksumsMap2,
ChecksumCategory  upToCategory,
bool  logResults = false 
)
static
Checksum em5::ContentAuthentication::getChecksum ( ChecksumCategory  category)

Return a specific checksum by its category.

static ChecksumCategory em5::ContentAuthentication::getChecksumCategoryForEdition ( VersionSwitch::Edition  edition)
static
static const qsf::NamedIdentifier& em5::ContentAuthentication::getChecksumNameByCategory ( ChecksumCategory  category)
static

Return the internal checksum name by its category.

void em5::ContentAuthentication::start ( )

Start checking the content.

Member Data Documentation

const qsf::NamedIdentifier em5::ContentAuthentication::CHECKSUM_NAME_EM2016
static
const qsf::NamedIdentifier em5::ContentAuthentication::CHECKSUM_NAME_EM2017
static
const qsf::NamedIdentifier em5::ContentAuthentication::CHECKSUM_NAME_EM5
static
const qsf::NamedIdentifier em5::ContentAuthentication::CHECKSUM_NAME_EM5_DELUXE
static

The documentation for this class was generated from the following file: