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

#include <SchemaCommand.hpp>

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

Public Member Functions

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

Private Attributes

std::string ClassName
 
std::string MethodName
 
dunedaq::oks::OksMethodImplementationSchemaImplementation
 
std::string ImplementationLanguage
 
std::string NewBody
 
std::string OldBody
 

Detailed Description

Definition at line 310 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetMethodImplementationBody()

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

Definition at line 571 of file SchemaCommand.cpp.

573 : ClassName(Class->get_name()),
574 MethodName ( Method->get_name()),
575 SchemaImplementation ( Implementation ),
576 ImplementationLanguage ( Implementation->get_language() ),
577 NewBody ( Body ),
579{
580 setText( QString::fromStdString("Changed body implementation for method \"" + SchemaImplementation->get_prototype() + "\" of class \"" + Class->get_name() + "\""));
581}
dunedaq::oks::OksMethodImplementation * SchemaImplementation
const std::string & get_name() const noexcept
Definition class.hpp:363
const std::string & get_body() const noexcept
Definition method.hpp:99
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

◆ ~SetMethodImplementationBody()

dbse::SetMethodImplementationBody::~SetMethodImplementationBody ( )

Definition at line 583 of file SchemaCommand.cpp.

584{
585}

Member Function Documentation

◆ redo()

void dbse::SetMethodImplementationBody::redo ( )

Definition at line 587 of file SchemaCommand.cpp.

588{
590 if(mi != nullptr) {
592 }
593
595 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
596}
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_body(const std::string &body)
Set method implementation body.
Definition method.cpp:475
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:354

◆ undo()

void dbse::SetMethodImplementationBody::undo ( )

Definition at line 598 of file SchemaCommand.cpp.

599{
601 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
602}

Member Data Documentation

◆ ClassName

std::string dbse::SetMethodImplementationBody::ClassName
private

Definition at line 318 of file SchemaCommand.hpp.

◆ ImplementationLanguage

std::string dbse::SetMethodImplementationBody::ImplementationLanguage
private

Definition at line 321 of file SchemaCommand.hpp.

◆ MethodName

std::string dbse::SetMethodImplementationBody::MethodName
private

Definition at line 319 of file SchemaCommand.hpp.

◆ NewBody

std::string dbse::SetMethodImplementationBody::NewBody
private

Definition at line 322 of file SchemaCommand.hpp.

◆ OldBody

std::string dbse::SetMethodImplementationBody::OldBody
private

Definition at line 323 of file SchemaCommand.hpp.

◆ SchemaImplementation

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

Definition at line 320 of file SchemaCommand.hpp.


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