#include <Command.hpp>
Definition at line 100 of file Command.hpp.
◆ remove()
dbe::actions::object::remove::remove |
( |
tref | item, |
|
|
QUuid const & | uuid = 0, |
|
|
QUndoCommand * | parent = 0 ) |
Definition at line 273 of file Command.cpp.
276{
277 setText (
278 QObject::tr ( "Delete object of class %1 with ID %2" ).arg (
279 ( this->
checkedref().class_name() ).c_str() ).arg (
281}
onobject(tref obj, QUndoCommand *parent=nullptr, QUuid const &uuid=0)
◆ ~remove()
dbe::actions::object::remove::~remove |
( |
| ) |
|
◆ redo()
void dbe::actions::object::remove::redo |
( |
| ) |
|
Definition at line 316 of file Command.cpp.
317{
318 try
319 {
321 {
323
325 {
327 };
328
332 }
333 }
334 catch ( dunedaq::conffwk::Exception const & e )
335 {
337 }
338 catch ( daq::dbe::config_object_retrieval_result_is_null const & ex )
339 {
340 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
341 ex.what() );
342 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
343 }
344
345}
QUuid const & source() const
void force_emit_object_deleted(QString const &, dref const)
static confaccessor & ref()
std::function< void(dref const) > config_action_notifiable
static configobject::gref< T > delete_object_request(configobject::tref const &obj)
std::string const parse(ers::Issue const &)
config_object_description dref
◆ undo()
void dbe::actions::object::remove::undo |
( |
| ) |
|
Definition at line 287 of file Command.cpp.
288{
289 try
290 {
292 {
295 {
297 };
298
301 }
302 }
303 catch ( dunedaq::conffwk::Exception const & e )
304 {
306 }
307 catch ( daq::dbe::config_object_retrieval_result_is_null const & ex )
308 {
309 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
310 ex.what() );
311 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
312 }
313
314}
void force_emit_object_created(QString const &, dref const)
static configobject::tref create_object_request(dbe::t_config_object_preimage const &rep)
◆ this_remainder
gref dbe::actions::object::remove::this_remainder |
|
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