#pragma once #include "Atom.h" #include "Keychain.h" #include "Utils.h" namespace atoms { /** * Abstract interface supposed to be implemented by classes that are capable of * making an Atom (or getting atom's basic info) out of a Handle. */ class HandleDecoder { protected: HandleDecoder() {} public: virtual ~HandleDecoder() {} virtual shared_ptr decode_atom(const string& handle, shared_ptr keychain = nullptr) = 0; virtual string decode_node_name(const string& handle, shared_ptr keychain = nullptr) = 0; virtual vector decode_link_targets(const string& handle, shared_ptr keychain = nullptr) = 0; }; } // namespace atoms