DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_commands.hpp
Go to the documentation of this file.
1/*
2 * config_api_commands.h
3 *
4 * Created on: Apr 19, 2016
5 * Author: Leonidas Georgopoulos
6 */
7
8#ifndef DBE_CONFIG_API_COMMANDS_H_
9#define DBE_CONFIG_API_COMMANDS_H_
10
13
14#include "conffwk/Schema.hpp"
16
17#include <QMap>
18#include <QUuid>
19#include <QStringList>
20
21#include <string>
22#include <vector>
23#include <algorithm>
24
25namespace dbe
26{
27namespace config
28{
29namespace api
30{
31//------------------------------------------------------------------------------------------
32// COMMANDS NAMESPACE
33//------------------------------------------------------------------------------------------
34namespace commands
35{
36/*
37 * Enclose methods for the creation of actions related to database / object operations
38 */
39
52void newobj ( std::string const & fn, std::string const & class_name,
53 std::string const & UID,
56 QUuid const & src );
57
68bool delobj ( inner::configobject::tref obj, QUuid const & src );
69
80bool renobj ( inner::configobject::tref obj, std::string const & newuuid,
81 QUuid const & src );
82
90bool movobj ( inner::configobject::tref obj, std::string const & destination,
91 QUuid const & src );
92
103void modobj ( inner::configobject::tref obj, dunedaq::conffwk::relationship_t const & link,
104 std::vector<std::string> const & others );
105
113template<typename T>
114void modobj ( inner::configobject::tref obj, dunedaq::conffwk::attribute_t const & attr,
115 T value );
116
117namespace file
118{
119void add ( QString const & db, QString const & fn );
120
121void remove ( QString const & db, QString const & fn );
122}
123
124}
125//------------------------------------------------------------------------------------------
126// END COMMANDS NAMESPACE
127//------------------------------------------------------------------------------------------
128}
129}
130}
131
132#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.
M< type_str, type_attributes > type_attrmap
M< type_str, type_images > type_relmap