Go to the documentation of this file.00001 #ifndef MEGATREE_METADATA_H
00002 #define MEGATREE_METADATA_H
00003
00004 #include <megatree/tree_common.h>
00005
00006 namespace megatree
00007 {
00008
00009 class MetaData
00010 {
00011 public:
00012 MetaData() {};
00013 MetaData(unsigned _version, unsigned _subtree_width, unsigned _subfolder_depth,
00014 double _min_cell_size, double _root_size, const std::vector<double>& _root_center)
00015 : version(_version), subtree_width(_subtree_width), subfolder_depth(_subfolder_depth),
00016 min_cell_size(_min_cell_size), root_size(_root_size), root_center(_root_center)
00017 {}
00018
00019 void deserialize(const ByteVec& data);
00020 void serialize(ByteVec& data);
00021
00022
00023 unsigned version, subtree_width, subfolder_depth;
00024 double min_cell_size, root_size;
00025 std::vector<double> root_center;
00026
00027 };
00028 }
00029
00030 #endif