-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathOmsiQuestion.py
41 lines (31 loc) · 1.09 KB
/
OmsiQuestion.py
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
39
40
41
class OmsiQuestion:
def __init__(self,question,number,filetype='.txt',flags="", compileProgram = "", compiler = "", runProgram = "", runCmd = ""):
self.number = number
self.filetype = filetype
self.answer = "Write your answer here..."
self.question = question
self.flags = flags
self.compileProgram = compileProgram
self.runProgram = runProgram
self.runCmd = runCmd
self.compiler = compiler
def getQuestion(self):
return self.question
def getAnswer(self):
return self.answer
def getFiletype(self):
return self.filetype
def getQuestionNumber(self):
return self.number
def setAnswer(self,ans):
self.answer = ans
def getFlags(self):
return self.flags.split(" ")
def getCompileProgram(self):
return self.compileProgram
def getCompiler(self):
return self.compiler
def getRunProgram(self):
return self.runProgram
def getRunCmd(self):
return self.runCmd.split(" ")#added split