#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); virtual void create_table(); virtual void drop_table(); virtual void migrate(); virtual void add_default_data(); static AssignmentModel *get_singleton(); AssignmentModel(); ~AssignmentModel(); protected: static AssignmentModel *_self; }; #endif