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 411 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 776 of file SchemaCommand.cpp.

778 : ClassName ( Class->get_name() ),
779 SchemaMethod ( Method ),
780 SchemaName ( name ),
781 SchemaDescription ( description )
782{
783 setText( QString::fromStdString("Removed method \"" + name + "\" to class \"" + Class->get_name() + "\""));
784}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:368

◆ ~RemoveMethodCommand()

dbse::RemoveMethodCommand::~RemoveMethodCommand ( )

Definition at line 786 of file SchemaCommand.cpp.

787{
788}

Member Function Documentation

◆ redo()

void dbse::RemoveMethodCommand::redo ( )

Definition at line 790 of file SchemaCommand.cpp.

791{
793 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
794}
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:1130

◆ undo()

void dbse::RemoveMethodCommand::undo ( )

Definition at line 796 of file SchemaCommand.cpp.

797{
798 SchemaMethod = new OksMethod ( SchemaName, SchemaDescription );
800 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
801}
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1057

Member Data Documentation

◆ ClassName

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

Definition at line 420 of file SchemaCommand.hpp.

◆ SchemaDescription

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

Definition at line 423 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 421 of file SchemaCommand.hpp.

◆ SchemaName

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

Definition at line 422 of file SchemaCommand.hpp.


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