DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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
16
#include "
dbe/config_reference.hpp
"
17
#include "
dbe/confobject_desc.hpp
"
18
19
#include "
conffwk/ConfigObject.hpp
"
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
30
namespace
dbe
{
31
namespace
config
{
32
namespace
api
{
33
//------------------------------------------------------------------------------------------
34
// COMMANDS NAMESPACE
35
//------------------------------------------------------------------------------------------
36
namespace
commands
{
37
/*
38
* Enclose methods for the creation of actions related to database / object operations
39
*/
40
53
void
54
newobj
(std::string
const
& fn,
55
std::string
const
& class_name,
56
std::string
const
& UID,
57
dbe::t_config_object_preimage::type_attrmap
const
& attributes,
58
dbe::t_config_object_preimage::type_relmap
const
& relations,
59
QUuid
const
& src);
60
71
bool
72
delobj
(inner::configobject::tref obj, QUuid
const
& src);
73
84
bool
85
renobj
(inner::configobject::tref obj, std::string
const
& newuuid, QUuid
const
& src);
86
94
bool
95
movobj
(inner::configobject::tref obj, std::string
const
& destination, QUuid
const
& src);
96
107
void
108
modobj
(inner::configobject::tref obj,
109
dunedaq::conffwk::relationship_t
const
& link,
110
std::vector<std::string>
const
& others);
111
119
template
<
typename
T>
120
void
121
modobj
(inner::configobject::tref obj, dunedaq::conffwk::attribute_t
const
& attr, T value);
122
123
namespace
file
{
124
void
125
add
(QString
const
& db, QString
const
& fn);
126
127
void
128
remove
(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_ */
ConfigObject.hpp
Schema.hpp
config_reference.hpp
confobject_desc.hpp
dbe::config::api::commands::file
Definition
config_api_commands.hpp:123
dbe::config::api::commands::file::remove
void remove(QString const &db, QString const &fn)
Definition
config_api_commands.cpp:235
dbe::config::api::commands::file::add
void add(QString const &db, QString const &fn)
Definition
config_api_commands.cpp:254
dbe::config::api::commands
Definition
config_api.hpp:94
dbe::config::api::commands::newobj
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)
Definition
config_api_commands.cpp:55
dbe::config::api::commands::renobj
bool renobj(inner::configobject::tref obj, std::string const &newuuid, QUuid const &src)
Definition
config_api_commands.cpp:93
dbe::config::api::commands::modobj
void modobj(tref Object, dunedaq::conffwk::attribute_t const &AttributeData, T Value)
Definition
config_api.hpp:97
dbe::config::api::commands::movobj
bool movobj(inner::configobject::tref obj, std::string const &destination, QUuid const &src)
Definition
config_api_commands.cpp:118
dbe::config::api::commands::delobj
bool delobj(inner::configobject::tref obj, QUuid const &src)
Definition
config_api_commands.cpp:75
dbe::config::api
Definition
config_api.hpp:30
dbe::config
Definition
config_api.hpp:29
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::config_object_image< S, config_object_key< S >, S >::type_relmap
std::map< type_str, type_images > type_relmap
Definition
confobject_desc.hpp:109
dbe::config_object_image< S, config_object_key< S >, S >::type_attrmap
std::map< type_str, type_attributes > type_attrmap
Definition
confobject_desc.hpp:108
Generated on
for DUNE-DAQ by
1.18.0