#include <kernel.hpp>
Definition at line 360 of file kernel.hpp.
◆ add_error()
void dunedaq::oks::LoadErrors::add_error |
( |
const OksFile & | file, |
|
|
std::exception & | ex ) |
Definition at line 3067 of file kernel.cpp.
3068 {
3069 std::string text;
3070 std::set<const OksFile *> parents;
3072
3073 bool has_no_parents(text.empty());
3074
3075 text += "file \'";
3076 text +=
file.get_full_file_name();
3077 text += (has_no_parents ? "\' has problem:\n" : "\' that has problem:\n");
3078 text += ex.what();
3079
3080 std::lock_guard lock(
p_mutex);
3082 }
void add_parents(std::string &text, const OksFile *file, std::set< const OksFile * > &parents)
std::list< std::string > m_errors
◆ add_parents()
void dunedaq::oks::LoadErrors::add_parents |
( |
std::string & | text, |
|
|
const OksFile * | file, |
|
|
std::set< const OksFile * > & | parents ) |
|
private |
Definition at line 3052 of file kernel.cpp.
3053 {
3054 if(file) {
3055 if(parents.insert(file).second == false) {
3056 text += "(ignoring circular dependency between included files...)\n";
3057 }
3058 else {
3060 text += "file \'";
3061 text +=
file->get_full_file_name();
3062 text += "\' includes:\n";
3063 }
3064 }
3065 }
◆ clear()
void dunedaq::oks::LoadErrors::clear |
( |
| ) |
|
|
inline |
◆ get_text()
std::string dunedaq::oks::LoadErrors::get_text |
( |
| ) |
|
Definition at line 3084 of file kernel.cpp.
3085 {
3086 std::lock_guard lock(
p_mutex);
3087
3088 {
3089 std::ostringstream
s;
3090
3092 s <<
"Found 1 error parsing OKS data:\n" << *
m_errors.begin();
3093 }
3094 else {
3095 s <<
"Found " <<
m_errors.size() <<
" errors parsing OKS data:";
3096 int j = 1;
3097 for(std::list<std::string>::const_iterator i =
m_errors.begin(); i !=
m_errors.end(); ++i) {
3098 s <<
"\nERROR [" << j++ <<
"] ***: " << *i;
3099 }
3100 }
3101
3103 }
3104
3106 }
std::string m_error_string
◆ is_empty()
bool dunedaq::oks::LoadErrors::is_empty |
( |
| ) |
|
|
inline |
◆ m_error_string
std::string dunedaq::oks::LoadErrors::m_error_string |
|
private |
◆ m_errors
std::list<std::string> dunedaq::oks::LoadErrors::m_errors |
|
private |
◆ p_mutex
std::mutex dunedaq::oks::LoadErrors::p_mutex |
|
private |
The documentation for this struct was generated from the following files:
- /github/workspace/dunedaq/sourcecode/oks/include/oks/kernel.hpp
- /github/workspace/dunedaq/sourcecode/oks/src/kernel.cpp