DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_commands.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/config_api_commands.h to include/dbe/config_api_commands.hpp).
5
6/*
7 * config_api_commands.h
8 *
9 * Created on: Apr 19, 2016
10 * Author: Leonidas Georgopoulos
11 */
12
13#ifndef DBE_CONFIG_API_COMMANDS_H_
14#define DBE_CONFIG_API_COMMANDS_H_
15
18
20#include "conffwk/Schema.hpp"
21
22#include <QMap>
23#include <QStringList>
24#include <QUuid>
25
26#include <algorithm>
27#include <string>
28#include <vector>
29
30namespace dbe {
31namespace config {
32namespace api {
33//------------------------------------------------------------------------------------------
34// COMMANDS NAMESPACE
35//------------------------------------------------------------------------------------------
36namespace commands {
37/*
38 * Enclose methods for the creation of actions related to database / object operations
39 */
40
53void
54newobj(std::string const& fn,
55 std::string const& class_name,
56 std::string const& UID,
59 QUuid const& src);
60
71bool
72delobj(inner::configobject::tref obj, QUuid const& src);
73
84bool
85renobj(inner::configobject::tref obj, std::string const& newuuid, QUuid const& src);
86
94bool
95movobj(inner::configobject::tref obj, std::string const& destination, QUuid const& src);
96
107void
108modobj(inner::configobject::tref obj,
109 dunedaq::conffwk::relationship_t const& link,
110 std::vector<std::string> const& others);
111
119template<typename T>
120void
121modobj(inner::configobject::tref obj, dunedaq::conffwk::attribute_t const& attr, T value);
122
123namespace file {
124void
125add(QString const& db, QString const& fn);
126
127void
128remove(QString const& db, QString const& fn);
129}
130
131}
132//------------------------------------------------------------------------------------------
133// END COMMANDS NAMESPACE
134//------------------------------------------------------------------------------------------
135}
136}
137}
138
139#endif /* DBE_CONFIG_API_COMMANDS_H_ */
void remove(QString const &db, QString const &fn)
void add(QString const &db, QString const &fn)
void newobj(std::string const &fn, std::string const &class_name, std::string const &UID, dbe::t_config_object_preimage::type_attrmap const &attributes, dbe::t_config_object_preimage::type_relmap const &relations, QUuid const &src)
bool renobj(inner::configobject::tref obj, std::string const &newuuid, QUuid const &src)
void modobj(tref Object, dunedaq::conffwk::attribute_t const &AttributeData, T Value)
bool movobj(inner::configobject::tref obj, std::string const &destination, QUuid const &src)
bool delobj(inner::configobject::tref obj, QUuid const &src)
Include QT Headers.