LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
configurationStructure.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
15#ifndef CONFIGURATIONSTRUCTURE_H
16#define CONFIGURATIONSTRUCTURE_H
17
18#include "common/LimaCommon.h"
20
21#include <map>
22#include <string>
23
24namespace Lima {
25namespace Common {
26namespace XMLConfigurationFiles {
27
28
37class LIMA_XMLCONFIGURATIONFILES_EXPORT ConfigurationStructure : public std::map< std::string, ModuleConfigurationStructure >
38{
39public:
43 ConfigurationStructure& operator=(const ConfigurationStructure& config);
44
45 void addParamValuePairForModuleAndGroup(const std::string &param,const std::string &value, const std::string &module, const std::string & group);
46 void addGroupNamedForModuleNamed(const std::string& groupName, const std::string& moduleName);
47 void addListNamedForModuleAndGroup(const std::string &listName, const std::string& moduleName, const std::string& group);
48 void addItemInListNamedForModuleAndGroup(const std::string& item, const std::string &listName, const std::string& moduleName, const std::string& group);
49 void addMapNamedForModuleAndGroup(const std::string &mapName, const std::string& moduleName, const std::string& group);
50 void addEntryInMapNamedForModuleAndGroup(const std::string& entryKey,const std::string& entryValue,const std::string& mapName,const std::string& moduleName,const std::string& groupName);
51 void addAttributeForGroupInModule(const std::string& attKey,const std::string& attValue,const std::string& groupName,const std::string& moduleName);
52
53
54 void addParamValuePairForModuleAndGroup(const QString &param,
55 const QString &value,
56 const QString &module,
57 const QString & group);
58 void addGroupNamedForModuleNamed(const QString& groupName,
59 const QString& moduleName);
60 void addListNamedForModuleAndGroup(const QString &listName,
61 const QString& moduleName,
62 const QString& group);
63 void addItemInListNamedForModuleAndGroup(const QString& item,
64 const QString &listName,
65 const QString& moduleName,
66 const QString& group);
67 void addMapNamedForModuleAndGroup(const QString &mapName,
68 const QString& moduleName,
69 const QString& group);
70 void addEntryInMapNamedForModuleAndGroup(const QString& entryKey,
71 const QString& entryValue,
72 const QString& mapName,
73 const QString& moduleName,
74 const QString& groupName);
75 void addAttributeForGroupInModule(const QString& attKey,const QString& attValue,
76 const QString& groupName,
77 const QString& moduleName);
78
79
80 private:
81
83 getGroupConf(const std::string& moduleName,
84 const std::string& group);
85
86 friend LIMA_XMLCONFIGURATIONFILES_EXPORT std::ostream& operator<<(std::ostream &os, const ConfigurationStructure& conf);
87};
88
89} //closing namespace XMLConfigurationFiles
90} //closing namespace Common
91} //closing namespace Lima
92
93
94#endif
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
#define LIMA_XMLCONFIGURATIONFILES_EXPORT
Definition LimaCommon.h:137
The instances of this class hold configuration informations of the modules Its design is currently ve...
originally detectModuleConfigurationStructure.h in detectlibraries
NAUTITIA.