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

#include <SchemaCommand.hpp>

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

Public Member Functions

 RemoveMethodCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string name, std::string description)
 ~RemoveMethodCommand ()
void redo ()
void undo ()

Private Attributes

std::string ClassName
dunedaq::oks::OksMethod * SchemaMethod
std::string SchemaName
std::string SchemaDescription

Detailed Description

Definition at line 461 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ RemoveMethodCommand()

dbse::RemoveMethodCommand::RemoveMethodCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksMethod * Method,
std::string name,
std::string description )

Definition at line 808 of file SchemaCommand.cpp.

809 : ClassName(Class->get_name())
810 , SchemaMethod(Method)
811 , SchemaName(name)
812 , SchemaDescription(description)
813{
814 setText(QString::fromStdString("Removed method \"" + name + "\" to class \"" + Class->get_name() + "\""));
815}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:374

◆ ~RemoveMethodCommand()

dbse::RemoveMethodCommand::~RemoveMethodCommand ( )

Definition at line 817 of file SchemaCommand.cpp.

817{}

Member Function Documentation

◆ redo()

void dbse::RemoveMethodCommand::redo ( )

Definition at line 820 of file SchemaCommand.cpp.

821{
823 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
824}
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:1082

◆ undo()

void dbse::RemoveMethodCommand::undo ( )

Definition at line 827 of file SchemaCommand.cpp.

828{
831 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
832}
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1009
OksMethod(const std::string &name, OksClass *p=nullptr)
OKS method constructor.
Definition method.cpp:116

Member Data Documentation

◆ ClassName

std::string dbse::RemoveMethodCommand::ClassName
private

Definition at line 473 of file SchemaCommand.hpp.

◆ SchemaDescription

std::string dbse::RemoveMethodCommand::SchemaDescription
private

Definition at line 476 of file SchemaCommand.hpp.

◆ SchemaMethod

dunedaq::oks::OksMethod* dbse::RemoveMethodCommand::SchemaMethod
private

Definition at line 474 of file SchemaCommand.hpp.

◆ SchemaName

std::string dbse::RemoveMethodCommand::SchemaName
private

Definition at line 475 of file SchemaCommand.hpp.


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