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::OksMethod * SchemaMethod
std::string MethodName
std::string NewMethodDescription
std::string OldMethodDescription

Detailed Description

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

750 : ClassName(Class->get_name())
751 , SchemaMethod(Method)
752 , MethodName(Method->get_name())
753 , NewMethodDescription(description)
755{
756 setText(QString::fromStdString("Set description for method \"" + SchemaMethod->get_name() + "\" of class \"" +
757 Class->get_name() + "\""));
758}
dunedaq::oks::OksMethod * SchemaMethod
const std::string & get_name() const noexcept
Definition class.hpp:374
const std::string & get_description() const noexcept
Definition method.hpp:201
const std::string & get_name() const noexcept
Definition method.hpp:185

◆ ~SetDescriptionMethodCommand()

dbse::SetDescriptionMethodCommand::~SetDescriptionMethodCommand ( )

Definition at line 760 of file SchemaCommand.cpp.

760{}

Member Function Documentation

◆ redo()

void dbse::SetDescriptionMethodCommand::redo ( )

Definition at line 763 of file SchemaCommand.cpp.

764{
766 if (m != nullptr) {
767 SchemaMethod = m;
768 }
770
771 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
772}
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_description(const std::string &description)
Set method description.
Definition method.cpp:420

◆ undo()

void dbse::SetDescriptionMethodCommand::undo ( )

Definition at line 775 of file SchemaCommand.cpp.

Member Data Documentation

◆ ClassName

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

Definition at line 439 of file SchemaCommand.hpp.

◆ MethodName

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

Definition at line 441 of file SchemaCommand.hpp.

◆ NewMethodDescription

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

Definition at line 442 of file SchemaCommand.hpp.

◆ OldMethodDescription

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

Definition at line 443 of file SchemaCommand.hpp.

◆ SchemaMethod

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

Definition at line 440 of file SchemaCommand.hpp.


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