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

#include <SchemaCommand.hpp>

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

Public Member Functions

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

Private Attributes

std::string ClassName
std::string MethodName
dunedaq::oks::OksMethodImplementation * SchemaImplementation
std::string ImplementationLanguage
std::string NewPrototype
std::string OldPrototype

Detailed Description

Definition at line 332 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetMethodImplementationPrototype()

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

Definition at line 564 of file SchemaCommand.cpp.

568 : ClassName(Class->get_name())
569 , MethodName(Method->get_name())
570 , SchemaImplementation(Implementation)
571 , ImplementationLanguage(Implementation->get_language())
572 , NewPrototype(Prototype)
574{
575 setText(QString::fromStdString("Changed prototype for method \"" + SchemaImplementation->get_prototype() +
576 "\" of class \"" + ClassName + "\""));
577}
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

◆ ~SetMethodImplementationPrototype()

dbse::SetMethodImplementationPrototype::~SetMethodImplementationPrototype ( )

Definition at line 579 of file SchemaCommand.cpp.

579{}

Member Function Documentation

◆ redo()

void dbse::SetMethodImplementationPrototype::redo ( )

Definition at line 582 of file SchemaCommand.cpp.

583{
584 OksMethodImplementation* mi = KernelWrapper::GetInstance()
588 if (mi != nullptr) {
590 }
591
593 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
594}
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_prototype(const std::string &prototype)
Set method implementation prototype.
Definition method.cpp:465
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:357

◆ undo()

void dbse::SetMethodImplementationPrototype::undo ( )

Definition at line 597 of file SchemaCommand.cpp.

Member Data Documentation

◆ ClassName

std::string dbse::SetMethodImplementationPrototype::ClassName
private

Definition at line 344 of file SchemaCommand.hpp.

◆ ImplementationLanguage

std::string dbse::SetMethodImplementationPrototype::ImplementationLanguage
private

Definition at line 347 of file SchemaCommand.hpp.

◆ MethodName

std::string dbse::SetMethodImplementationPrototype::MethodName
private

Definition at line 345 of file SchemaCommand.hpp.

◆ NewPrototype

std::string dbse::SetMethodImplementationPrototype::NewPrototype
private

Definition at line 348 of file SchemaCommand.hpp.

◆ OldPrototype

std::string dbse::SetMethodImplementationPrototype::OldPrototype
private

Definition at line 349 of file SchemaCommand.hpp.

◆ SchemaImplementation

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

Definition at line 346 of file SchemaCommand.hpp.


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