LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/offapi/com/sun/star/sdb - DataAccessDescriptorFactory.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 5 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 26 0.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_SDB_DATAACCESSDESCRIPTORFACTORY_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_SDB_DATAACCESSDESCRIPTORFACTORY_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/uno/XComponentContext.hpp"
       7                 :            : #include "com/sun/star/uno/DeploymentException.hpp"
       8                 :            : #include "com/sun/star/sdb/XDataAccessDescriptorFactory.hpp"
       9                 :            : #include "com/sun/star/uno/Any.hxx"
      10                 :            : #include "com/sun/star/uno/Reference.hxx"
      11                 :            : #include "cppu/unotype.hxx"
      12                 :            : #include "rtl/ustring.h"
      13                 :            : #include "rtl/ustring.hxx"
      14                 :            : 
      15                 :            : namespace com { namespace sun { namespace star { namespace sdb {
      16                 :            : 
      17                 :            : class DataAccessDescriptorFactory {
      18                 :            : public:
      19                 :          0 :     static ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDataAccessDescriptorFactory > get(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context) {
      20                 :          0 :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDataAccessDescriptorFactory > instance;
      21 [ #  # ][ #  # ]:          0 :         if (!(context->getValueByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/singletons/com.sun.star.sdb.DataAccessDescriptorFactory"))) >>= instance) || !instance.is()) {
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  #  
             #  #  #  # ]
                 [ #  # ]
      22 [ #  # ][ #  # ]:          0 :             throw ::com::sun::star::uno::DeploymentException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("component context fails to supply singleton com.sun.star.sdb.DataAccessDescriptorFactory of type com.sun.star.sdb.XDataAccessDescriptorFactory")), context);
      23                 :            :         }
      24                 :          0 :         return instance;
      25                 :            :     }
      26                 :            : 
      27                 :            : private:
      28                 :            :     DataAccessDescriptorFactory(); // not implemented
      29                 :            :     DataAccessDescriptorFactory(DataAccessDescriptorFactory &); // not implemented
      30                 :            :     ~DataAccessDescriptorFactory(); // not implemented
      31                 :            :     void operator =(DataAccessDescriptorFactory); // not implemented
      32                 :            : };
      33                 :            : 
      34                 :            : } } } }
      35                 :            : 
      36                 :            : #endif // INCLUDED_COM_SUN_STAR_SDB_DATAACCESSDESCRIPTORFACTORY_HPP

Generated by: LCOV version 1.10