-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscorecheckingconfig.h
38 lines (35 loc) · 1.19 KB
/
scorecheckingconfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef SCORECHECKINGCONFIG_H
#define SCORECHECKINGCONFIG_H
#include "basescorechecker.h"
#include "pathexistscorechecker.h"
#include "emptyscorechecker.h"
#include "runcommandscorechecker.h"
#include "scriptscorechecker.h"
#include "valuescorechecker.h"
#include <vector>
class ScoreCheckingConfig
{
friend class boost::serialization::access;
friend std::ostream & operator<<(std::ostream &os, const BaseScoreChecker &gp);
template<class Archive>
void serialize(Archive & ar, const unsigned int /* file_version */);
public:
std::string Name;
std::string Filename;
std::string Description;
std::string Passphrase;
std::string ScoreReportPath;
unsigned int checkSeconds;
ScoreCheckingConfig();
std::vector<BaseScoreChecker *> * vecScoreCheckers;
void GenerateScoreReport();
private:
bool bFixedChanged;
int scoreTotal;
int fixedTotal;
};
void saveConfigXML(const ScoreCheckingConfig &s, const char * filename);
void loadConfigXML(ScoreCheckingConfig &s, const char * filename);
void saveConfigBIN(const ScoreCheckingConfig &s, const char * filename);
void loadConfigBIN(ScoreCheckingConfig &s, const char * filename);
#endif // SCORECHECKINGCONFIG_H