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

#include <SchemaCommand.hpp>

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

Public Member Functions

 RemoveAttributeCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string name, std::string type, bool is_mv, std::string range, std::string init_values, std::string description, bool is_null, dunedaq::oks::OksAttribute::Format format=dunedaq::oks::OksAttribute::Format::Dec)
 ~RemoveAttributeCommand ()
void redo ()
void undo ()

Private Attributes

std::string ClassName
dunedaq::oks::OksAttributeSchemaAttribute
std::string SchemaName
std::string SchemaType
bool SchemaIsMulti
std::string SchemaRange
std::string SchemaInitValues
std::string SchemaDescription
bool SchemaIsNull
dunedaq::oks::OksAttribute::Format SchemaFormat

Detailed Description

Definition at line 568 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ RemoveAttributeCommand()

dbse::RemoveAttributeCommand::RemoveAttributeCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksAttribute * Attribute,
std::string name,
std::string type,
bool is_mv,
std::string range,
std::string init_values,
std::string description,
bool is_null,
dunedaq::oks::OksAttribute::Format format = dunedaq::oks::OksAttribute::Format::Dec )

Definition at line 1071 of file SchemaCommand.cpp.

1077 : ClassName ( Class->get_name() ),
1078 SchemaAttribute ( Attribute ),
1079 SchemaName ( name ),
1080 SchemaType ( type ),
1081 SchemaIsMulti ( is_mv ),
1082 SchemaRange ( range ),
1083 SchemaInitValues ( init_values ),
1084 SchemaDescription ( description ),
1085 SchemaIsNull ( is_null ),
1086 SchemaFormat ( format )
1087{
1088 setText( QString::fromStdString("Removed attribute \"" + name + "\" from class \"" + Class->get_name() + "\""));
1089}
dunedaq::oks::OksAttribute::Format SchemaFormat
dunedaq::oks::OksAttribute * SchemaAttribute
const std::string & get_name() const noexcept
Definition class.hpp:368

◆ ~RemoveAttributeCommand()

dbse::RemoveAttributeCommand::~RemoveAttributeCommand ( )

Definition at line 1091 of file SchemaCommand.cpp.

1092{
1093}

Member Function Documentation

◆ redo()

void dbse::RemoveAttributeCommand::redo ( )

Definition at line 1095 of file SchemaCommand.cpp.

1096{
1098 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
1099}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
void remove(const OksAttribute *a)
Remove attribute.
Definition class.cpp:1130

◆ undo()

void dbse::RemoveAttributeCommand::undo ( )

Definition at line 1101 of file SchemaCommand.cpp.

1102{
1105 SchemaFormat );
1107 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
1108}
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1057

Member Data Documentation

◆ ClassName

std::string dbse::RemoveAttributeCommand::ClassName
private

Definition at line 579 of file SchemaCommand.hpp.

◆ SchemaAttribute

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

Definition at line 580 of file SchemaCommand.hpp.

◆ SchemaDescription

std::string dbse::RemoveAttributeCommand::SchemaDescription
private

Definition at line 586 of file SchemaCommand.hpp.

◆ SchemaFormat

dunedaq::oks::OksAttribute::Format dbse::RemoveAttributeCommand::SchemaFormat
private

Definition at line 588 of file SchemaCommand.hpp.

◆ SchemaInitValues

std::string dbse::RemoveAttributeCommand::SchemaInitValues
private

Definition at line 585 of file SchemaCommand.hpp.

◆ SchemaIsMulti

bool dbse::RemoveAttributeCommand::SchemaIsMulti
private

Definition at line 583 of file SchemaCommand.hpp.

◆ SchemaIsNull

bool dbse::RemoveAttributeCommand::SchemaIsNull
private

Definition at line 587 of file SchemaCommand.hpp.

◆ SchemaName

std::string dbse::RemoveAttributeCommand::SchemaName
private

Definition at line 581 of file SchemaCommand.hpp.

◆ SchemaRange

std::string dbse::RemoveAttributeCommand::SchemaRange
private

Definition at line 584 of file SchemaCommand.hpp.

◆ SchemaType

std::string dbse::RemoveAttributeCommand::SchemaType
private

Definition at line 582 of file SchemaCommand.hpp.


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