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::OksMethodSchemaMethod
std::string MethodName
std::string SchemaImplementationLanguage
std::string SchemaImplementationPrototype
std::string SchemaImplementationBody

Detailed Description

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

652 : ClassName(Class->get_name()),
653 SchemaMethod ( Method ),
654 MethodName ( Method->get_name() ),
655 SchemaImplementationLanguage ( Language ),
656 SchemaImplementationPrototype ( Prototype ),
658{
659 setText( QString::fromStdString("Removed implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" + Class->get_name() + "\""));
660}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:368
const std::string & get_name() const noexcept
Definition method.hpp:201

◆ ~RemoveMethodImplementationComand()

dbse::RemoveMethodImplementationComand::~RemoveMethodImplementationComand ( )

Definition at line 662 of file SchemaCommand.cpp.

663{
664}

Member Function Documentation

◆ redo()

void dbse::RemoveMethodImplementationComand::redo ( )

Definition at line 666 of file SchemaCommand.cpp.

667{
669 if(m != nullptr) {
670 SchemaMethod = m;
671 }
672
673 SchemaMethod->remove_implementation ( SchemaImplementationLanguage );
674 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
675}
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:1335

◆ undo()

void dbse::RemoveMethodImplementationComand::undo ( )

Definition at line 677 of file SchemaCommand.cpp.

678{
679 SchemaMethod->add_implementation ( SchemaImplementationLanguage,
682 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
683}

Member Data Documentation

◆ ClassName

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

Definition at line 359 of file SchemaCommand.hpp.

◆ MethodName

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

Definition at line 361 of file SchemaCommand.hpp.

◆ SchemaImplementationBody

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

Definition at line 364 of file SchemaCommand.hpp.

◆ SchemaImplementationLanguage

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

Definition at line 362 of file SchemaCommand.hpp.

◆ SchemaImplementationPrototype

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

Definition at line 363 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 360 of file SchemaCommand.hpp.


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