#ifndef ASSIGNMENT_MODEL_H #define ASSIGNMENT_MODEL_H #include "core/string.h" #include "core/containers/vector.h" #include "core/object.h" #include "core/reference.h" class Assignment; class QueryResult; class AssignmentModel : public Object { RCPP_OBJECT(AssignmentModel, Object); public: virtual Ref get_assignment(const int id); virtual Vector > get_all(); virtual void save_assignment(Ref &assignment); virtual void parse_row(Ref &result, Ref &assignment); void create_table(); void drop_table(); void create_default_entries(); static AssignmentModel *get_singleton(); AssignmentModel(); ~AssignmentModel(); protected: static AssignmentModel *_self; }; #endif