mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
28 lines
415 B
C++
28 lines
415 B
C++
#ifndef RESOURCE_H
|
|
#define RESOURCE_H
|
|
|
|
#include <string>
|
|
|
|
#include "reference.h"
|
|
#include "rapidjson/document.h"
|
|
|
|
#if DATABASES_ENABLED
|
|
class Database;
|
|
#endif
|
|
|
|
class Resource : public Reference {
|
|
RCPP_OBJECT(Resource, Reference);
|
|
|
|
public:
|
|
int id;
|
|
|
|
virtual std::string to_json(rapidjson::Document *into = nullptr);
|
|
virtual void from_json(const std::string &data);
|
|
|
|
Resource();
|
|
~Resource();
|
|
|
|
private:
|
|
};
|
|
|
|
#endif |