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

#include <SchemaCommand.hpp>

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

Public Member Functions

 RemoveMethodImplementationComand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)
 ~RemoveMethodImplementationComand ()
void redo ()
void undo ()

Private Attributes

std::string ClassName
dunedaq::oks::OksMethod * SchemaMethod
std::string MethodName
std::string SchemaImplementationLanguage
std::string SchemaImplementationPrototype
std::string SchemaImplementationBody

Detailed Description

Definition at line 393 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ RemoveMethodImplementationComand()

dbse::RemoveMethodImplementationComand::RemoveMethodImplementationComand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksMethod * Method,
std::string Language,
std::string Prototype,
std::string Body )

Definition at line 680 of file SchemaCommand.cpp.

685 : ClassName(Class->get_name())
686 , SchemaMethod(Method)
687 , MethodName(Method->get_name())
691{
692 setText(QString::fromStdString("Removed implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" +
693 Class->get_name() + "\""));
694}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:374
const std::string & get_name() const noexcept
Definition method.hpp:185

◆ ~RemoveMethodImplementationComand()

dbse::RemoveMethodImplementationComand::~RemoveMethodImplementationComand ( )

Definition at line 696 of file SchemaCommand.cpp.

696{}

Member Function Documentation

◆ redo()

void dbse::RemoveMethodImplementationComand::redo ( )

Definition at line 699 of file SchemaCommand.cpp.

700{
702 if (m != nullptr) {
703 SchemaMethod = m;
704 }
705
707 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
708}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
OksMethod * find_direct_method(const std::string &name) const noexcept
Find direct method.
Definition class.cpp:1290
void remove_implementation(const std::string &language)
Remove method implementation.
Definition method.cpp:395

◆ undo()

void dbse::RemoveMethodImplementationComand::undo ( )

Definition at line 711 of file SchemaCommand.cpp.

712{
715 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
716}
void add_implementation(const std::string &language, const std::string &prototype, const std::string &body)
Add method implementation.
Definition method.cpp:370

Member Data Documentation

◆ ClassName

std::string dbse::RemoveMethodImplementationComand::ClassName
private

Definition at line 406 of file SchemaCommand.hpp.

◆ MethodName

std::string dbse::RemoveMethodImplementationComand::MethodName
private

Definition at line 408 of file SchemaCommand.hpp.

◆ SchemaImplementationBody

std::string dbse::RemoveMethodImplementationComand::SchemaImplementationBody
private

Definition at line 411 of file SchemaCommand.hpp.

◆ SchemaImplementationLanguage

std::string dbse::RemoveMethodImplementationComand::SchemaImplementationLanguage
private

Definition at line 409 of file SchemaCommand.hpp.

◆ SchemaImplementationPrototype

std::string dbse::RemoveMethodImplementationComand::SchemaImplementationPrototype
private

Definition at line 410 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 407 of file SchemaCommand.hpp.


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