LCOV - code coverage report
Current view: top level - configmgr/source - valueparser.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 100.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_CONFIGMGR_SOURCE_VALUEPARSER_HXX
      21             : #define INCLUDED_CONFIGMGR_SOURCE_VALUEPARSER_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : 
      25             : #include <set>
      26             : #include <vector>
      27             : 
      28             : #include <rtl/ref.hxx>
      29             : #include <rtl/string.hxx>
      30             : #include <rtl/ustring.hxx>
      31             : #include <xmlreader/pad.hxx>
      32             : #include <xmlreader/xmlreader.hxx>
      33             : 
      34             : #include "type.hxx"
      35             : 
      36             : namespace com { namespace sun { namespace star { namespace uno {
      37             :     class Any;
      38             : } } } }
      39             : namespace xmlreader { struct Span; }
      40             : 
      41             : namespace configmgr {
      42             : 
      43             : class Node;
      44             : 
      45             : class ValueParser {
      46             : public:
      47             :     explicit ValueParser(int layer);
      48             : 
      49             :     ~ValueParser();
      50             : 
      51             :     xmlreader::XmlReader::Text getTextMode() const;
      52             : 
      53             :     bool startElement(
      54             :         xmlreader::XmlReader & reader, int nsId, xmlreader::Span const & name,
      55             :         std::set< OUString > const *);
      56             : 
      57             :     bool endElement();
      58             : 
      59             :     void characters(xmlreader::Span const & text);
      60             : 
      61             :     void start(
      62             :         rtl::Reference< Node > const & property,
      63             :         OUString const & localizedName = OUString());
      64             : 
      65    16059842 :     int getLayer() const { return layer_;}
      66             : 
      67             :     Type type_;
      68             :     OString separator_;
      69             : 
      70             : private:
      71             :     ValueParser(const ValueParser&) SAL_DELETED_FUNCTION;
      72             :     ValueParser& operator=(const ValueParser&) SAL_DELETED_FUNCTION;
      73             : 
      74             :     template< typename T > com::sun::star::uno::Any convertItems();
      75             : 
      76             :     enum State { STATE_TEXT, STATE_TEXT_UNICODE, STATE_IT, STATE_IT_UNICODE };
      77             : 
      78             :     int layer_;
      79             :     rtl::Reference< Node > node_;
      80             :     OUString localizedName_;
      81             :     State state_;
      82             :     xmlreader::Pad pad_;
      83             :     std::vector< com::sun::star::uno::Any > items_;
      84             : };
      85             : 
      86             : }
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11