LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/beans - PropertyValue.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 19 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 10 20 50.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/beans/PropertyValue.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/beans/PropertyState.hpp"
       9                 :            : #include "com/sun/star/uno/Any.hxx"
      10                 :            : #include "com/sun/star/uno/Type.hxx"
      11                 :            : #include "cppu/unotype.hxx"
      12                 :            : #include "osl/mutex.hxx"
      13                 :            : #include "rtl/ustring.h"
      14                 :            : #include "rtl/ustring.hxx"
      15                 :            : #include "rtl/instance.hxx"
      16                 :            : #include "sal/types.h"
      17                 :            : #include "typelib/typeclass.h"
      18                 :            : #include "typelib/typedescription.h"
      19                 :            : 
      20                 :            : namespace com { namespace sun { namespace star { namespace beans {
      21                 :            : 
      22                 :            : inline PropertyValue::PropertyValue() SAL_THROW(())
      23                 :            :     : Name()
      24                 :            :     , Handle(0)
      25                 :            :     , Value()
      26                 :            :     , State(::com::sun::star::beans::PropertyState_DIRECT_VALUE)
      27                 :            : {
      28                 :            : }
      29                 :            : 
      30                 :            : inline PropertyValue::PropertyValue(const ::rtl::OUString& Name_, const ::sal_Int32& Handle_, const ::com::sun::star::uno::Any& Value_, const ::com::sun::star::beans::PropertyState& State_) SAL_THROW(())
      31                 :            :     : Name(Name_)
      32                 :            :     , Handle(Handle_)
      33                 :            :     , Value(Value_)
      34                 :            :     , State(State_)
      35                 :            : {
      36                 :            : }
      37                 :            : 
      38                 :            : } } } }
      39                 :            : 
      40                 :            : namespace com { namespace sun { namespace star { namespace beans { namespace detail {
      41                 :            : 
      42                 :            : struct thePropertyValueType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, thePropertyValueType >
      43                 :            : {
      44                 :         14 :     ::com::sun::star::uno::Type * operator()() const
      45                 :            :     {
      46         [ +  - ]:         14 :         ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.PropertyValue"));
      47         [ +  - ]:         14 :         ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("string"));
      48         [ +  - ]:         14 :         ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("Name"));
      49         [ +  - ]:         14 :         ::rtl::OUString the_tname1(RTL_CONSTASCII_USTRINGPARAM("long"));
      50         [ +  - ]:         14 :         ::rtl::OUString the_name1(RTL_CONSTASCII_USTRINGPARAM("Handle"));
      51         [ +  - ]:         14 :         ::rtl::OUString the_tname2(RTL_CONSTASCII_USTRINGPARAM("any"));
      52         [ +  - ]:         14 :         ::rtl::OUString the_name2(RTL_CONSTASCII_USTRINGPARAM("Value"));
      53         [ +  - ]:         14 :         ::cppu::UnoType< ::com::sun::star::beans::PropertyState >::get();
      54         [ +  - ]:         14 :         ::rtl::OUString the_tname3(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.PropertyState"));
      55         [ +  - ]:         14 :         ::rtl::OUString the_name3(RTL_CONSTASCII_USTRINGPARAM("State"));
      56                 :            :         ::typelib_StructMember_Init the_members[] = {
      57                 :            :             { { typelib_TypeClass_STRING, the_tname0.pData, the_name0.pData }, false },
      58                 :            :             { { typelib_TypeClass_LONG, the_tname1.pData, the_name1.pData }, false },
      59                 :            :             { { typelib_TypeClass_ANY, the_tname2.pData, the_name2.pData }, false },
      60                 :         14 :             { { typelib_TypeClass_ENUM, the_tname3.pData, the_name3.pData }, false } };
      61                 :         14 :         ::typelib_TypeDescription * the_newType = 0;
      62                 :         14 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 4, the_members);
      63                 :         14 :         ::typelib_typedescription_register(&the_newType);
      64                 :         14 :         ::typelib_typedescription_release(the_newType);
      65                 :         14 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      66                 :            :     }
      67                 :            : };
      68                 :            : } } } } }
      69                 :            : 
      70                 :            : namespace com { namespace sun { namespace star { namespace beans {
      71                 :            : 
      72                 :         14 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::beans::PropertyValue const *) {
      73                 :         14 :     return *detail::thePropertyValueType::get();
      74                 :            : }
      75                 :            : 
      76                 :            : } } } }
      77                 :            : 
      78                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::beans::PropertyValue const *) SAL_THROW(()) {
      79                 :            :     return ::cppu::UnoType< ::com::sun::star::beans::PropertyValue >::get();
      80                 :            : }
      81                 :            : 
      82                 :            : #endif // INCLUDED_COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP

Generated by: LCOV version 1.10