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

#include <SchemaCommand.hpp>

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

Public Member Functions

 SetAttributeMultiCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, bool NewIsMulti)
 
 ~SetAttributeMultiCommand ()
 
void redo ()
 
void undo ()
 

Private Attributes

std::string ClassName
 
dunedaq::oks::OksAttributeSchemaAttribute
 
std::string AttributeName
 
bool NewAttributeMulti
 
bool OldAttributeMulti
 

Detailed Description

Definition at line 496 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetAttributeMultiCommand()

dbse::SetAttributeMultiCommand::SetAttributeMultiCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksAttribute * Attribute,
bool NewIsMulti )

Definition at line 929 of file SchemaCommand.cpp.

932 : ClassName ( Class->get_name() ),
933 SchemaAttribute ( Attribute ),
934 AttributeName ( Attribute->get_name() ),
935 NewAttributeMulti ( NewIsMulti ),
937{
938 setText( QString::fromStdString("Set multiplicity for attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
939}
dunedaq::oks::OksAttribute * SchemaAttribute
bool get_is_multi_values() const noexcept
const std::string & get_name() const noexcept
out stream operator
const std::string & get_name() const noexcept
Definition class.hpp:363

◆ ~SetAttributeMultiCommand()

dbse::SetAttributeMultiCommand::~SetAttributeMultiCommand ( )

Definition at line 941 of file SchemaCommand.cpp.

942{
943}

Member Function Documentation

◆ redo()

void dbse::SetAttributeMultiCommand::redo ( )

Definition at line 945 of file SchemaCommand.cpp.

946{
948 if(a != nullptr) {
949 SchemaAttribute = a;
950 }
951
953 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
954}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
OKS attribute class.
void set_is_multi_values(bool multi_values)
Set attribute is a single-value or multi-value.
OksAttribute * find_direct_attribute(const std::string &name) const noexcept
Find direct attribute.
Definition class.cpp:1014

◆ undo()

void dbse::SetAttributeMultiCommand::undo ( )

Definition at line 956 of file SchemaCommand.cpp.

957{
959 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
960}

Member Data Documentation

◆ AttributeName

std::string dbse::SetAttributeMultiCommand::AttributeName
private

Definition at line 506 of file SchemaCommand.hpp.

◆ ClassName

std::string dbse::SetAttributeMultiCommand::ClassName
private

Definition at line 504 of file SchemaCommand.hpp.

◆ NewAttributeMulti

bool dbse::SetAttributeMultiCommand::NewAttributeMulti
private

Definition at line 507 of file SchemaCommand.hpp.

◆ OldAttributeMulti

bool dbse::SetAttributeMultiCommand::OldAttributeMulti
private

Definition at line 508 of file SchemaCommand.hpp.

◆ SchemaAttribute

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

Definition at line 505 of file SchemaCommand.hpp.


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