DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
kernel.cpp File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wchar.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <vector>
#include <mutex>
#include <chrono>
#include <cstring>
#include <ctime>
#include "ers/ers.hpp"
#include "logging/Logging.hpp"
#include "okssystem/Host.hpp"
#include "okssystem/User.hpp"
#include "okssystem/exceptions.hpp"
#include "oks/kernel.hpp"
#include "oks/xml.hpp"
#include "oks/file.hpp"
#include "oks/attribute.hpp"
#include "oks/relationship.hpp"
#include "oks/method.hpp"
#include "oks/class.hpp"
#include "oks/object.hpp"
#include "oks/profiler.hpp"
#include "oks/pipeline.hpp"
#include "oks/cstring.hpp"
#include "oks_utils.hpp"
Include dependency graph for kernel.cpp:

Go to the source code of this file.

Classes

class  dunedaq::oks::GitFoldersHolder
 
struct  dunedaq::oks::OksLoadObjectsJob
 
struct  dunedaq::oks::ReposDirs
 
struct  dunedaq::oks::CommandOutput
 

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::oks
 

Macros

#define _OksBuildDll_
 
#define TEST_PATH_TOKEN(path, file, msg)
 

Functions

const std::string dunedaq::oks::strerror (int error)
 Convert C error number to string.
 
 dunedaq::oks::ERS_DECLARE_ISSUE (kernel, SetGroupIdFailed, "cannot set group ID "<< id<< " for the file \'"<< file<< "\': chown() failed with code "<< code<< " , reason = \'"<< why<< '\'',((long) id)((const char *) file)((int) code)((std::string) why)) ERS_DECLARE_ISSUE(kernel
 
Found unresolved dunedaq::oks::reference (s)
 
static long dunedaq::oks::get_file_length (std::ifstream &f)
 
std::string dunedaq::oks::make_fname (const char *f, size_t f_len, const std::string &file, bool *p, const OksFile *const *fh)
 
std::ostream & dunedaq::oks::operator<< (std::ostream &s, OksKernel &k)
 
static void dunedaq::oks::test_file_existence (const std::string &file_name, bool silence, const std::string &fname, const char *msg)
 
std::string dunedaq::oks::mk_name_and_test (const std::string &name, const char *test, size_t test_len)
 
static void dunedaq::oks::create_updated_lists (const OksFile::Map &files, std::list< OksFile * > **ufs, std::list< OksFile * > **rfs, OksFile::FileStatus wu, OksFile::FileStatus wr)
 
static bool dunedaq::oks::_find_file (const OksFile::Map &files, const OksFile *f)
 
static bool dunedaq::oks::check_relevant (const std::set< std::string > &loaded_files, const OksRepositoryVersion &ver)
 
static std::string dunedaq::oks::replace_datetime_spaces (const std::string &in)
 
std::ostream & dunedaq::oks::log_timestamp (__LogSeverity__ severity=Log)
 

Variables

static std::mutex dunedaq::oks::s_get_cwd_mutex
 
static GitFoldersHolder dunedaq::oks::s_git_folders
 
 dunedaq::oks::BindError
 

Macro Definition Documentation

◆ _OksBuildDll_

#define _OksBuildDll_

Definition at line 1 of file kernel.cpp.

◆ TEST_PATH_TOKEN

#define TEST_PATH_TOKEN ( path,
file,
msg )
Value:
std::string token(path); \
token.push_back('/'); \
token.append(file); \
Oks::substitute_variables(token); \
if(Oks::real_path(token, true)) { \
TLOG_DEBUG(2) << fname << " returns \'" << token << "\' (filename relative to " << msg << " database repository directory)"; \
return token; \
} \
else { \
const char _test_name[] = "relative to database repository directory"; \
tested_files.push_back(mk_name_and_test(token, _test_name, sizeof(_test_name)-1)); \
}

Definition at line 1644 of file kernel.cpp.

1644#define TEST_PATH_TOKEN(path, file, msg) \
1645std::string token(path); \
1646token.push_back('/'); \
1647token.append(file); \
1648Oks::substitute_variables(token); \
1649if(Oks::real_path(token, true)) { \
1650 TLOG_DEBUG(2) << fname << " returns \'" << token << "\' (filename relative to " << msg << " database repository directory)"; \
1651 return token; \
1652} \
1653else { \
1654 const char _test_name[] = "relative to database repository directory"; \
1655 tested_files.push_back(mk_name_and_test(token, _test_name, sizeof(_test_name)-1)); \
1656}