Esempio n. 1
0
void _ELC_::Project :: loadIniConfig(_ELENA_::path_t path, bool root, bool requiered)
{
   ElcConfigFile config(true);
   _ELENA_::Path configPath;

   configPath.copySubPath(path);

   if (!config.load(path, getDefaultEncoding())) {
      raiseErrorIf(requiered, ELC_ERR_INVALID_PATH, (const char*)path);
      return;
   }

   loadGenericConfig(config, configPath.c_str(), root, requiered);
}
Esempio n. 2
0
void _ELC_::Project :: loadXMLConfig(_ELENA_::path_t path, bool root, bool requiered)
{
   ElcXmlConfigFile config;
   _ELENA_::Path configPath;

   configPath.copySubPath(path);

   if (!config.load(path, getDefaultEncoding())) {
      raiseErrorIf(requiered, ELC_ERR_INVALID_PATH, _ELENA_::IdentifierString(path));
      return;
   }

   loadGenericConfig(config, configPath.c_str(), root, requiered);
}