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 21 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetAbstractClassCommand()

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

Definition at line 13 of file SchemaCommand.cpp.

14 : ClassName ( Class->get_name() ),
15 NewValue ( Value ),
16 OldValue ( Class->get_is_abstract() )
17{
18 setText ( QString::fromStdString("Changed abstract flag for class \"" + ClassName + "\"" ) );
19}
bool get_is_abstract() const noexcept
Definition class.hpp:384
const std::string & get_name() const noexcept
Definition class.hpp:363

◆ ~SetAbstractClassCommand()

dbse::SetAbstractClassCommand::~SetAbstractClassCommand ( )

Definition at line 21 of file SchemaCommand.cpp.

22{
23}

Member Function Documentation

◆ redo()

void dbse::SetAbstractClassCommand::redo ( )

Definition at line 25 of file SchemaCommand.cpp.

26{
28 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
29}
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:798

◆ undo()

void dbse::SetAbstractClassCommand::undo ( )

Definition at line 31 of file SchemaCommand.cpp.

Member Data Documentation

◆ ClassName

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

Definition at line 29 of file SchemaCommand.hpp.

◆ NewValue

bool dbse::SetAbstractClassCommand::NewValue
private

Definition at line 30 of file SchemaCommand.hpp.

◆ OldValue

bool dbse::SetAbstractClassCommand::OldValue
private

Definition at line 31 of file SchemaCommand.hpp.


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