datadir.h

00001 /***************************************************************************
00002                           datadir.h  -  description
00003                              -------------------
00004     begin                : Sam M� 1 2003
00005     copyright            : (C) 2003 by Andre Simon
00006     email                : andre.simon1@gmx.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef DATADIR_H
00019 #define DATADIR_H
00020 
00021 #include <string>
00022 #include <fstream>
00023 #include <iostream>
00024 //#include "stringtools.h"
00025 #include "platform_fs.h"
00026 
00027 using namespace std;
00028 
00035 class DataDir
00036   {
00037      string dataDir;
00038      string additionalDataDir;
00039      bool fileExists(const string&f);
00040 
00041   public:
00042 
00043      DataDir();
00044 
00048      bool searchDataDir(const string &userDefinedDir);
00049 
00052      void setAdditionalDataDir(const string& dir);
00053 
00055      const string & getDir() ;
00056 
00058      const string getLangDefDir() ;
00059 
00061      const string getThemeDir() ;
00062 
00064     const string getIndentSchemesDir();
00065 
00067     const string getAdditionalIndentSchemesDir();
00068 
00070      const string getAdditionalLangDefDir() ;
00071 
00073      const string getAdditionalThemeDir() ;
00074 
00076      const string getHelpMsgDir() ;
00077 
00079      const string getConfDir() ;
00080 
00083      const string searchForLangDef(const string & langDef);
00084 
00087      const string searchForTheme(const string & theme);
00088 
00091      const string searchForIndentScheme(const string & scheme);
00092   };
00093 
00094 #endif

Generated on Fri Apr 27 13:12:35 2007 for Highlight Code Converter by  doxygen 1.5.2