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

#include <SchemaCommand.hpp>

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

Public Member Functions

 SetIsCompositeRelationshipCommand (dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, bool Value)
 
 ~SetIsCompositeRelationshipCommand ()
 
void redo ()
 
void undo ()
 

Private Attributes

std::string ClassName
 
dunedaq::oks::OksRelationshipSchemaRelationship
 
std::string RelationshipName
 
bool NewValue
 
bool OldValue
 

Detailed Description

Definition at line 180 of file SchemaCommand.hpp.

Constructor & Destructor Documentation

◆ SetIsCompositeRelationshipCommand()

dbse::SetIsCompositeRelationshipCommand::SetIsCompositeRelationshipCommand ( dunedaq::oks::OksClass * Class,
dunedaq::oks::OksRelationship * Relationship,
bool Value )

Definition at line 332 of file SchemaCommand.cpp.

334 : ClassName(Class->get_name()),
335 SchemaRelationship ( Relationship ),
336 RelationshipName ( Relationship->get_name() ),
337 NewValue ( Value ),
339{
340 setText( QString::fromStdString("Changed the \"is composite\" constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
341}
dunedaq::oks::OksRelationship * SchemaRelationship
const std::string & get_name() const noexcept
Definition class.hpp:363
bool get_is_composite() const noexcept
const std::string & get_name() const noexcept

◆ ~SetIsCompositeRelationshipCommand()

dbse::SetIsCompositeRelationshipCommand::~SetIsCompositeRelationshipCommand ( )

Definition at line 343 of file SchemaCommand.cpp.

344{
345}

Member Function Documentation

◆ redo()

void dbse::SetIsCompositeRelationshipCommand::redo ( )

Definition at line 347 of file SchemaCommand.cpp.

348{
350 if(r != nullptr) {
352 }
353
355 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
356}
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
OksRelationship * find_direct_relationship(const std::string &name) const noexcept
Find direct relationship.
Definition class.cpp:1173
void set_is_composite(bool composite)
Set the composite relationship property.

◆ undo()

void dbse::SetIsCompositeRelationshipCommand::undo ( )

Definition at line 358 of file SchemaCommand.cpp.

359{
361 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
362}

Member Data Documentation

◆ ClassName

std::string dbse::SetIsCompositeRelationshipCommand::ClassName
private

Definition at line 188 of file SchemaCommand.hpp.

◆ NewValue

bool dbse::SetIsCompositeRelationshipCommand::NewValue
private

Definition at line 191 of file SchemaCommand.hpp.

◆ OldValue

bool dbse::SetIsCompositeRelationshipCommand::OldValue
private

Definition at line 192 of file SchemaCommand.hpp.

◆ RelationshipName

std::string dbse::SetIsCompositeRelationshipCommand::RelationshipName
private

Definition at line 190 of file SchemaCommand.hpp.

◆ SchemaRelationship

dunedaq::oks::OksRelationship* dbse::SetIsCompositeRelationshipCommand::SchemaRelationship
private

Definition at line 189 of file SchemaCommand.hpp.


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