#include <Command.hpp>
Definition at line 130 of file Command.hpp.
◆ changerefs()
dbe::actions::object::changerefs::changerefs |
( |
tref | object, |
|
|
dunedaq::conffwk::relationship_t const & | relation, |
|
|
std::vector< std::string > const & | object_names_tolink, |
|
|
QUuid const & | src = 0, |
|
|
QUndoCommand * | Parent = nullptr ) |
Definition at line 17 of file Command.cpp.
25{
26 try
27 {
28 for ( std::string const & oname : object_names_tolink )
29 {
30 try
31 {
34 }
35 catch ( daq::dbe::config_object_retrieval_result_is_null const & ex )
36 {
37
38
39
40 }
41 }
42 }
43 catch ( dunedaq::conffwk::Exception const & e )
44 {
47 }
48
49 setText (
50 QObject::tr ( "Relation %1 of object %2 was updated." ).arg (
52}
std::vector< tref > this_target_neighbors
std::vector< tref > this_current_neighbors
dunedaq::conffwk::relationship_t this_relation
onobject(tref obj, QUndoCommand *parent=nullptr, QUuid const &uuid=0)
static configobject::tref get(dbe::cokey const &desc)
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
std::string const parse(ers::Issue const &)
◆ redo()
void dbe::actions::object::changerefs::redo |
( |
| ) |
|
Definition at line 56 of file Command.cpp.
57{
58 try
59 {
61 {
67 }
68 }
69 catch ( dunedaq::conffwk::Exception const & e )
70 {
72 }
73 catch ( daq::dbe::config_object_retrieval_result_is_null const & ex )
74 {
75 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
76 ex.what() );
77 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
78 }
79
80}
QUuid const & source() const
void force_emit_object_changed(QString const &, dref const)
static confaccessor & ref()
void relation(dbe::inner::configobject::tref src, dunedaq::conffwk::relationship_t const &edge, std::vector< dbe::inner::configobject::tref > const &targets)
◆ undo()
void dbe::actions::object::changerefs::undo |
( |
| ) |
|
Definition at line 84 of file Command.cpp.
85{
86 try
87 {
89 {
95 }
96 }
97 catch ( dunedaq::conffwk::Exception const & e )
98 {
101 }
102 catch ( daq::dbe::config_object_retrieval_result_is_null const & ex )
103 {
104 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
105 ex.what() );
106 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
107 }
108
109}
◆ this_current_neighbors
std::vector<tref> dbe::actions::object::changerefs::this_current_neighbors |
|
private |
◆ this_relation
◆ this_target_neighbors
std::vector<tref> dbe::actions::object::changerefs::this_target_neighbors |
|
private |
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/dbe/include/dbe/Command.hpp
- /github/workspace/dunedaq/sourcecode/dbe/src/internal/Command.cpp