1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/test/webfuse/test_util/json_doc.hpp
2020-07-18 23:16:18 +02:00

28 lines
488 B
C++

#ifndef WF_TEST_UTIL_JSON_DOC_HPP
#define WF_TEST_UTIL_JSON_DOC_HPP
#include "webfuse/impl/json/doc.h"
#include <string>
namespace webfuse_test
{
class JsonDoc
{
JsonDoc(JsonDoc const&) = delete;
JsonDoc& operator=(JsonDoc const&) = delete;
public:
JsonDoc(std::string const & text);
JsonDoc(JsonDoc && other);
JsonDoc& operator=(JsonDoc && other);
~JsonDoc();
wf_json const * root();
private:
std::string contents;
wf_json_doc * doc;
};
}
#endif