Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_BEANS_OPTIONAL_HDL
2 : #define INCLUDED_COM_SUN_STAR_BEANS_OPTIONAL_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "cppu/macros.hxx"
7 : #include "sal/types.h"
8 :
9 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
10 :
11 : namespace com { namespace sun { namespace star { namespace beans {
12 :
13 : #ifdef SAL_W32
14 : # pragma pack(push, 8)
15 : #endif
16 :
17 241 : template< typename typeparam_T > struct Optional {
18 : inline Optional() SAL_THROW(());
19 :
20 : inline Optional(const ::sal_Bool& IsPresent_, typeparam_T const & Value_) SAL_THROW(());
21 :
22 : ::sal_Bool IsPresent;
23 : typeparam_T Value;
24 : };
25 :
26 : #ifdef SAL_W32
27 : # pragma pack(pop)
28 : #endif
29 :
30 : } } } }
31 :
32 : template< typename typeparam_T > inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const css::beans::Optional< typeparam_T > *) SAL_THROW(());
33 :
34 : #endif
|