53 QString stopListFileName;
60 LERROR <<
"No param 'file' in StopList configuration group ! ";
64 std::ifstream stopListFile(stopListFileName.toUtf8().constData(), std::ifstream::binary);
66 LERROR <<
"invalid file " << stopListFileName;
71 LDEBUG <<
"Loading stop list file: " << stopListFileName;
72 while (!wword.isEmpty())
Defines a Factory to create Object of type Base.
std::string & getParamsValueAtKey(const std::string &key)
return a message when a 'param' was not found
InitializableObjectManager< AbstractResource, ResourceInitializationParameters > Manager
Use this exception to signal an error in one of the configuration files.
QString getResourceFileName(const QString ¶mName)
AbstractResource(QObject *parent=0)
void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
std::string readLine(std::istream &inputFile)
LimaString utf8stdstring2limastring(const std::string &src)
SimpleFactory< AbstractResource, StopList > stopListFactory(STOPLIST_CLASSID)
launch exception related to the configuration file parsing