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 563 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 1066 of file SchemaCommand.cpp.

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

◆ ~RemoveAttributeCommand()

dbse::RemoveAttributeCommand::~RemoveAttributeCommand ( )

Definition at line 1086 of file SchemaCommand.cpp.

1087{
1088}

Member Function Documentation

◆ redo()

void dbse::RemoveAttributeCommand::redo ( )

Definition at line 1090 of file SchemaCommand.cpp.

1091{
1093 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
1094}
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:1125

◆ undo()

void dbse::RemoveAttributeCommand::undo ( )

Definition at line 1096 of file SchemaCommand.cpp.

Member Data Documentation

◆ ClassName

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

Definition at line 574 of file SchemaCommand.hpp.

◆ SchemaAttribute

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

Definition at line 575 of file SchemaCommand.hpp.

◆ SchemaDescription

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

Definition at line 581 of file SchemaCommand.hpp.

◆ SchemaFormat

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

Definition at line 583 of file SchemaCommand.hpp.

◆ SchemaInitValues

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

Definition at line 580 of file SchemaCommand.hpp.

◆ SchemaIsMulti

bool dbse::RemoveAttributeCommand::SchemaIsMulti
private

Definition at line 578 of file SchemaCommand.hpp.

◆ SchemaIsNull

bool dbse::RemoveAttributeCommand::SchemaIsNull
private

Definition at line 582 of file SchemaCommand.hpp.

◆ SchemaName

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

Definition at line 576 of file SchemaCommand.hpp.

◆ SchemaRange

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

Definition at line 579 of file SchemaCommand.hpp.

◆ SchemaType

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

Definition at line 577 of file SchemaCommand.hpp.


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