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::OksMethodSchemaMethod
 
std::string SchemaName
 
std::string SchemaDescription
 

Detailed Description

Definition at line 406 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 771 of file SchemaCommand.cpp.

773 : ClassName ( Class->get_name() ),
774 SchemaMethod ( Method ),
775 SchemaName ( name ),
776 SchemaDescription ( description )
777{
778 setText( QString::fromStdString("Removed method \"" + name + "\" to class \"" + Class->get_name() + "\""));
779}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:363

◆ ~RemoveMethodCommand()

dbse::RemoveMethodCommand::~RemoveMethodCommand ( )

Definition at line 781 of file SchemaCommand.cpp.

782{
783}

Member Function Documentation

◆ redo()

void dbse::RemoveMethodCommand::redo ( )

Definition at line 785 of file SchemaCommand.cpp.

786{
788 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
789}
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::RemoveMethodCommand::undo ( )

Definition at line 791 of file SchemaCommand.cpp.

792{
795 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
796}
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1052
OKS method class.
Definition method.hpp:153

Member Data Documentation

◆ ClassName

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

Definition at line 415 of file SchemaCommand.hpp.

◆ SchemaDescription

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

Definition at line 418 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 416 of file SchemaCommand.hpp.

◆ SchemaName

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

Definition at line 417 of file SchemaCommand.hpp.


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