LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/mork - MNSINIParser.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 6 33.3 %
Date: 2012-12-27 Functions: 2 8 25.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             : #ifndef __MNSINIPARSER_HXX__
      20             : #define __MNSINIPARSER_HXX__
      21             : 
      22             : #include <rtl/ustring.hxx>
      23             : #include <com/sun/star/io/IOException.hpp>
      24             : #include <osl/process.h>
      25             : 
      26             : #include <map>
      27             : #include <list>
      28             : 
      29             : #if OSL_DEBUG_LEVEL > 0
      30             : #include <stdio.h>
      31             : #endif
      32             : 
      33             : using ::rtl::OUString;
      34             : using ::rtl::OString;
      35             : 
      36           0 : struct ini_NameValue
      37             : {
      38             :     rtl::OUString sName;
      39             :     rtl::OUString sValue;
      40             : 
      41           0 :     inline ini_NameValue() SAL_THROW(())
      42           0 :         {}
      43             :     inline ini_NameValue(
      44             :         OUString const & name, OUString const & value ) SAL_THROW(())
      45             :         : sName( name ),
      46             :           sValue( value )
      47             :         {}
      48             : };
      49             : 
      50             : typedef std::list<
      51             :     ini_NameValue
      52             : > NameValueList;
      53             : 
      54           0 : struct ini_Section
      55             : {
      56             :     rtl::OUString sName;
      57             :     NameValueList lList;
      58             : };
      59             : typedef std::map<rtl::OUString,
      60             :                 ini_Section
      61             :                 >IniSectionMap;
      62             : 
      63             : 
      64          18 : class IniParser
      65             : {
      66             :     IniSectionMap mAllSection;
      67             : public:
      68          18 :     IniSectionMap * getAllSection(){return &mAllSection;};
      69             :     IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException);
      70             : };
      71             : 
      72             : #endif
      73             : 
      74             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10