8#ifndef DBE_CHANGE_TIME_HPP_
9#define DBE_CHANGE_TIME_HPP_
21#include <QtCore/qstring.h>
22#include <QtCore/qstringlist.h>
37 QUndoCommand * parent =
nullptr );
50 T NewValueData, QUndoCommand * parent )
62 catch ( dunedaq::conffwk::Exception
const & )
67 QObject::tr (
"Attribute %1 of object %2 was updated." ).arg (
68 AttributeData.
p_name.c_str() ).arg ( Object.
UID().c_str() ) );
83 catch ( dunedaq::conffwk::Exception
const & e )
86 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, e );
88 catch ( daq::dbe::config_object_retrieval_result_is_null
const & ex )
90 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
92 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
115 catch ( dunedaq::conffwk::Exception
const & e )
118 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, e );
120 catch ( daq::dbe::config_object_retrieval_result_is_null
const & ex )
122 FAIL (
"Operation did not complete because a lookup in the underlying database failed",
124 throw daq::dbe::ObjectChangeWasNotSuccessful (
ERS_HERE, ex );
ChangeTime(tref Object, dunedaq::conffwk::attribute_t AttributeData, T NewValueData, QUndoCommand *parent=nullptr)
dunedaq::conffwk::attribute_t Attribute
onobject(tref obj, QUndoCommand *parent=nullptr, QUuid const &uuid=0)
static T list(dbe::inner::configobject::tref obj, dunedaq::conffwk::attribute_t const &attr)
void atime(inner::configobject::tref Object, dunedaq::conffwk::attribute_t const &AttributeData, T NewValueData, bool NotEmit=false)
T to(QStringList const &DataList)
inner::configobject::tref tref