#pragma once #include #include "storage/model/properties/handler.hpp" #include "storage/model/properties/properties.hpp" #include "storage/type_group_edge.hpp" #include "storage/type_group_vertex.hpp" using std::cout; using std::endl; class ConsoleWriter { public: ConsoleWriter() {} void handle(const typename PropertyFamily< TypeGroupEdge>::PropertyType::PropertyFamilyKey &key, const Property &value) { handle(key, value); } void handle(const typename PropertyFamily< TypeGroupVertex>::PropertyType::PropertyFamilyKey &key, const Property &value) { handle(key, value); } template void handle( const typename PropertyFamily::PropertyType::PropertyFamilyKey &key, const Property &value) { cout << "KEY: " << key.family_name() << "; VALUE: "; accept(value, *this); // value.accept(*this); cout << endl; } void handle(const Bool &b) { cout << b.value(); } void handle(const String &s) { cout << s.value; } void handle(const Int32 &int32) { cout << int32.value; } void handle(const Int64 &int64) { cout << int64.value; } void handle(const Float &f) { cout << f.value; } void handle(const Double &d) { cout << d.value; } void finish() {} };