Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_GEOMETRY_REALRECTANGLE3D_HPP
2 : : #define INCLUDED_COM_SUN_STAR_GEOMETRY_REALRECTANGLE3D_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/geometry/RealRectangle3D.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "sal/types.h"
11 : : #include "typelib/typeclass.h"
12 : : #include "typelib/typedescription.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace geometry {
15 : :
16 : : inline RealRectangle3D::RealRectangle3D() SAL_THROW(())
17 : : : X1(0)
18 : : , Y1(0)
19 : : , Z1(0)
20 : : , X2(0)
21 : : , Y2(0)
22 : : , Z2(0)
23 : : {
24 : : }
25 : :
26 : 0 : inline RealRectangle3D::RealRectangle3D(const double& X1_, const double& Y1_, const double& Z1_, const double& X2_, const double& Y2_, const double& Z2_) SAL_THROW(())
27 : : : X1(X1_)
28 : : , Y1(Y1_)
29 : : , Z1(Z1_)
30 : : , X2(X2_)
31 : : , Y2(Y2_)
32 : 0 : , Z2(Z2_)
33 : : {
34 : 0 : }
35 : :
36 : : } } } }
37 : :
38 : : namespace com { namespace sun { namespace star { namespace geometry {
39 : :
40 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::geometry::RealRectangle3D const *) {
41 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
42 : : static ::typelib_TypeDescriptionReference * the_type = 0;
43 : : if (the_type == 0) {
44 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.geometry.RealRectangle3D");
45 : : }
46 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
47 : : }
48 : :
49 : : } } } }
50 : :
51 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::geometry::RealRectangle3D const *) SAL_THROW(()) {
52 : : return ::cppu::UnoType< ::com::sun::star::geometry::RealRectangle3D >::get();
53 : : }
54 : :
55 : : #endif // INCLUDED_COM_SUN_STAR_GEOMETRY_REALRECTANGLE3D_HPP
|