Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SCRIPT_INVOCATIONINFO_HPP
2 : #define INCLUDED_COM_SUN_STAR_SCRIPT_INVOCATIONINFO_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/script/InvocationInfo.hdl"
7 :
8 : #include "com/sun/star/script/MemberType.hpp"
9 : #include "com/sun/star/reflection/ParamMode.hpp"
10 : #include "com/sun/star/uno/Sequence.hxx"
11 : #include "com/sun/star/uno/Type.hxx"
12 : #include "cppu/unotype.hxx"
13 : #include "rtl/ustring.hxx"
14 : #include "sal/types.h"
15 : #include "typelib/typeclass.h"
16 : #include "typelib/typedescription.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace script {
19 :
20 0 : inline InvocationInfo::InvocationInfo() SAL_THROW(())
21 : : aName()
22 : , eMemberType(css::script::MemberType_METHOD)
23 : , PropertyAttribute(0)
24 : , aType()
25 : , aParamTypes()
26 0 : , aParamModes()
27 : {
28 0 : }
29 :
30 : inline InvocationInfo::InvocationInfo(const ::rtl::OUString& aName_, const css::script::MemberType& eMemberType_, const ::sal_Int16& PropertyAttribute_, const ::com::sun::star::uno::Type& aType_, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >& aParamTypes_, const ::com::sun::star::uno::Sequence< css::reflection::ParamMode >& aParamModes_) SAL_THROW(())
31 : : aName(aName_)
32 : , eMemberType(eMemberType_)
33 : , PropertyAttribute(PropertyAttribute_)
34 : , aType(aType_)
35 : , aParamTypes(aParamTypes_)
36 : , aParamModes(aParamModes_)
37 : {
38 : }
39 :
40 : } } } }
41 :
42 : namespace com { namespace sun { namespace star { namespace script {
43 :
44 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::script::InvocationInfo const *) {
45 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
46 : static ::typelib_TypeDescriptionReference * the_type = 0;
47 0 : if (the_type == 0) {
48 0 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.script.InvocationInfo");
49 : }
50 0 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
51 : }
52 :
53 : } } } }
54 :
55 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::script::InvocationInfo const *) SAL_THROW(()) {
56 : return ::cppu::UnoType< css::script::InvocationInfo >::get();
57 : }
58 :
59 : #endif // INCLUDED_COM_SUN_STAR_SCRIPT_INVOCATIONINFO_HPP
|