35 lines
953 B
C++
35 lines
953 B
C++
#include "matador/object/basic_object_info.hpp"
|
|
|
|
#include "matador/object/schema_node.hpp"
|
|
|
|
#include <algorithm>
|
|
|
|
namespace matador::object {
|
|
basic_object_info::basic_object_info(schema_node &node,
|
|
const std::type_index type_index,
|
|
object_definition &&definition,
|
|
std::shared_ptr<attribute_definition> &&reference_column)
|
|
: node_(node)
|
|
, type_index_(type_index)
|
|
, definition_(std::move(definition))
|
|
, reference_column_(std::move(reference_column)) {
|
|
}
|
|
|
|
std::type_index basic_object_info::type_index() const {
|
|
return type_index_;
|
|
}
|
|
|
|
std::string basic_object_info::name() const {
|
|
return node_.name();
|
|
}
|
|
|
|
const object_definition &basic_object_info::definition() const {
|
|
return definition_;
|
|
}
|
|
|
|
std::shared_ptr<attribute_definition> basic_object_info::reference_column() const {
|
|
return reference_column_;
|
|
}
|
|
|
|
} // namespace matador::object
|