mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
22 lines
358 B
C++
22 lines
358 B
C++
#include "webfuse/test_util/json_doc.hpp"
|
|
|
|
namespace webfuse_test
|
|
{
|
|
|
|
JsonDoc::JsonDoc(std::string const & text)
|
|
: contents(text)
|
|
{
|
|
doc = wf_impl_json_doc_loadb(const_cast<char*>(contents.data()), contents.size());
|
|
}
|
|
|
|
JsonDoc::~JsonDoc()
|
|
{
|
|
wf_impl_json_doc_dispose(doc);
|
|
}
|
|
|
|
wf_json const * JsonDoc::root()
|
|
{
|
|
return wf_impl_json_doc_root(doc);
|
|
}
|
|
|
|
} |