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

#include <SchemaCommand.hpp>

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

Public Member Functions

 SetDescriptionMethodCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string description)
 
 ~SetDescriptionMethodCommand ()
 
void redo ()
 
void undo ()
 

Private Attributes

std::string ClassName
 
dunedaq::oks::OksMethodSchemaMethod
 
std::string MethodName
 
std::string NewMethodDescription
 
std::string OldMethodDescription
 

Detailed Description

Definition at line 377 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetDescriptionMethodCommand()

dbse::SetDescriptionMethodCommand::SetDescriptionMethodCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksMethod * Method,
std::string description )

Definition at line 710 of file SchemaCommand.cpp.

713 : ClassName(Class->get_name()),
714 SchemaMethod ( Method ),
715 MethodName ( Method->get_name() ),
716 NewMethodDescription ( description ),
718{
719 setText( QString::fromStdString("Set description for method \"" + SchemaMethod->get_name() + "\" of class \"" + Class->get_name() + "\""));
720}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:363
const std::string & get_description() const noexcept
Definition method.hpp:214
const std::string & get_name() const noexcept
Definition method.hpp:196

◆ ~SetDescriptionMethodCommand()

dbse::SetDescriptionMethodCommand::~SetDescriptionMethodCommand ( )

Definition at line 722 of file SchemaCommand.cpp.

723{
724}

Member Function Documentation

◆ redo()

void dbse::SetDescriptionMethodCommand::redo ( )

Definition at line 726 of file SchemaCommand.cpp.

727{
729 if(m != nullptr) {
730 SchemaMethod = m;
731 }
733
734 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
735}
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 class.
Definition method.hpp:153
void set_description(const std::string &description)
Set method description.
Definition method.cpp:412

◆ undo()

void dbse::SetDescriptionMethodCommand::undo ( )

Definition at line 737 of file SchemaCommand.cpp.

738{
740 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
741}

Member Data Documentation

◆ ClassName

std::string dbse::SetDescriptionMethodCommand::ClassName
private

Definition at line 385 of file SchemaCommand.hpp.

◆ MethodName

std::string dbse::SetDescriptionMethodCommand::MethodName
private

Definition at line 387 of file SchemaCommand.hpp.

◆ NewMethodDescription

std::string dbse::SetDescriptionMethodCommand::NewMethodDescription
private

Definition at line 388 of file SchemaCommand.hpp.

◆ OldMethodDescription

std::string dbse::SetDescriptionMethodCommand::OldMethodDescription
private

Definition at line 389 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 386 of file SchemaCommand.hpp.


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