Nut/test/common/post.cpp

16 lines
341 B
C++
Raw Normal View History

2018-01-09 01:07:26 +08:00
#include "post.h"
2016-05-12 14:08:58 +08:00
#include "comment.h"
2018-01-14 22:03:24 +08:00
#include "score.h"
2016-05-12 14:08:58 +08:00
#include "tableset.h"
Post::Post(QObject *parent) : Table(parent),
2018-01-14 22:03:24 +08:00
m_id(0), m_title(""),
m_comments(new TableSet<Comment>(this)),
m_scores(new TableSet<Score>(this))
2016-05-12 14:08:58 +08:00
{
}
2018-01-09 05:44:01 +08:00
NUT_IMPLEMENT_CHILD_TABLE(Post, Comment, comments)
2018-01-16 04:04:42 +08:00
NUT_IMPLEMENT_CHILD_TABLE(Post, Score, scores)