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
19#include "conffwk/Schema.hpp"
21
22#include <QMap>
23#include <QUuid>
24#include <QStringList>
25
26#include <string>
27#include <vector>
28#include <algorithm>
29
30namespace dbe
31{
32namespace config
33{
34namespace api
35{
36//------------------------------------------------------------------------------------------
37// COMMANDS NAMESPACE
38//------------------------------------------------------------------------------------------
39namespace commands
40{
41/*
42 * Enclose methods for the creation of actions related to database / object operations
43 */
44
57void newobj ( std::string const & fn, std::string const & class_name,
58 std::string const & UID,
61 QUuid const & src );
62
73bool delobj ( inner::configobject::tref obj, QUuid const & src );
74
85bool renobj ( inner::configobject::tref obj, std::string const & newuuid,
86 QUuid const & src );
87
95bool movobj ( inner::configobject::tref obj, std::string const & destination,
96 QUuid const & src );
97
108void modobj ( inner::configobject::tref obj, dunedaq::conffwk::relationship_t const & link,
109 std::vector<std::string> const & others );
110
118template<typename T>
119void modobj ( inner::configobject::tref obj, dunedaq::conffwk::attribute_t const & attr,
120 T value );
121
122namespace file
123{
124void add ( QString const & db, QString const & fn );
125
126void remove ( QString const & db, QString const & fn );
127}
128
129}
130//------------------------------------------------------------------------------------------
131// END COMMANDS NAMESPACE
132//------------------------------------------------------------------------------------------
133}
134}
135}
136
137#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.