Line data Source code
1 : #include "conffwk/DalObject.hpp"
2 : #include "confmodel/confmodelIssues.hpp"
3 : #include "confmodel/test_circular_dependency.hpp"
4 :
5 : void
6 74 : dunedaq::confmodel::TestCircularDependency::push(const dunedaq::conffwk::DalObject * object)
7 : {
8 74 : if(p_index < p_limit) {
9 74 : p_objects[p_index++] = object;
10 : }
11 : else {
12 0 : std::ostringstream s;
13 0 : for(unsigned int i = 0; i < p_index; ++i) {
14 0 : if(i != 0) s << ", ";
15 0 : s << p_objects[i];
16 : }
17 :
18 0 : throw dunedaq::confmodel::FoundCircularDependency(ERS_HERE, p_limit, p_goal, s.str());
19 0 : }
20 74 : }
|