mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-21 03:14:51 +08:00
Int8, Int16 default types.
This commit is contained in:
parent
68c5160f4c
commit
c793d6d4ae
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user