summaryrefslogtreecommitdiff
path: root/slicer/json/serializer.h
blob: 0d70f2196ee8bc3d6e474868c6c2b7854413f034 (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
#ifndef SLICER_JSON_H
#define SLICER_JSON_H

#include <slicer/serializer.h>

namespace json {
	class Value;
}

namespace Slicer {
	class Json : public Serializer {
		public:
			virtual void Deserialize(const boost::filesystem::path &, ModelPartPtr) override;
			virtual void Serialize(const boost::filesystem::path &, 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);
	};
}

#endif