has one progress
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MATADOR_OBJECT_LOADER_HPP
|
||||
|
||||
#include "matador/object/abstract_type_resolver.hpp"
|
||||
#include "matador/object/abstract_joined_resolver.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -17,5 +18,12 @@ public:
|
||||
|
||||
virtual std::shared_ptr<Type> resolve(const utils::identifier& id) = 0;
|
||||
};
|
||||
template<typename Type>
|
||||
class joined_object_resolver : public abstract_joined_resolver {
|
||||
public:
|
||||
joined_object_resolver(const std::type_index& root_type, const std::string& join_column) : abstract_joined_resolver(root_type, typeid(Type), join_column) {}
|
||||
|
||||
virtual std::shared_ptr<Type> resolve(const utils::identifier& id) = 0;
|
||||
};
|
||||
}
|
||||
#endif //MATADOR_OBJECT_LOADER_HPP
|
||||
Reference in New Issue
Block a user