introduced field_attributes shortcuts and added method on_base() to all processor classes
This commit is contained in:
@@ -28,7 +28,7 @@ public:
|
||||
attribute() = default;
|
||||
attribute(std::string name,
|
||||
utils::basic_type type,
|
||||
const utils::field_attributes &attr = utils::NullAttributes,
|
||||
const utils::field_attributes &attr = NullAttributes,
|
||||
null_option_type null_opt = null_option_type::NotNull);
|
||||
|
||||
[[nodiscard]] const std::string& name() const;
|
||||
@@ -39,9 +39,9 @@ public:
|
||||
[[nodiscard]] bool is_nullable() const;
|
||||
[[nodiscard]] utils::basic_type type() const;
|
||||
[[nodiscard]] std::shared_ptr<object> owner() const;
|
||||
void change_type(utils::basic_type type, const utils::field_attributes &attr = utils::NullAttributes);
|
||||
void change_type(utils::basic_type type, const utils::field_attributes &attr = NullAttributes);
|
||||
template < typename Type >
|
||||
void change_type(const utils::field_attributes &attr = utils::NullAttributes) {
|
||||
void change_type(const utils::field_attributes &attr = NullAttributes) {
|
||||
type_ = utils::data_type_traits<Type>::type(attr.size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user