LCOV - code coverage report
Current view: top level - unoxml/source/xpath - xpathobject.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_UNOXML_SOURCE_XPATH_XPATHOBJECT_HXX
      21             : #define INCLUDED_UNOXML_SOURCE_XPATH_XPATHOBJECT_HXX
      22             : 
      23             : #include <boost/shared_ptr.hpp>
      24             : 
      25             : #include <libxml/tree.h>
      26             : #include <libxml/xpath.h>
      27             : 
      28             : #include <sal/types.h>
      29             : #include <rtl/ref.hxx>
      30             : 
      31             : #include <cppuhelper/implbase1.hxx>
      32             : 
      33             : #include <com/sun/star/uno/Reference.h>
      34             : #include <com/sun/star/xml/dom/XNodeList.hpp>
      35             : #include <com/sun/star/xml/xpath/XXPathObject.hpp>
      36             : 
      37             : using namespace com::sun::star::uno;
      38             : using namespace com::sun::star::xml::dom;
      39             : using namespace com::sun::star::xml::xpath;
      40             : 
      41             : 
      42             : namespace DOM {
      43             :     class CDocument;
      44             : }
      45             : 
      46             : namespace XPath
      47             : {
      48           0 :     class CXPathObject : public cppu::WeakImplHelper1< XXPathObject >
      49             :     {
      50             :     private:
      51             :         ::rtl::Reference< DOM::CDocument > const m_pDocument;
      52             :         ::osl::Mutex & m_rMutex;
      53             :         boost::shared_ptr<xmlXPathObject> const m_pXPathObj;
      54             :         XPathObjectType const m_XPathObjectType;
      55             : 
      56             :     public:
      57             :         CXPathObject( ::rtl::Reference<DOM::CDocument> const& pDocument,
      58             :             ::osl::Mutex & rMutex,
      59             :             ::boost::shared_ptr<xmlXPathObject> const& pXPathObj);
      60             : 
      61             :     /**
      62             :         get object type
      63             :     */
      64             :     virtual XPathObjectType SAL_CALL getObjectType() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :     /**
      67             :         get the nodes from a nodelist type object
      68             :     */
      69             :     virtual Reference< XNodeList > SAL_CALL getNodeList()
      70             :         throw (RuntimeException, std::exception) SAL_OVERRIDE;
      71             : 
      72             :      /**
      73             :         get value of a boolean object
      74             :      */
      75             :      virtual sal_Bool SAL_CALL getBoolean() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      76             : 
      77             :     /**
      78             :         get number as byte
      79             :     */
      80             :     virtual sal_Int8 SAL_CALL getByte() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      81             : 
      82             :     /**
      83             :         get number as short
      84             :     */
      85             :     virtual sal_Int16 SAL_CALL getShort() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      86             : 
      87             :     /**
      88             :         get number as long
      89             :     */
      90             :     virtual sal_Int32 SAL_CALL getLong() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      91             : 
      92             :     /**
      93             :         get number as hyper
      94             :     */
      95             :     virtual sal_Int64 SAL_CALL getHyper() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      96             : 
      97             :     /**
      98             :         get number as float
      99             :     */
     100             :     virtual float SAL_CALL getFloat() throw (RuntimeException, std::exception) SAL_OVERRIDE;
     101             : 
     102             :     /**
     103             :         get number as double
     104             :     */
     105             :     virtual double SAL_CALL getDouble() throw (RuntimeException, std::exception) SAL_OVERRIDE;
     106             : 
     107             :     /**
     108             :         get string value
     109             :     */
     110             :     virtual OUString SAL_CALL getString() throw (RuntimeException, std::exception) SAL_OVERRIDE;
     111             : 
     112             :     };
     113             : }
     114             : 
     115             : #endif
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10