fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / connectivity / source / drivers / mork / MNSINIParser.hxx
blob7f078a776e94de5c0a5e600511de30bdfbe9a6de
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef __MNSINIPARSER_HXX__
20 #define __MNSINIPARSER_HXX__
22 #include <rtl/ustring.hxx>
23 #include <com/sun/star/io/IOException.hpp>
24 #include <osl/process.h>
26 #include <map>
27 #include <list>
29 #if OSL_DEBUG_LEVEL > 0
30 #include <stdio.h>
31 #endif
33 struct ini_NameValue
35 OUString sName;
36 OUString sValue;
38 inline ini_NameValue() SAL_THROW(())
40 inline ini_NameValue(
41 OUString const & name, OUString const & value ) SAL_THROW(())
42 : sName( name ),
43 sValue( value )
47 typedef std::list<
48 ini_NameValue
49 > NameValueList;
51 struct ini_Section
53 OUString sName;
54 NameValueList lList;
56 typedef std::map<OUString,
57 ini_Section
58 >IniSectionMap;
61 class IniParser
63 IniSectionMap mAllSection;
64 public:
65 IniSectionMap * getAllSection(){return &mAllSection;};
66 IniParser(OUString const & rIniName) throw(com::sun::star::io::IOException);
69 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */