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/confobject_desc.hpp
"
17
#include "
dbe/config_reference.hpp
"
18
19
#include "
conffwk/Schema.hpp
"
20
#include "
conffwk/ConfigObject.hpp
"
21
22
#include <QMap>
23
#include <QUuid>
24
#include <QStringList>
25
26
#include <string>
27
#include <vector>
28
#include <algorithm>
29
30
namespace
dbe
31
{
32
namespace
config
33
{
34
namespace
api
35
{
36
//------------------------------------------------------------------------------------------
37
// COMMANDS NAMESPACE
38
//------------------------------------------------------------------------------------------
39
namespace
commands
40
{
41
/*
42
* Enclose methods for the creation of actions related to database / object operations
43
*/
44
57
void
newobj
( std::string
const
& fn, std::string
const
& class_name,
58
std::string
const
& UID,
59
dbe::t_config_object_preimage::type_attrmap
const
& attributes,
60
dbe::t_config_object_preimage::type_relmap
const
& relations,
61
QUuid
const
& src );
62
73
bool
delobj
( inner::configobject::tref obj, QUuid
const
& src );
74
85
bool
renobj
( inner::configobject::tref obj, std::string
const
& newuuid,
86
QUuid
const
& src );
87
95
bool
movobj
( inner::configobject::tref obj, std::string
const
& destination,
96
QUuid
const
& src );
97
108
void
modobj
( inner::configobject::tref obj, dunedaq::conffwk::relationship_t
const
& link,
109
std::vector<std::string>
const
& others );
110
118
template
<
typename
T>
119
void
modobj
( inner::configobject::tref obj, dunedaq::conffwk::attribute_t
const
& attr,
120
T value );
121
122
namespace
file
123
{
124
void
add
( QString
const
& db, QString
const
& fn );
125
126
void
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_ */
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:301
dbe::config::api::commands::file::add
void add(QString const &db, QString const &fn)
Definition
config_api_commands.cpp:323
dbe::config::api::commands
Definition
config_api.hpp:113
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:61
dbe::config::api::commands::renobj
bool renobj(inner::configobject::tref obj, std::string const &newuuid, QUuid const &src)
Definition
config_api_commands.cpp:102
dbe::config::api::commands::modobj
void modobj(tref Object, dunedaq::conffwk::attribute_t const &AttributeData, T Value)
Definition
config_api.hpp:115
dbe::config::api::commands::movobj
bool movobj(inner::configobject::tref obj, std::string const &destination, QUuid const &src)
Definition
config_api_commands.cpp:132
dbe::config::api::commands::delobj
bool delobj(inner::configobject::tref obj, QUuid const &src)
Definition
config_api_commands.cpp:79
dbe::config::api
Definition
config_api.hpp:33
dbe::config
Definition
config_api.hpp:31
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::config_object_image< S, config_object_key< S >, S >::type_relmap
std::map< type_str, type_images > type_relmap
Definition
confobject_desc.hpp:125
dbe::config_object_image< S, config_object_key< S >, S >::type_attrmap
std::map< type_str, type_attributes > type_attrmap
Definition
confobject_desc.hpp:124
Generated on
for DUNE-DAQ by
1.17.0