-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvaluescorechecker.h
More file actions
35 lines (35 loc) · 1.21 KB
/
Copy pathvaluescorechecker.h
File metadata and controls
35 lines (35 loc) · 1.21 KB
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
#ifndef VALUESCORECHECKER_H
#define VALUESCORECHECKER_H
#include "basescorechecker.h"
class ValueScoreChecker : public BaseScoreChecker
{
friend class boost::serialization::access;
//template<class Archive> void serialize(Archive &ar, const unsigned int version);
template<class Archive> void serialize(Archive &ar, const unsigned int version)
{
// save/load base class information
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(BaseScoreChecker);
ar & BOOST_SERIALIZATION_NVP(desireExist)
& BOOST_SERIALIZATION_NVP(filepath)
//& BOOST_SERIALIZATION_NVP(filecontent)
& BOOST_SERIALIZATION_NVP(searchstring);
//ar & street1 & street2;
}
protected:
std::string filepath;
bool desireExist;
std::string filecontent;
std::string searchstring;
public:
void readFile();
void setFilepath(std::string newFilepath);
std::string getFilepath();
void setDesireExist(bool newDesireExist);
bool getDesireExist();
void setSearchString(std::string searchstring);
std::string getSearchString();
void checkState();
ValueScoreChecker();
};
std::string get_file_contents(std::string filename);
#endif // VALUESCORECHECKER_H