DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbse::SetAttributeInitialValuesCommand Class Reference

#include <SchemaCommand.hpp>

Inheritance diagram for dbse::SetAttributeInitialValuesCommand:
[legend]
Collaboration diagram for dbse::SetAttributeInitialValuesCommand:
[legend]

Public Member Functions

 SetAttributeInitialValuesCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewValues)
 
 ~SetAttributeInitialValuesCommand ()
 
void redo ()
 
void undo ()
 

Private Attributes

std::string ClassName
 
dunedaq::oks::OksAttributeSchemaAttribute
 
std::string AttributeName
 
std::string NewAttributeInitialValues
 
std::string OldAttributeInitialValues
 

Detailed Description

Definition at line 526 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetAttributeInitialValuesCommand()

dbse::SetAttributeInitialValuesCommand::SetAttributeInitialValuesCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksAttribute * Attribute,
std::string NewValues )

Definition at line 995 of file SchemaCommand.cpp.

999 : ClassName ( Class->get_name() ),
1000 SchemaAttribute ( Attribute ),
1001 AttributeName ( Attribute->get_name() ),
1002 NewAttributeInitialValues ( NewValues ),
1004{
1005 setText( QString::fromStdString("Set new initial values to attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
1006}
dunedaq::oks::OksAttribute * SchemaAttribute
const std::string & get_name() const noexcept
out stream operator
const std::string & get_init_value() const noexcept
const std::string & get_name() const noexcept
Definition class.hpp:363

◆ ~SetAttributeInitialValuesCommand()

dbse::SetAttributeInitialValuesCommand::~SetAttributeInitialValuesCommand ( )

Definition at line 1008 of file SchemaCommand.cpp.

1009{
1010}

Member Function Documentation

◆ redo()

void dbse::SetAttributeInitialValuesCommand::redo ( )

Definition at line 1012 of file SchemaCommand.cpp.

1013{
1015 if(a != nullptr) {
1016 SchemaAttribute = a;
1017 }
1018
1020 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
1021}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
OKS attribute class.
void set_init_value(const std::string &init_value)
Set attribute initialisation value.
OksAttribute * find_direct_attribute(const std::string &name) const noexcept
Find direct attribute.
Definition class.cpp:1014

◆ undo()

void dbse::SetAttributeInitialValuesCommand::undo ( )

Definition at line 1023 of file SchemaCommand.cpp.

1024{
1026 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
1027}

Member Data Documentation

◆ AttributeName

std::string dbse::SetAttributeInitialValuesCommand::AttributeName
private

Definition at line 536 of file SchemaCommand.hpp.

◆ ClassName

std::string dbse::SetAttributeInitialValuesCommand::ClassName
private

Definition at line 534 of file SchemaCommand.hpp.

◆ NewAttributeInitialValues

std::string dbse::SetAttributeInitialValuesCommand::NewAttributeInitialValues
private

Definition at line 537 of file SchemaCommand.hpp.

◆ OldAttributeInitialValues

std::string dbse::SetAttributeInitialValuesCommand::OldAttributeInitialValues
private

Definition at line 538 of file SchemaCommand.hpp.

◆ SchemaAttribute

dunedaq::oks::OksAttribute* dbse::SetAttributeInitialValuesCommand::SchemaAttribute
private

Definition at line 535 of file SchemaCommand.hpp.


The documentation for this class was generated from the following files: