-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionanswerscorechecker.h
34 lines (32 loc) · 1.03 KB
/
questionanswerscorechecker.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
#ifndef QUESTIONSCORECHECKER_H
#define QUESTIONSCORECHECKER_H
#include "basescorechecker.h"
enum QuestionType{
MULTIPLE_CHOICE, SHORT_ANSWER
};
class QuestionAnswerScoreChecker : public BaseScoreChecker
{
friend class boost::serialization::access;
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);
//ar & street1 & street2;
}
protected:
std::string strQuestion;
int numAnswerMultipleChoice;
int strAnswerShort;
public:
QuestionAnswerScoreChecker();
void checkState();
void setQuestionType(QuestionType type);
void setAnswerMultipleChoice(int);
void setAnswerShort(std::string answer);
std::string getAnswerShort();
std::vector<std::string> vecAnswersMultipleChoice;
void addPossibleAnswer(std::string);
};
#endif // QUESTIONSCORECHECKER_H