CppCMS
message_board/data/forums.h Header File
#ifndef DATA_FORUMS_H
#define DATA_FORUMS_H
#include <data/master.h>
namespace data {
struct new_topic_form : public cppcms::form {
new_topic_form();
};
class forums : public master{
public:
forums() : next(0),prev(0) {}
struct topic {
topic() : id(0) {}
std::string title;
int id;
};
std::vector<topic> topics;
int next,prev;
new_topic_form form;
};
}
#endif