blob: c6bfb520a1dbba0ff818a2082e26a3b10c586f14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef SLICER_JSON_H
#define SLICER_JSON_H
#include <slicer/serializer.h>
namespace json {
class Value;
}
namespace Slicer {
class Json : public Serializer {
public:
Json(const boost::filesystem::path &);
virtual void Deserialize(ModelPartPtr) override;
virtual void Serialize(ModelPartPtr) override;
protected:
static void ModelTreeIterate(json::Value *, const std::string &, ModelPartPtr mp);
static void ModelTreeIterateSeq(json::Value *, ModelPartPtr mp);
static void ModelTreeIterateRoot(json::Value *, ModelPartPtr mp);
private:
const boost::filesystem::path path;
};
}
#endif
|