Volume Cartographer 2.27.0
VolumePkgVersion.hpp
Go to the documentation of this file.
1#pragma once
2
30#include <string>
31#include <unordered_map>
32
33namespace volcart
34{
36static constexpr int VOLPKG_VERSION_LATEST = 7;
37
39using DictionaryEntryKey = std::string;
40
42enum class DictionaryEntryType { String, Int, Double };
43
48using Dictionary = std::unordered_map<DictionaryEntryKey, DictionaryEntryType>;
49
54using Library = std::unordered_map<int, Dictionary>;
55
56// clang-format off
59 {
60 {"name", DictionaryEntryType::String},
61 {"version", DictionaryEntryType::Int},
62 {"materialthickness",DictionaryEntryType::Double}
63 };
64
67
70
73
76 {
77 {"volumepkg name", DictionaryEntryType::String},
78 {"version", DictionaryEntryType::Int},
79 {"width", DictionaryEntryType::Int},
80 {"height", DictionaryEntryType::Int},
81 {"number of slices", DictionaryEntryType::Int},
82 {"slice location", DictionaryEntryType::String},
83 {"min", DictionaryEntryType::Double},
84 {"max", DictionaryEntryType::Double},
85 {"voxelsize", DictionaryEntryType::Double},
86 {"materialthickness",DictionaryEntryType::Double}
87 };
88
91 {
92 {"volumepkg name", DictionaryEntryType::String},
93 {"version", DictionaryEntryType::Int},
94 {"width", DictionaryEntryType::Int},
95 {"height", DictionaryEntryType::Int},
96 {"number of slices", DictionaryEntryType::Int},
97 {"slice location", DictionaryEntryType::String},
98 {"min", DictionaryEntryType::Double},
99 {"max", DictionaryEntryType::Double},
100 {"voxelsize", DictionaryEntryType::Double},
101 {"materialthickness",DictionaryEntryType::Double}
102 };
103
106 {
107 {"volumepkg name", DictionaryEntryType::String},
108 {"version", DictionaryEntryType::Int},
109 {"width", DictionaryEntryType::Int},
110 {"height", DictionaryEntryType::Int},
111 {"number of slices", DictionaryEntryType::Int},
112 {"slice location", DictionaryEntryType::String},
113 {"min", DictionaryEntryType::Double},
114 {"max", DictionaryEntryType::Double},
115 {"voxelsize", DictionaryEntryType::Double}
116 };
117// clang-format on
118
122const Library VERSION_LIBRARY = {{1, V1}, {2, V2}, {3, V3}, {4, V4},
123 {5, V5}, {6, V6}, {7, V7}};
124} // namespace volcart
Volume Cartographer library
static constexpr int VOLPKG_VERSION_LATEST
Volume Package version generated by this release
const Dictionary V7
const Dictionary V4
const Dictionary V1
const Dictionary V6
const Dictionary V5
const Library VERSION_LIBRARY
std::unordered_map< int, Dictionary > Library
const Dictionary V2
const Dictionary V3
std::unordered_map< DictionaryEntryKey, DictionaryEntryType > Dictionary
std::string DictionaryEntryKey