query/include/matador/object/container_resolver.hpp

23 lines
535 B
C++

#ifndef MATADOR_CONTAINER_RESOLVER_HPP
#define MATADOR_CONTAINER_RESOLVER_HPP
#include "matador/object/abstract_type_resolver.hpp"
#include <memory>
#include <vector>
namespace matador::utils {
class identifier;
}
namespace matador::object {
template<typename Type>
class container_resolver : public abstract_type_resolver {
public:
container_resolver() : abstract_type_resolver(typeid(Type)) {}
virtual std::shared_ptr<std::vector<Type>> resolve(const utils::identifier& id) = 0;
};
}
#endif //MATADOR_CONTAINER_RESOLVER_HPP