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

Class Commands. More...

#include <SchemaCommand.hpp>

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

Public Member Functions

 SetAbstractClassCommand (dunedaq::oks::OksClass *Class, bool Value)
 ~SetAbstractClassCommand ()
void redo ()
void undo ()

Private Attributes

std::string ClassName
bool NewValue
bool OldValue

Detailed Description

Class Commands.

Definition at line 25 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetAbstractClassCommand()

dbse::SetAbstractClassCommand::SetAbstractClassCommand ( dunedaq::oks::OksClass * Class,
bool Value )

Definition at line 16 of file SchemaCommand.cpp.

17 : ClassName(Class->get_name())
18 , NewValue(Value)
19 , OldValue(Class->get_is_abstract())
20{
21 setText(QString::fromStdString("Changed abstract flag for class \"" + ClassName + "\""));
22}
bool get_is_abstract() const noexcept
Definition class.hpp:392
const std::string & get_name() const noexcept
Definition class.hpp:374

◆ ~SetAbstractClassCommand()

dbse::SetAbstractClassCommand::~SetAbstractClassCommand ( )

Definition at line 24 of file SchemaCommand.cpp.

24{}

Member Function Documentation

◆ redo()

void dbse::SetAbstractClassCommand::redo ( )

Definition at line 27 of file SchemaCommand.cpp.

28{
30 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
31}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
void set_is_abstract(bool abstract)
Set class abstract property.
Definition class.cpp:762

◆ undo()

void dbse::SetAbstractClassCommand::undo ( )

Definition at line 34 of file SchemaCommand.cpp.

Member Data Documentation

◆ ClassName

std::string dbse::SetAbstractClassCommand::ClassName
private

Definition at line 34 of file SchemaCommand.hpp.

◆ NewValue

bool dbse::SetAbstractClassCommand::NewValue
private

Definition at line 35 of file SchemaCommand.hpp.

◆ OldValue

bool dbse::SetAbstractClassCommand::OldValue
private

Definition at line 36 of file SchemaCommand.hpp.


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