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

Methods implementation commands. More...

#include <SchemaCommand.hpp>

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

Public Member Functions

 SetMethodImplementationLanguage (dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Language)
 ~SetMethodImplementationLanguage ()
void redo ()
void undo ()

Private Attributes

std::string ClassName
std::string MethodName
dunedaq::oks::OksMethodImplementation * SchemaImplementation
std::string NewLanguage
std::string OldLanguage

Detailed Description

Methods implementation commands.

Definition at line 313 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetMethodImplementationLanguage()

dbse::SetMethodImplementationLanguage::SetMethodImplementationLanguage ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksMethod * Method,
dunedaq::oks::OksMethodImplementation * Implementation,
std::string Language )

Definition at line 528 of file SchemaCommand.cpp.

532 : ClassName(Class->get_name())
533 , MethodName(Method->get_name())
534 , SchemaImplementation(Implementation)
535 , NewLanguage(Language)
537{
538 setText(QString::fromStdString("Changed language implementation for \"" + SchemaImplementation->get_prototype() +
539 "\" of class \"" + Class->get_name() + "\""));
540}
dunedaq::oks::OksMethodImplementation * SchemaImplementation
const std::string & get_name() const noexcept
Definition class.hpp:374
const std::string & get_language() const noexcept
Definition method.hpp:69
const std::string & get_prototype() const noexcept
Definition method.hpp:86
const std::string & get_name() const noexcept
Definition method.hpp:185

◆ ~SetMethodImplementationLanguage()

dbse::SetMethodImplementationLanguage::~SetMethodImplementationLanguage ( )

Definition at line 542 of file SchemaCommand.cpp.

542{}

Member Function Documentation

◆ redo()

void dbse::SetMethodImplementationLanguage::redo ( )

Definition at line 545 of file SchemaCommand.cpp.

546{
547 OksMethodImplementation* mi =
549 if (mi != nullptr) {
551 }
552
554 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
555}
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 set_language(const std::string &language)
Set method implementation language.
Definition method.cpp:434
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:357

◆ undo()

void dbse::SetMethodImplementationLanguage::undo ( )

Definition at line 558 of file SchemaCommand.cpp.

559{
561 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
562}

Member Data Documentation

◆ ClassName

std::string dbse::SetMethodImplementationLanguage::ClassName
private

Definition at line 325 of file SchemaCommand.hpp.

◆ MethodName

std::string dbse::SetMethodImplementationLanguage::MethodName
private

Definition at line 326 of file SchemaCommand.hpp.

◆ NewLanguage

std::string dbse::SetMethodImplementationLanguage::NewLanguage
private

Definition at line 328 of file SchemaCommand.hpp.

◆ OldLanguage

std::string dbse::SetMethodImplementationLanguage::OldLanguage
private

Definition at line 329 of file SchemaCommand.hpp.

◆ SchemaImplementation

dunedaq::oks::OksMethodImplementation* dbse::SetMethodImplementationLanguage::SchemaImplementation
private

Definition at line 327 of file SchemaCommand.hpp.


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