Int8, Int16 default types.

This commit is contained in:
lganzzzo 2018-07-23 02:24:16 +03:00
parent 68c5160f4c
commit c793d6d4ae
2 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,8 @@
namespace oatpp {
typedef oatpp::data::mapping::type::String String;
typedef oatpp::data::mapping::type::Int8 Int8;
typedef oatpp::data::mapping::type::Int16 Int16;
typedef oatpp::data::mapping::type::Int32 Int32;
typedef oatpp::data::mapping::type::Int64 Int64;
typedef oatpp::data::mapping::type::Float32 Float32;

View File

@ -114,6 +114,10 @@ public:
return m_ptr.get();
}
void setPtr(const std::shared_ptr<T>& ptr) {
m_ptr = ptr;
}
std::shared_ptr<T> getPtr() const {
return m_ptr;
}
@ -261,6 +265,11 @@ public:
return *property;
}
AbstractObjectWrapper& getAsRef(void* object) {
AbstractObjectWrapper* property = (AbstractObjectWrapper*)(((v_int64) object) + offset);
return *property;
}
};
public: