diff options
author | Jose <jose@zeroc.com> | 2018-02-08 17:23:26 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-02-08 17:23:26 +0100 |
commit | 41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c (patch) | |
tree | 92eda1d6156d91d4bfce18f8fc06820af1e401ff /matlab/src/ObjectPrx.cpp | |
parent | Remove old files (diff) | |
parent | Fixed matlab check for testing (diff) | |
download | ice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.tar.bz2 ice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.tar.xz ice-41a4ea50bba42cd4585244f5a8e3ccbc6c20da4c.zip |
Merge branch '3.7' of github.com:zeroc-ice/ice into 3.7
Diffstat (limited to 'matlab/src/ObjectPrx.cpp')
-rw-r--r-- | matlab/src/ObjectPrx.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/matlab/src/ObjectPrx.cpp b/matlab/src/ObjectPrx.cpp index f7b2a5e842c..d6261c9269d 100644 --- a/matlab/src/ObjectPrx.cpp +++ b/matlab/src/ObjectPrx.cpp @@ -966,6 +966,20 @@ Ice_ObjectPrx_ice_compress(void* self, void** r, unsigned char b) } mxArray* +Ice_ObjectPrx_ice_getCompress(void* self) +{ + auto v = deref<Ice::ObjectPrx>(self)->ice_getCompress(); + if(v.has_value()) + { + return createResultValue(createOptionalValue(true, createBool(v.value()))); + } + else + { + return createResultValue(createOptionalValue(false, 0)); + } +} + +mxArray* Ice_ObjectPrx_ice_timeout(void* self, void** r, int t) { try @@ -982,6 +996,37 @@ Ice_ObjectPrx_ice_timeout(void* self, void** r, int t) } mxArray* +Ice_ObjectPrx_ice_getTimeout(void* self) +{ + auto v = deref<Ice::ObjectPrx>(self)->ice_getTimeout(); + if(v.has_value()) + { + return createResultValue(createOptionalValue(true, createInt(v.value()))); + } + else + { + return createResultValue(createOptionalValue(false, 0)); + } +} + +mxArray* +Ice_ObjectPrx_ice_fixed(void* self, void** r, void* connection) +{ + assert(connection); // Wrapper only calls this function for non-nil arguments. + try + { + auto proxy = deref<Ice::ObjectPrx>(self); + auto newProxy = proxy->ice_fixed(deref<Ice::Connection>(connection)); + *r = newProxy == proxy ? 0 : new shared_ptr<Ice::ObjectPrx>(move(newProxy)); + } + catch(const std::exception& ex) + { + return convertException(ex); + } + return 0; +} + +mxArray* Ice_ObjectPrx_ice_getConnection(void* self, void** r) { *r = 0; |