3 $Date: 2009/06/22 16:26:54 $
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 * Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
30 #ifndef SETTINGS_IMPL_H
31 #define SETTINGS_IMPL_H
36 struct MODULE_SETTINGS;
37 class DOTCONFDocumentNode;
41 SETTINGS_IMPL() : confFile("./sgconv.conf") {}
42 SETTINGS_IMPL(const std::string & cf) : confFile(cf) {}
46 std::string GetStrError() const { return strError; }
48 const std::string & GetConfDir() const;
50 const std::string & GetModulesPath() const { return modulesPath; }
51 const MODULE_SETTINGS & GetSourceStoreModuleSettings() const { return sourceStoreModuleSettings; }
52 const MODULE_SETTINGS & GetDestStoreModuleSettings() const { return destStoreModuleSettings; }
55 int ParseModuleSettings(const DOTCONFDocumentNode * dirNameNode, std::vector<PARAM_VALUE> * params);
58 std::string modulesPath;
61 MODULE_SETTINGS sourceStoreModuleSettings;
62 MODULE_SETTINGS destStoreModuleSettings;