DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaCommand.cpp
Go to the documentation of this file.
1
2#include <QMessageBox>
6
7using namespace dunedaq::oks;
8
9
10namespace dbse
11{
12
14 : ClassName ( Class->get_name() ),
15 NewValue ( Value ),
16 OldValue ( Class->get_is_abstract() )
17{
18 setText ( QString::fromStdString("Changed abstract flag for class \"" + ClassName + "\"" ) );
19}
20
24
30
36
38 std::string Description )
39 : ClassName ( Class->get_name() ),
40 NewDescription ( Description ),
41 OldDescription ( Class->get_description() )
42{
43 setText ( QString::fromStdString("Changed description for class \"" + ClassName + "\"") );
44}
45
49
55
61
63 std::string ClassDescription,
64 bool Abstract )
65 : SchemaClass ( nullptr ),
66 SchemaClassName ( ClassName ),
67 SchemaClassDescription ( ClassDescription ),
68 SchemaAbstract ( Abstract )
69{
70 setText ( QString::fromStdString("Created new class \"" + ClassName + "\"") );
71}
72
76
83
85{
86 try
87 {
89 emit KernelWrapper::GetInstance().ClassRemoved(QString::fromStdString(SchemaClassName));
90 }
91 catch ( ... )
92 {
93 QMessageBox::warning ( 0, "Schema editor", QString ( "Error" ) );
94 }
95}
96
97RemoveClassCommand::RemoveClassCommand ( OksClass * Class, std::string ClassName,
98 std::string ClassDescription, bool Abstract )
99 : SchemaClass ( Class ),
100 SchemaClassName ( ClassName ),
101 SchemaClassDescription ( ClassDescription ),
102 SchemaAbstract ( Abstract )
103{
104 setText ( QString::fromStdString("Removed class \"" + ClassName + "\"" ));
105}
106
110
116
123
124AddSuperClassCommand::AddSuperClassCommand ( OksClass * Class, std::string SuperClass )
125 : ClassName ( Class->get_name() ),
126 NewSuperClass ( SuperClass )
127{
128 setText ( QString::fromStdString("Added new super-class \"" + SuperClass + "\" to class \"" + ClassName + "\"") );
129}
130
134
140
146
148 : ClassName ( Class->get_name() ),
149 SuperClass ( superClass )
150{
151 setText ( QString::fromStdString("Removed super-class \"" + superClass + "\" from class \"" + ClassName + "\"" ) );
152}
153
157
163
169
171 OksRelationship * Relationship,
172 std::string Name )
173 : ClassName(Class->get_name()),
174 SchemaRelationship ( Relationship ),
175 NewRelationshipName ( Name ),
176 OldRelationshipName ( SchemaRelationship->get_name() )
177{
178 setText ( QString::fromStdString("Changed relationship \"" + Relationship->get_name() + "\" to \"" + Name + "\" for class \"" + ClassName + "\"") );
179}
180
184
195
201
203 OksClass* Class, OksRelationship * Relationship, std::string ClassType )
204 : ClassName(Class->get_name()),
205 SchemaRelationship ( Relationship ),
206 RelationshipName ( Relationship->get_name()),
207 NewRelationshipType ( ClassType ),
208 OldRelationshipType ( SchemaRelationship->get_type() )
209{
210 setText ( QString::fromStdString("Relationship \"" + SchemaRelationship->get_name() +
211 "\" set to type \"" + NewRelationshipType + "\" for class \"" + ClassName + "\""));
212}
213
217
228
234
236 OksClass* Class, OksRelationship * Relationship, std::string Description )
237 : ClassName(Class->get_name()),
238 SchemaRelationship ( Relationship ),
239 RelationshipName (Relationship->get_name()),
240 NewDescription ( Description ),
241 OldDescription ( SchemaRelationship->get_description() )
242{
243 setText (QString::fromStdString("Changed description of relationship \"" + Relationship->get_name() + "\" for class \"" + ClassName + "\""));
244}
245
249
260
266
268 OksClass * Class, OksRelationship * Relationship, OksRelationship::CardinalityConstraint NewCardinality )
269 : ClassName(Class->get_name()),
270 SchemaRelationship ( Relationship ),
271 RelationshipName ( Relationship->get_name()),
272 NewLowCc ( NewCardinality ),
273 OldLowCc ( SchemaRelationship->get_low_cardinality_constraint() )
274{
275 setText( QString::fromStdString("Changed low cardinality constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
276}
277
281
292
298
300 OksClass * Class, OksRelationship * Relationship, OksRelationship::CardinalityConstraint NewCardinality )
301 : ClassName(Class->get_name()),
302 SchemaRelationship ( Relationship ),
303 RelationshipName ( Relationship->get_name() ),
304 NewHighCc ( NewCardinality ),
305 OldHighCc ( SchemaRelationship->get_high_cardinality_constraint() )
306{
307 setText( QString::fromStdString("Changed high cardinality constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
308}
309
314
325
331
333 OksClass * Class, OksRelationship * Relationship, bool Value )
334 : ClassName(Class->get_name()),
335 SchemaRelationship ( Relationship ),
336 RelationshipName ( Relationship->get_name() ),
337 NewValue ( Value ),
338 OldValue ( SchemaRelationship->get_is_composite() )
339{
340 setText( QString::fromStdString("Changed the \"is composite\" constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
341}
342
346
357
363
365 OksClass * Class, OksRelationship * Relationship, bool Value )
366 : ClassName(Class->get_name()),
367 SchemaRelationship ( Relationship ),
368 RelationshipName ( Relationship->get_name() ),
369 NewValue ( Value ),
370 OldValue ( SchemaRelationship->get_is_dependent() )
371{
372 setText( QString::fromStdString("Changed the \"is dependent\" constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
373}
374
378
389
395
397 OksClass * Class, OksRelationship * Relationship, bool Value )
398 : ClassName(Class->get_name()),
399 SchemaRelationship ( Relationship ),
400 RelationshipName ( Relationship->get_name() ),
401 NewValue ( Value ),
402 OldValue ( SchemaRelationship->get_is_exclusive() )
403{
404 setText( QString::fromStdString("Changed the \"is exclusive\" constraint for relationship \"" + Relationship->get_name() + "\" of class \"" + ClassName + "\""));
405}
406
410
421
427
428AddRelationship::AddRelationship ( OksClass * Class, std::string Name,
429 std::string Description,
430 std::string Type, bool Composite, bool Exclusive,
431 bool Dependent,
434 : ClassName ( Class->get_name() ),
435 SchemaRelationship ( nullptr ),
436 RelationshipName ( Name ),
437 RelationshipDescription ( Description ),
438 RelationshipType ( Type ),
439 IsComposite ( Composite ),
440 IsExclusive ( Exclusive ),
441 IsDependent ( Dependent ),
442 RelationshipLowCc ( LowCc ),
443 RelationshipHighCc ( HighCc )
444{
445 setText( QString::fromStdString("Added relationship \"" + Name + "\" to class \"" + Class->get_name() + "\""));
446}
447
451
463
469
471 std::string Name, std::string Description,
472 std::string Type, bool Composite, bool Exclusive,
473 bool Dependent,
476 : ClassName ( Class->get_name() ),
477 SchemaRelationship ( Relationship ),
478 RelationshipName ( Name ),
479 RelationshipDescription ( Description ),
480 RelationshipType ( Type ),
481 IsComposite ( Composite ),
482 IsExclusive ( Exclusive ),
483 IsDependent ( Dependent ),
484 RelationshipLowCc ( LowCc ),
485 RelationshipHighCc ( HighCc )
486{
487 setText( QString::fromStdString("Removed relationship \"" + Name + "\" to class \"" + Class->get_name() + "\""));
488}
489
493
499
505
507 OksClass * Class, OksMethod* Method, OksMethodImplementation * Implementation, std::string Language )
508 : ClassName(Class->get_name()),
509 MethodName ( Method->get_name() ),
510 SchemaImplementation ( Implementation ),
511 NewLanguage ( Language ),
512 OldLanguage ( SchemaImplementation->get_language() )
513{
514 setText( QString::fromStdString("Changed language implementation for \"" + SchemaImplementation->get_prototype() + "\" of class \"" + Class->get_name() + "\""));
515}
516
520
531
537
539 OksClass * Class, OksMethod * Method, OksMethodImplementation * Implementation, std::string Prototype )
540 : ClassName(Class->get_name()),
541 MethodName ( Method->get_name() ),
542 SchemaImplementation ( Implementation ),
543 ImplementationLanguage ( Implementation->get_language()),
544 NewPrototype ( Prototype ),
545 OldPrototype ( SchemaImplementation->get_prototype() )
546{
547 setText( QString::fromStdString("Changed prototype for method \"" + SchemaImplementation->get_prototype() + "\" of class \"" + ClassName + "\""));
548}
549
553
564
570
572 OksClass * Class, OksMethod * Method, OksMethodImplementation * Implementation, std::string Body )
573 : ClassName(Class->get_name()),
574 MethodName ( Method->get_name()),
575 SchemaImplementation ( Implementation ),
576 ImplementationLanguage ( Implementation->get_language() ),
577 NewBody ( Body ),
578 OldBody ( SchemaImplementation->get_body() )
579{
580 setText( QString::fromStdString("Changed body implementation for method \"" + SchemaImplementation->get_prototype() + "\" of class \"" + Class->get_name() + "\""));
581}
582
586
597
603
605 OksMethod * Method,
606 std::string Language,
607 std::string Prototype,
608 std::string Body )
609 : ClassName(Class->get_name()),
610 SchemaMethod ( Method ),
611 MethodName ( Method->get_name() ),
612 SchemaImplementationLanguage ( Language ),
613 SchemaImplementationPrototype ( Prototype ),
614 SchemaImplementationBody ( Body )
615{
616 setText( QString::fromStdString("Added implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" + Class->get_name() + "\""));
617}
618
622
635
641
643 OksMethod * Method,
644 std::string Language,
645 std::string Prototype,
646 std::string Body )
647 : ClassName(Class->get_name()),
648 SchemaMethod ( Method ),
649 MethodName ( Method->get_name() ),
650 SchemaImplementationLanguage ( Language ),
651 SchemaImplementationPrototype ( Prototype ),
652 SchemaImplementationBody ( Body )
653{
654 setText( QString::fromStdString("Removed implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" + Class->get_name() + "\""));
655}
656
660
671
679
680SetNameMethodCommand::SetNameMethodCommand ( OksClass * Class, OksMethod * Method, std::string name )
681 : ClassName(Class->get_name()),
682 SchemaMethod ( Method ),
683 NewMethodName ( name ),
684 OldMethodName ( SchemaMethod->get_name() )
685{
686 setText( QString::fromStdString("Set name for method \"" + SchemaMethod->get_name() + "\" of class \"" + Class->get_name() + "\""));
687}
688
692
694{
696 if(m != nullptr) {
697 SchemaMethod = m;
698 }
699
701 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
702}
703
705{
707 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
708}
709
711 OksMethod * Method,
712 std::string description )
713 : ClassName(Class->get_name()),
714 SchemaMethod ( Method ),
715 MethodName ( Method->get_name() ),
716 NewMethodDescription ( description ),
717 OldMethodDescription ( SchemaMethod->get_description() )
718{
719 setText( QString::fromStdString("Set description for method \"" + SchemaMethod->get_name() + "\" of class \"" + Class->get_name() + "\""));
720}
721
725
736
742
744 std::string description )
745 : ClassName ( Class->get_name() ),
746 SchemaMethod ( nullptr ),
747 SchemaName ( name ),
748 SchemaDescription ( description )
749{
750 setText( QString::fromStdString("Added method \"" + name + "\" to class \"" + Class->get_name() + "\""));
751}
752
756
763
765{
766 // Do not delete SchemaMethod (probably deleted internally by the OKS library)
768 emit KernelWrapper::GetInstance().ClassUpdated ( QString::fromStdString(ClassName) );
769}
770
772 std::string name, std::string description )
773 : ClassName ( Class->get_name() ),
774 SchemaMethod ( Method ),
775 SchemaName ( name ),
776 SchemaDescription ( description )
777{
778 setText( QString::fromStdString("Removed method \"" + name + "\" to class \"" + Class->get_name() + "\""));
779}
780
784
790
797
799 OksAttribute * Attribute,
800 std::string NewName )
801 : ClassName( Class->get_name() ),
802 SchemaAttribute ( Attribute ),
803 NewAttributeName ( NewName ),
804 OldAttributeName ( SchemaAttribute->get_name() )
805{
806 setText( QString::fromStdString("Set new name \"" + NewName + "\" to attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
807}
808
812
823
829
831 OksAttribute * Attribute,
832 std::string NewType )
833 : ClassName ( Class->get_name() ),
834 SchemaAttribute ( Attribute ),
835 AttributeName ( Attribute->get_name() ),
836 NewAttributeType ( NewType ),
837 OldAttributeType ( SchemaAttribute->get_type() )
838{
839 setText( QString::fromStdString("Set new type \"" + NewType + "\" to attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
840}
841
845
856
862
864 OksAttribute * Attribute,
865 std::string NewRange )
866 : ClassName ( Class->get_name() ),
867 SchemaAttribute ( Attribute ),
868 AttributeName ( Attribute->get_name() ),
869 NewAttributeRange ( NewRange ),
870 OldAttributeRange ( SchemaAttribute->get_range() )
871{
872 setText( QString::fromStdString("Set new range \"" + NewRange + "\" to attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
873}
874
878
889
895
897 OksAttribute * Attribute,
898 OksAttribute::Format NewFormat )
899 : ClassName ( Class->get_name() ),
900 SchemaAttribute ( Attribute ),
901 AttributeName ( Attribute->get_name() ),
902 NewAttributeFormat ( NewFormat ),
903 OldAttributeFormat ( SchemaAttribute->get_format() )
904{
905 setText( QString::fromStdString("Set new format for attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
906}
907
911
922
928
930 OksAttribute * Attribute,
931 bool NewIsMulti )
932 : ClassName ( Class->get_name() ),
933 SchemaAttribute ( Attribute ),
934 AttributeName ( Attribute->get_name() ),
935 NewAttributeMulti ( NewIsMulti ),
936 OldAttributeMulti ( SchemaAttribute->get_is_multi_values() )
937{
938 setText( QString::fromStdString("Set multiplicity for attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
939}
940
944
955
961
963 OksAttribute * Attribute,
964 bool NewIsNull )
965 : ClassName ( Class->get_name() ),
966 SchemaAttribute ( Attribute ),
967 AttributeName ( Attribute->get_name() ),
968 NewAttributeIsNull ( NewIsNull ),
969 OldAttributeIsNull ( SchemaAttribute->get_is_no_null() )
970{
971 setText( QString::fromStdString("Set null-ness for attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
972}
973
977
988
994
996 OksClass * Class,
997 OksAttribute * Attribute,
998 std::string NewValues )
999 : ClassName ( Class->get_name() ),
1000 SchemaAttribute ( Attribute ),
1001 AttributeName ( Attribute->get_name() ),
1002 NewAttributeInitialValues ( NewValues ),
1003 OldAttributeInitialValues ( SchemaAttribute->get_init_value() )
1004{
1005 setText( QString::fromStdString("Set new initial values to attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
1006}
1007
1011
1022
1028
1030 std::string type, bool is_mv, std::string range,
1031 std::string init_values, std::string description,
1032 bool is_null, OksAttribute::Format format )
1033 : ClassName ( Class->get_name() ),
1034 SchemaAttribute ( nullptr ),
1035 SchemaName ( name ),
1036 SchemaType ( type ),
1037 SchemaIsMulti ( is_mv ),
1038 SchemaRange ( range ),
1039 SchemaInitValues ( init_values ),
1040 SchemaDescription ( description ),
1041 SchemaIsNull ( is_null ),
1042 SchemaFormat ( format )
1043{
1044 setText( QString::fromStdString("Added attribute \"" + name + "\" to class \"" + Class->get_name() + "\""));
1045}
1046
1050
1059
1065
1067 std::string name, std::string type,
1068 bool is_mv, std::string range,
1069 std::string init_values,
1070 std::string description, bool is_null,
1071 OksAttribute::Format format )
1072 : ClassName ( Class->get_name() ),
1073 SchemaAttribute ( Attribute ),
1074 SchemaName ( name ),
1075 SchemaType ( type ),
1076 SchemaIsMulti ( is_mv ),
1077 SchemaRange ( range ),
1078 SchemaInitValues ( init_values ),
1079 SchemaDescription ( description ),
1080 SchemaIsNull ( is_null ),
1081 SchemaFormat ( format )
1082{
1083 setText( QString::fromStdString("Removed attribute \"" + name + "\" from class \"" + Class->get_name() + "\""));
1084}
1085
1089
1095
1104
1106 OksAttribute * Attribute,
1107 std::string NewDescription )
1108 : ClassName ( Class->get_name() ),
1109 SchemaAttribute ( Attribute ),
1110 AttributeName ( Attribute->get_name() ),
1111 NewAttributeDescription ( NewDescription ),
1112 OldAttributeDescription ( SchemaAttribute->get_description() )
1113{
1114 setText( QString::fromStdString("Set description for attribute \"" + Attribute->get_name() + "\" of class \"" + ClassName + "\""));
1115}
1116
1121
1132
1138
1139} // end namespace dbse
AddAttributeCommand(dunedaq::oks::OksClass *Class, std::string name, std::string type, bool is_mv, std::string range, std::string init_values, std::string description, bool is_null, dunedaq::oks::OksAttribute::Format format=dunedaq::oks::OksAttribute::Format::Dec)
dunedaq::oks::OksAttribute * SchemaAttribute
dunedaq::oks::OksAttribute::Format SchemaFormat
AddMethodCommand(dunedaq::oks::OksClass *Class, std::string name, std::string description)
dunedaq::oks::OksMethod * SchemaMethod
dunedaq::oks::OksMethod * SchemaMethod
AddMethodImplementationComand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)
dunedaq::oks::OksRelationship::CardinalityConstraint RelationshipLowCc
dunedaq::oks::OksRelationship::CardinalityConstraint RelationshipHighCc
std::string RelationshipDescription
dunedaq::oks::OksRelationship * SchemaRelationship
AddRelationship(dunedaq::oks::OksClass *Class, std::string Name, std::string Description, std::string Type, bool Composite, bool Exclusive, bool Dependent, dunedaq::oks::OksRelationship::CardinalityConstraint LowCc, dunedaq::oks::OksRelationship::CardinalityConstraint HighCc)
AddSuperClassCommand(dunedaq::oks::OksClass *Class, std::string SuperClass)
CreateClassCommand(std::string ClassName, std::string ClassDescription, bool Abstract)
dunedaq::oks::OksClass * SchemaClass
static KernelWrapper & GetInstance()
dunedaq::oks::OksClass * FindClass(std::string ClassName) const
void ClassUpdated(QString ClassName)
void ClassCreated(QString ClassName)
void ClassRemoved(QString ClassName)
dunedaq::oks::OksAttribute::Format SchemaFormat
RemoveAttributeCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string name, std::string type, bool is_mv, std::string range, std::string init_values, std::string description, bool is_null, dunedaq::oks::OksAttribute::Format format=dunedaq::oks::OksAttribute::Format::Dec)
dunedaq::oks::OksAttribute * SchemaAttribute
dunedaq::oks::OksClass * SchemaClass
RemoveClassCommand(dunedaq::oks::OksClass *Class, std::string ClassName, std::string ClassDescription, bool Abstract)
RemoveMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string name, std::string description)
dunedaq::oks::OksMethod * SchemaMethod
dunedaq::oks::OksMethod * SchemaMethod
RemoveMethodImplementationComand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)
dunedaq::oks::OksRelationship * SchemaRelationship
RemoveRelationship(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string Name, std::string Description, std::string Type, bool Composite, bool Exclusive, bool Dependent, dunedaq::oks::OksRelationship::CardinalityConstraint LowCc, dunedaq::oks::OksRelationship::CardinalityConstraint HighCc)
RemoveSuperClassCommand(dunedaq::oks::OksClass *Class, std::string SuperClass)
SetAbstractClassCommand(dunedaq::oks::OksClass *Class, bool Value)
SetAttributeDescriptionCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewDescription)
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeFormatCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, dunedaq::oks::OksAttribute::Format NewFormat)
dunedaq::oks::OksAttribute::Format OldAttributeFormat
dunedaq::oks::OksAttribute * SchemaAttribute
dunedaq::oks::OksAttribute::Format NewAttributeFormat
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeInitialValuesCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewValues)
SetAttributeIsNullCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, bool NewIsNull)
dunedaq::oks::OksAttribute * SchemaAttribute
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeMultiCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, bool NewIsMulti)
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeNameCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewName)
SetAttributeRangeCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewRange)
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeTypeCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewType)
dunedaq::oks::OksAttribute * SchemaAttribute
dunedaq::oks::OksRelationship * SchemaRelationship
SetClassTypeRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string ClassType)
SetDescriptionClassCommand(dunedaq::oks::OksClass *Class, std::string Description)
SetDescriptionMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string description)
dunedaq::oks::OksMethod * SchemaMethod
dunedaq::oks::OksRelationship * SchemaRelationship
SetDescriptionRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string Description)
dunedaq::oks::OksRelationship::CardinalityConstraint NewHighCc
dunedaq::oks::OksRelationship::CardinalityConstraint OldHighCc
dunedaq::oks::OksRelationship * SchemaRelationship
SetHighCcRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, dunedaq::oks::OksRelationship::CardinalityConstraint NewCardinality)
SetIsCompositeRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, bool Value)
dunedaq::oks::OksRelationship * SchemaRelationship
SetIsDependentRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, bool Value)
dunedaq::oks::OksRelationship * SchemaRelationship
SetIsExclusiveRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, bool Value)
dunedaq::oks::OksRelationship * SchemaRelationship
SetLowCcRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, dunedaq::oks::OksRelationship::CardinalityConstraint NewCardinality)
dunedaq::oks::OksRelationship::CardinalityConstraint OldLowCc
dunedaq::oks::OksRelationship * SchemaRelationship
dunedaq::oks::OksRelationship::CardinalityConstraint NewLowCc
SetMethodImplementationBody(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Body)
dunedaq::oks::OksMethodImplementation * SchemaImplementation
dunedaq::oks::OksMethodImplementation * SchemaImplementation
SetMethodImplementationLanguage(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Language)
dunedaq::oks::OksMethodImplementation * SchemaImplementation
SetMethodImplementationPrototype(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Prototype)
dunedaq::oks::OksMethod * SchemaMethod
SetNameMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string name)
dunedaq::oks::OksRelationship * SchemaRelationship
SetNameRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string Name)
OKS attribute class.
void set_range(const std::string &range)
Set attribute range.
void set_type(const std::string &type, bool skip_init=false)
Set attribute type.
void set_is_multi_values(bool multi_values)
Set attribute is a single-value or multi-value.
void set_format(Format format)
Set attribute format.
const std::string & get_name() const noexcept
out stream operator
void set_is_no_null(bool no_null)
Set attribute is-no-null property.
void set_description(const std::string &description)
Set attribute description.
void set_init_value(const std::string &init_value)
Set attribute initialisation value.
void set_name(const std::string &name)
Set attribute name.
The OKS class.
Definition class.hpp:200
OksRelationship * find_direct_relationship(const std::string &name) const noexcept
Find direct relationship.
Definition class.cpp:1173
OksAttribute * find_direct_attribute(const std::string &name) const noexcept
Find direct attribute.
Definition class.cpp:1014
void add_super_class(const std::string &name)
Definition class.cpp:878
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1052
void set_is_abstract(bool abstract)
Set class abstract property.
Definition class.cpp:798
void remove_super_class(const std::string &name)
Definition class.cpp:927
const std::string & get_name() const noexcept
Definition class.hpp:363
void remove(const OksAttribute *a)
Remove attribute.
Definition class.cpp:1125
void set_description(const std::string &description)
Set class description.
Definition class.cpp:780
static void destroy(OksClass *c)
Destroy OKS class.
Definition class.cpp:171
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
const std::string & get_prototype() const noexcept
Definition method.hpp:82
void set_language(const std::string &language)
Set method implementation language.
Definition method.cpp:424
void set_body(const std::string &body)
Set method implementation body.
Definition method.cpp:475
OKS method class.
Definition method.hpp:153
void set_name(const std::string &name)
Set method name.
Definition method.cpp:298
void set_description(const std::string &description)
Set method description.
Definition method.cpp:412
void add_implementation(const std::string &language, const std::string &prototype, const std::string &body)
Add method implementation.
Definition method.cpp:365
void remove_implementation(const std::string &language)
Remove method implementation.
Definition method.cpp:388
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:354
const std::string & get_name() const noexcept
Definition method.hpp:196
void set_type(const std::string &type)
Set relationship type.
void set_is_exclusive(bool exclusive)
Set the composite relationship exclusive property.
const std::string & get_name() const noexcept
void set_is_dependent(bool dependent)
Set the composite relationship dependent property.
void set_is_composite(bool composite)
Set the composite relationship property.
void set_high_cardinality_constraint(CardinalityConstraint)
Set relationship high cardinality constraint.
void set_low_cardinality_constraint(CardinalityConstraint cc)
Set relationship low cardinality constraint.
void set_description(const std::string &description)
Set relationship description.
void set_name(const std::string &)
Set relationship name.
Including QT Headers.
std::string get_type(oks::OksData::Type oks_type, bool is_cpp)
Definition utils.cpp:99