aGrUM  0.16.0
errors.h
Go to the documentation of this file.
1 
31 #include <sstream>
32 #include <string>
33 #include <vector>
34 
35 #include <agrum/PRM/o3prm/O3prm.h>
37 
38 #ifndef GUM_PRM_O3PRM_ERRORS_H
39 # define GUM_PRM_O3PRM_ERRORS_H
40 
41 # ifndef DOXYGEN_SHOULD_SKIP_THIS
42 
43 namespace gum {
44  namespace prm {
45  namespace o3prm {
46 
47 
48  void O3PRM_TYPE_NOT_FOUND(const O3Label& val, ErrorsContainer& errors);
49 
50  void O3PRM_TYPE_AMBIGUOUS(const O3Label& val,
51  const std::vector< std::string >& matches,
52  ErrorsContainer& errors);
53 
54  void O3PRM_TYPE_RESERVED(const O3Label& val, ErrorsContainer& errors);
55 
56  void O3PRM_TYPE_DUPPLICATE(const O3Label& val, ErrorsContainer& errors);
57 
58  void O3PRM_TYPE_CYCLIC_INHERITANCE(const O3Label& sub_type,
59  const O3Label& super_type,
60  ErrorsContainer& errors);
61 
62  void O3PRM_TYPE_UNKNOWN_LABEL(const O3Label& type,
63  const O3Label& l,
64  ErrorsContainer& errors);
65 
66  void O3PRM_TYPE_INVALID_RANGE(const O3IntType& val, ErrorsContainer& errors);
67 
68  void O3PRM_TYPE_INVALID_RANGE(const O3RealType& val,
69  ErrorsContainer& errors);
70 
71  void O3PRM_CLASS_NOT_FOUND(const O3Label& val, ErrorsContainer& errors);
72 
73  void O3PRM_CLASS_AMBIGUOUS(const O3Label& val,
74  const std::vector< std::string >& matches,
75  ErrorsContainer& errors);
76 
77  void O3PRM_CLASS_DUPLICATE(const O3Label& val, ErrorsContainer& errors);
78 
79  void O3PRM_CLASS_CYLIC_INHERITANCE(const O3Label& sub,
80  const O3Label& super,
81  ErrorsContainer& errors);
82 
83  void O3PRM_CLASS_ATTR_IMPLEMENTATION(const O3Label& c,
84  const O3Label& i,
85  const O3Label& attr,
86  ErrorsContainer& errors);
87 
88  void O3PRM_CLASS_AGG_IMPLEMENTATION(const O3Label& c,
89  const O3Label& i,
90  const O3Label& attr,
91  ErrorsContainer& errors);
92 
93  void O3PRM_CLASS_REF_IMPLEMENTATION(const O3Label& c,
94  const O3Label& i,
95  const O3Label& ref,
96  ErrorsContainer& errors);
97 
98  void O3PRM_CLASS_MISSING_ATTRIBUTES(const O3Label& c,
99  const O3Label& i,
100  ErrorsContainer& errors);
101 
102  void O3PRM_CLASS_DUPLICATE_REFERENCE(const O3Label& ref,
103  ErrorsContainer& errors);
104 
105  void O3PRM_CLASS_SELF_REFERENCE(const O3Label& c,
106  const O3Label& ref,
107  ErrorsContainer& errors);
108 
109  void O3PRM_CLASS_ILLEGAL_SUB_REFERENCE(const O3Label& c,
110  const O3Label& sub,
111  ErrorsContainer& errors);
112 
113  void O3PRM_CLASS_PARENT_NOT_FOUND(const O3Label& parent,
114  ErrorsContainer& errors);
115 
116  void O3PRM_CLASS_ILLEGAL_PARENT(const O3Label& parent,
117  ErrorsContainer& errors);
118 
119  void O3PRM_CLASS_LINK_NOT_FOUND(const O3Label& chain,
120  const std::string& s,
121  ErrorsContainer& errors);
122 
123  void O3PRM_CLASS_ILLEGAL_CPT_SIZE(const std::string& c,
124  const O3Label& attr,
125  Size found,
126  Size expected,
127  ErrorsContainer& errors);
128 
129  void O3PRM_CLASS_ILLEGAL_CPT_VALUE(const std::string& c,
130  const O3Label& attr,
131  const O3Formula& f,
132  ErrorsContainer& errors);
133 
134  void O3PRM_CLASS_CPT_DOES_NOT_SUM_TO_1(const std::string& c,
135  const O3Label& attr,
136  float f,
137  ErrorsContainer& errors);
138 
139  void O3PRM_CLASS_CPT_DOES_NOT_SUM_TO_1_WARNING(const std::string& c,
140  const O3Label& attr,
141  float f,
142  ErrorsContainer& errors);
143 
144 
145  void O3PRM_CLASS_ILLEGAL_RULE_SIZE(const O3RuleCPT::O3Rule& rule,
146  size_t found,
147  size_t expected,
148  ErrorsContainer& errors);
149 
150  void O3PRM_CLASS_ILLEGAL_RULE_LABEL(const O3RuleCPT::O3Rule& rule,
151  const O3Label& label,
152  const O3Label& parent,
153  ErrorsContainer& errors);
154 
155  void O3PRM_CLASS_WRONG_PARENT(const O3Label& prnt, ErrorsContainer& errors);
156 
157  void O3PRM_CLASS_WRONG_PARENT_TYPE(const O3Label& prnt,
158  const std::string& expected,
159  const std::string& found,
160  ErrorsContainer& errors);
161 
162  void O3PRM_CLASS_ILLEGAL_OVERLOAD(const O3Label& elt,
163  const O3Label& super,
164  ErrorsContainer& errors);
165 
166  void O3PRM_CLASS_AGG_PARAMETERS(const O3Label& agg,
167  Size expected,
168  Size found,
169  ErrorsContainer& errors);
170 
171  void O3PRM_CLASS_AGG_PARAMETER_NOT_FOUND(const O3Label& agg,
172  const O3Label& param,
173  ErrorsContainer& errors);
174 
175  void O3PRM_INTERFACE_ILLEGAL_ARRAY(const O3Label& val,
176  ErrorsContainer& errors);
177 
178  void O3PRM_INTERFACE_NOT_FOUND(const O3Label& val, ErrorsContainer& errors);
179 
180  void O3PRM_INTERFACE_AMBIGUOUS(const O3Label& val,
181  const std::vector< std::string >& matches,
182  ErrorsContainer& errors);
183 
184  void O3PRM_INTERFACE_DUPLICATE(const O3Label& val, ErrorsContainer& errors);
185 
186  void O3PRM_INTERFACE_DUPLICATE_ELEMENT(const O3InterfaceElement& elt,
187  ErrorsContainer& errors);
188 
189  void O3PRM_INTERFACE_CYCLIC_INHERITANCE(const O3Label& sub,
190  const O3Label& super,
191  ErrorsContainer& errors);
192 
193  void O3PRM_INTERFACE_SELF_REFERENCE(const O3Interface& i,
194  const O3InterfaceElement& r,
195  ErrorsContainer& errors);
196 
197  void O3PRM_INTERFACE_ILLEGAL_SUB_REFERENCE(const O3Interface& i,
198  const O3InterfaceElement& ref,
199  ErrorsContainer& errors);
200 
201  void O3PRM_INTERFACE_ILLEGAL_OVERLOAD(const O3InterfaceElement& elt,
202  ErrorsContainer& errors);
203 
204  void O3PRM_REFERENCE_NOT_FOUND(const O3Label& val, ErrorsContainer& errors);
205 
206  void O3PRM_REFERENCE_AMBIGUOUS(const O3Label& val,
207  const std::vector< std::string >& matches,
208  ErrorsContainer& errors);
209 
210  void O3PRM_SYSTEM_INSTANTIATION_FAILED(const O3System& sys,
211  ErrorsContainer& errors);
212 
213  void O3PRM_SYSTEM_NOT_A_CLASS(const O3Instance& i, ErrorsContainer& errors);
214 
215  void O3PRM_SYSTEM_DUPLICATE_INSTANCE(const O3Instance& i,
216  ErrorsContainer& errors);
217 
218  void O3PRM_SYSTEM_NOT_A_PARAMETER(const O3InstanceParameter& param,
219  ErrorsContainer& errors);
220 
221  void O3PRM_SYSTEM_PARAMETER_NOT_FOUND(const O3InstanceParameter& param,
222  ErrorsContainer& errors);
223 
224  void O3PRM_SYSTEM_PARAMETER_NOT_INT(const O3InstanceParameter& param,
225  ErrorsContainer& errors);
226 
227  void O3PRM_SYSTEM_PARAMETER_NOT_FLOAT(const O3InstanceParameter& param,
228  ErrorsContainer& errors);
229 
230  void O3PRM_SYSTEM_INVALID_LEFT_VALUE(const O3Label& val,
231  ErrorsContainer& errors);
232 
233  void O3PRM_SYSTEM_INSTANCE_NOT_FOUND(const O3Label& i,
234  ErrorsContainer& errors);
235 
236  void O3PRM_SYSTEM_REFERENCE_NOT_FOUND(const O3Label& ref,
237  const std::string& type,
238  ErrorsContainer& errors);
239 
240  void O3PRM_SYSTEM_NOT_AN_ARRAY(const O3Label& val, ErrorsContainer& errors);
241 
242  void O3PRM_DEPRECATED_TYPE_WARNING(const O3Label& type,
243  ErrorsContainer& errors);
244 
245  } // namespace o3prm
246  } // namespace prm
247 } // namespace gum
248 
249 # endif // DOXYGEN_SHOULD_SKIP_THIS
250 
251 #endif // GUM_PRM_O3PRM_ERRORS_H
std::pair< O3LabelList, O3FormulaList > O3Rule
Definition: O3prm.h:546
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48