summaryrefslogtreecommitdiff
path: root/src/search/Save.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-17 20:46:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-17 20:46:06 (GMT)
commit4a60b97c700c2f1843b7e99313554cb89fb5da4e (patch)
tree3b33ef6f74a4e8a4ff5968a81b9c4c429ccaa7c6 /src/search/Save.h
parent6273089bf486bf46ad325d72c7290ebb272bd3d8 (diff)
downloadpowder-4a60b97c700c2f1843b7e99313554cb89fb5da4e.zip
powder-4a60b97c700c2f1843b7e99313554cb89fb5da4e.tar.gz
Some minor changes
Diffstat (limited to 'src/search/Save.h')
-rw-r--r--src/search/Save.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/search/Save.h b/src/search/Save.h
new file mode 100644
index 0000000..a3ef485
--- /dev/null
+++ b/src/search/Save.h
@@ -0,0 +1,41 @@
+#ifndef SAVE_H
+#define SAVE_H
+
+#include <string>
+
+using namespace std;
+
+class Save
+{
+private:
+ int id;
+ int votesUp, votesDown;
+ string userName;
+ string name;
+public:
+ Save(int _id, int _votesUp, int _votesDown, string _userName, string _name):
+ id(_id),
+ votesUp(_votesUp),
+ votesDown(_votesDown),
+ userName(_userName),
+ name(_name)
+ {
+ }
+
+ void SetName(string name){ this->name = name; }
+ string GetName(){ return name; }
+
+ void SetUserName(string userName){ this->userName = userName; }
+ string GetUserName(){ return userName; }
+
+ void SetID(int id){ this->id = id; }
+ int GetID(){ return id; }
+
+ void SetVotesUp(int votesUp){ this->votesUp = votesUp; }
+ int GetVotesUp(){ return votesUp; }
+
+ void SetVotesDown(int votesDown){ this->votesDown = votesDown; }
+ int GetVotesDown(){ return votesDown; }
+};
+
+#endif // SAVE_H