#pragma once #include "import/fillings/common.hpp" #include "import/fillings/filler.hpp" #include "storage/model/properties/all.hpp" #include "storage/model/properties/flags.hpp" #include "storage/model/properties/property_family.hpp" // Parses int64. // TG - Type group template class Int64Filler : public Filler { public: Int64Filler( typename PropertyFamily::PropertyType::PropertyFamilyKey key) : key(key) { } // Fills skeleton with data from str. Returns error description if // error occurs. Option fill(ElementSkeleton &data, char *str) final { if (str[0] != '\0') { data.add_property(StoredProperty(Int64(to_int64(str)), key)); } return make_option(); } private: typename PropertyFamily::PropertyType::PropertyFamilyKey key; };