mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
28 lines
488 B
C++
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
|