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::OksMethodImplementationSchemaImplementation
 
std::string ImplementationLanguage
 
std::string NewPrototype
 
std::string OldPrototype
 

Detailed Description

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

540 : ClassName(Class->get_name()),
541 MethodName ( Method->get_name() ),
542 SchemaImplementation ( Implementation ),
543 ImplementationLanguage ( Implementation->get_language()),
544 NewPrototype ( Prototype ),
546{
547 setText( QString::fromStdString("Changed prototype for method \"" + SchemaImplementation->get_prototype() + "\" of class \"" + ClassName + "\""));
548}
dunedaq::oks::OksMethodImplementation * SchemaImplementation
const std::string & get_name() const noexcept
Definition class.hpp:363
const std::string & get_language() const noexcept
Definition method.hpp:63
const std::string & get_prototype() const noexcept
Definition method.hpp:82
const std::string & get_name() const noexcept
Definition method.hpp:196

◆ ~SetMethodImplementationPrototype()

dbse::SetMethodImplementationPrototype::~SetMethodImplementationPrototype ( )

Definition at line 550 of file SchemaCommand.cpp.

551{
552}

Member Function Documentation

◆ redo()

void dbse::SetMethodImplementationPrototype::redo ( )

Definition at line 554 of file SchemaCommand.cpp.

555{
557 if(mi != nullptr) {
559 }
560
562 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
563}
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:1330
OKS method implementation class.
Definition method.hpp:35
void set_prototype(const std::string &prototype)
Set method implementation prototype.
Definition method.cpp:454
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:354

◆ undo()

void dbse::SetMethodImplementationPrototype::undo ( )

Definition at line 565 of file SchemaCommand.cpp.

566{
568 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
569}

Member Data Documentation

◆ ClassName

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

Definition at line 302 of file SchemaCommand.hpp.

◆ ImplementationLanguage

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

Definition at line 305 of file SchemaCommand.hpp.

◆ MethodName

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

Definition at line 303 of file SchemaCommand.hpp.

◆ NewPrototype

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

Definition at line 306 of file SchemaCommand.hpp.

◆ OldPrototype

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

Definition at line 307 of file SchemaCommand.hpp.

◆ SchemaImplementation

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

Definition at line 304 of file SchemaCommand.hpp.


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