23 #ifndef SALOMEDSCLIENT_DEF_HXX
24 #define SALOMEDSCLIENT_DEF_HXX
27 # if defined SALOMEDSCLIENT_EXPORTS || defined SalomeDSClient_EXPORTS
28 # define SALOMEDSCLIENT_EXPORT __declspec( dllexport )
30 # define SALOMEDSCLIENT_EXPORT __declspec( dllimport )
33 # define SALOMEDSCLIENT_EXPORT
36 #include <boost/shared_ptr.hpp>
46 boost::shared_ptr<T>::reset(p);
51 boost::shared_ptr<T>(boost::dynamic_pointer_cast<T,Y>(r))
63 if(T* pt = dynamic_cast<T*>(p))
64 boost::shared_ptr<T>::reset(pt);
66 boost::throw_exception(std::bad_cast());
72 #define _PTR(Class) clt_shared_ptr<SALOMEDSClient_##Class>
73 #define _CAST(Class, shared_ptr_Obj) dynamic_cast<SALOMEDS_##Class*>(shared_ptr_Obj.get())