home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / arts / mcopconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.5 KB  |  56 lines

  1.     /*
  2.  
  3.     Copyright (C) 2000 Stefan Westerfeld
  4.                        stefan@space.twc.de
  5.  
  6.     This library is free software; you can redistribute it and/or
  7.     modify it under the terms of the GNU Library General Public
  8.     License as published by the Free Software Foundation; either
  9.     version 2 of the License, or (at your option) any later version.
  10.   
  11.     This library is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.     Library General Public License for more details.
  15.    
  16.     You should have received a copy of the GNU Library General Public License
  17.     along with this library; see the file COPYING.LIB.  If not, write to
  18.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.     Boston, MA 02111-1307, USA.
  20.  
  21.     */
  22.  
  23. /*
  24.  * BC - Status (2002-03-08): MCOPConfig
  25.  *
  26.  * Is guaranteed to stay binary compatible. d ptr provided.
  27.  */
  28.  
  29. #ifndef MCOPCONFIG_H
  30. #define MCOPCONFIG_H
  31.  
  32. #include <string>
  33. #include <vector>
  34.  
  35. #include "arts_export.h"
  36.  
  37. namespace Arts {
  38.  
  39. class MCOPConfigPrivate;
  40. class ARTS_EXPORT MCOPConfig {
  41. private:
  42.     MCOPConfigPrivate *d;  // unused
  43. protected:
  44.     std::string filename;
  45.  
  46. public:
  47.     MCOPConfig(const std::string& filename);
  48.  
  49.     std::string readEntry(const std::string& key,
  50.                                 const std::string& defaultValue = "");
  51.     std::vector<std::string> *readListEntry(const std::string& key);
  52. };
  53.  
  54. }
  55. #endif /* MCOPCONFIG_H */
  56.