DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaCommand.cpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from src/SchemaEditor/SchemaCommand.cpp to apps/SchemaEditor/SchemaCommand.cpp).
5
7#include <QMessageBox>
11
12using namespace dunedaq::oks;
13
14namespace dbse {
15
17 : ClassName(Class->get_name())
18 , NewValue(Value)
19 , OldValue(Class->get_is_abstract())
20{
21 setText(QString::fromStdString("Changed abstract flag for class \"" + ClassName + "\""));
22}
23
25
26void
32
33void
39
41 : ClassName(Class->get_name())
42 , NewDescription(Description)
43 , OldDescription(Class->get_description())
44{
45 setText(QString::fromStdString("Changed description for class \"" + ClassName + "\""));
46}
47
49
50void
56
57void
63
64CreateClassCommand::CreateClassCommand(std::string ClassName, std::string ClassDescription, 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
74
75void
82
83void
85{
86 try {
88 emit KernelWrapper::GetInstance().ClassRemoved(QString::fromStdString(SchemaClassName));
89 } catch (...) {
90 QMessageBox::warning(0, "Schema editor", QString("Error"));
91 }
92}
93
95 std::string ClassName,
96 std::string ClassDescription,
97 bool Abstract)
98 : SchemaClass(Class)
99 , SchemaClassName(ClassName)
100 , SchemaClassDescription(ClassDescription)
101 , SchemaAbstract(Abstract)
102{
103 setText(QString::fromStdString("Removed class \"" + ClassName + "\""));
104}
105
107
108void
114
115void
122
124 : ClassName(Class->get_name())
125 , NewSuperClass(SuperClass)
126{
127 setText(QString::fromStdString("Added new super-class \"" + SuperClass + "\" to class \"" + ClassName + "\""));
128}
129
131
132void
138
139void
145
147 : ClassName(Class->get_name())
148 , SuperClass(superClass)
149{
150 setText(QString::fromStdString("Removed super-class \"" + superClass + "\" from class \"" + ClassName + "\""));
151}
152
154
155void
161
162void
168
170 : ClassName(Class->get_name())
171 , SchemaRelationship(Relationship)
172 , NewRelationshipName(Name)
174{
175 setText(QString::fromStdString("Changed relationship \"" + Relationship->get_name() + "\" to \"" + Name +
176 "\" for class \"" + ClassName + "\""));
177}
178
180
181void
192
193void
199
201 OksRelationship* Relationship,
202 std::string ClassType)
203 : ClassName(Class->get_name())
204 , SchemaRelationship(Relationship)
205 , RelationshipName(Relationship->get_name())
206 , NewRelationshipType(ClassType)
208{
209 setText(QString::fromStdString("Relationship \"" + SchemaRelationship->get_name() + "\" set to type \"" +
210 NewRelationshipType + "\" for class \"" + ClassName + "\""));
211}
212
214
215void
226
227void
233
235 OksRelationship* Relationship,
236 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() +
244 "\" for class \"" + ClassName + "\""));
245}
246
248
249void
260
261void
267
269 OksRelationship* Relationship,
271 : ClassName(Class->get_name())
272 , SchemaRelationship(Relationship)
273 , RelationshipName(Relationship->get_name())
274 , NewLowCc(NewCardinality)
275 , OldLowCc(SchemaRelationship->get_low_cardinality_constraint())
276{
277 setText(QString::fromStdString("Changed low cardinality constraint for relationship \"" + Relationship->get_name() +
278 "\" of class \"" + ClassName + "\""));
279}
280
282
283void
294
295void
301
303 OksRelationship* Relationship,
305 : ClassName(Class->get_name())
306 , SchemaRelationship(Relationship)
307 , RelationshipName(Relationship->get_name())
308 , NewHighCc(NewCardinality)
309 , OldHighCc(SchemaRelationship->get_high_cardinality_constraint())
310{
311 setText(QString::fromStdString("Changed high cardinality constraint for relationship \"" + Relationship->get_name() +
312 "\" of class \"" + ClassName + "\""));
313}
314
316
317void
328
329void
335
337 OksRelationship* Relationship,
338 bool Value)
339 : ClassName(Class->get_name())
340 , SchemaRelationship(Relationship)
341 , RelationshipName(Relationship->get_name())
342 , NewValue(Value)
343 , OldValue(SchemaRelationship->get_is_composite())
344{
345 setText(QString::fromStdString("Changed the \"is composite\" constraint for relationship \"" +
346 Relationship->get_name() + "\" of class \"" + ClassName + "\""));
347}
348
350
351void
362
363void
369
371 OksRelationship* Relationship,
372 bool Value)
373 : ClassName(Class->get_name())
374 , SchemaRelationship(Relationship)
375 , RelationshipName(Relationship->get_name())
376 , NewValue(Value)
377 , OldValue(SchemaRelationship->get_is_dependent())
378{
379 setText(QString::fromStdString("Changed the \"is dependent\" constraint for relationship \"" +
380 Relationship->get_name() + "\" of class \"" + ClassName + "\""));
381}
382
384
385void
396
397void
403
405 OksRelationship* Relationship,
406 bool Value)
407 : ClassName(Class->get_name())
408 , SchemaRelationship(Relationship)
409 , RelationshipName(Relationship->get_name())
410 , NewValue(Value)
411 , OldValue(SchemaRelationship->get_is_exclusive())
412{
413 setText(QString::fromStdString("Changed the \"is exclusive\" constraint for relationship \"" +
414 Relationship->get_name() + "\" of class \"" + ClassName + "\""));
415}
416
418
419void
430
431void
437
439 std::string Name,
440 std::string Description,
441 std::string Type,
442 bool Composite,
443 bool Exclusive,
444 bool Dependent,
447 : ClassName(Class->get_name())
448 , SchemaRelationship(nullptr)
449 , RelationshipName(Name)
450 , RelationshipDescription(Description)
451 , RelationshipType(Type)
452 , IsComposite(Composite)
453 , IsExclusive(Exclusive)
454 , IsDependent(Dependent)
455 , RelationshipLowCc(LowCc)
456 , RelationshipHighCc(HighCc)
457{
458 setText(QString::fromStdString("Added relationship \"" + Name + "\" to class \"" + Class->get_name() + "\""));
459}
460
462
463void
480
481void
487
489 OksRelationship* Relationship,
490 std::string Name,
491 std::string Description,
492 std::string Type,
493 bool Composite,
494 bool Exclusive,
495 bool Dependent,
498 : ClassName(Class->get_name())
499 , SchemaRelationship(Relationship)
500 , RelationshipName(Name)
501 , RelationshipDescription(Description)
502 , RelationshipType(Type)
503 , IsComposite(Composite)
504 , IsExclusive(Exclusive)
505 , IsDependent(Dependent)
506 , RelationshipLowCc(LowCc)
507 , RelationshipHighCc(HighCc)
508{
509 setText(QString::fromStdString("Removed relationship \"" + Name + "\" to class \"" + Class->get_name() + "\""));
510}
511
513
514void
520
521void
527
529 OksMethod* Method,
530 OksMethodImplementation* Implementation,
531 std::string Language)
532 : ClassName(Class->get_name())
533 , MethodName(Method->get_name())
534 , SchemaImplementation(Implementation)
535 , NewLanguage(Language)
536 , OldLanguage(SchemaImplementation->get_language())
537{
538 setText(QString::fromStdString("Changed language implementation for \"" + SchemaImplementation->get_prototype() +
539 "\" of class \"" + Class->get_name() + "\""));
540}
541
543
544void
556
557void
563
565 OksMethod* Method,
566 OksMethodImplementation* Implementation,
567 std::string Prototype)
568 : ClassName(Class->get_name())
569 , MethodName(Method->get_name())
570 , SchemaImplementation(Implementation)
571 , ImplementationLanguage(Implementation->get_language())
572 , NewPrototype(Prototype)
573 , OldPrototype(SchemaImplementation->get_prototype())
574{
575 setText(QString::fromStdString("Changed prototype for method \"" + SchemaImplementation->get_prototype() +
576 "\" of class \"" + ClassName + "\""));
577}
578
580
581void
595
596void
602
604 OksMethod* Method,
605 OksMethodImplementation* Implementation,
606 std::string Body)
607 : ClassName(Class->get_name())
608 , MethodName(Method->get_name())
609 , SchemaImplementation(Implementation)
610 , ImplementationLanguage(Implementation->get_language())
611 , NewBody(Body)
612 , OldBody(SchemaImplementation->get_body())
613{
614 setText(QString::fromStdString("Changed body implementation for method \"" + SchemaImplementation->get_prototype() +
615 "\" of class \"" + Class->get_name() + "\""));
616}
617
619
620void
634
635void
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())
653{
654 setText(QString::fromStdString("Added implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" +
655 Class->get_name() + "\""));
656}
657
659
660void
672
673void
679
681 OksMethod* Method,
682 std::string Language,
683 std::string Prototype,
684 std::string Body)
685 : ClassName(Class->get_name())
686 , SchemaMethod(Method)
687 , MethodName(Method->get_name())
691{
692 setText(QString::fromStdString("Removed implementation for method \"" + SchemaMethod->get_name() + "\" for class \"" +
693 Class->get_name() + "\""));
694}
695
697
698void
709
710void
717
719 : ClassName(Class->get_name())
720 , SchemaMethod(Method)
721 , NewMethodName(name)
722 , OldMethodName(SchemaMethod->get_name())
723{
724 setText(QString::fromStdString("Set name for method \"" + SchemaMethod->get_name() + "\" of class \"" +
725 Class->get_name() + "\""));
726}
727
729
730void
741
742void
748
750 : ClassName(Class->get_name())
751 , SchemaMethod(Method)
752 , MethodName(Method->get_name())
753 , NewMethodDescription(description)
754 , OldMethodDescription(SchemaMethod->get_description())
755{
756 setText(QString::fromStdString("Set description for method \"" + SchemaMethod->get_name() + "\" of class \"" +
757 Class->get_name() + "\""));
758}
759
761
762void
773
774void
780
781AddMethodCommand::AddMethodCommand(OksClass* Class, std::string name, std::string description)
782 : ClassName(Class->get_name())
783 , SchemaMethod(nullptr)
784 , SchemaName(name)
785 , SchemaDescription(description)
786{
787 setText(QString::fromStdString("Added method \"" + name + "\" to class \"" + Class->get_name() + "\""));
788}
789
791
792void
799
800void
802{
803 // Do not delete SchemaMethod (probably deleted internally by the OKS library)
805 emit KernelWrapper::GetInstance().ClassUpdated(QString::fromStdString(ClassName));
806}
807
808RemoveMethodCommand::RemoveMethodCommand(OksClass* Class, OksMethod* Method, std::string name, std::string description)
809 : ClassName(Class->get_name())
810 , SchemaMethod(Method)
811 , SchemaName(name)
812 , SchemaDescription(description)
813{
814 setText(QString::fromStdString("Removed method \"" + name + "\" to class \"" + Class->get_name() + "\""));
815}
816
818
819void
825
826void
833
835 : ClassName(Class->get_name())
836 , SchemaAttribute(Attribute)
837 , NewAttributeName(NewName)
838 , OldAttributeName(SchemaAttribute->get_name())
839{
840 setText(QString::fromStdString("Set new name \"" + NewName + "\" to attribute \"" + Attribute->get_name() +
841 "\" of class \"" + ClassName + "\""));
842}
843
845
846void
857
858void
864
866 : ClassName(Class->get_name())
867 , SchemaAttribute(Attribute)
868 , AttributeName(Attribute->get_name())
869 , NewAttributeType(NewType)
871{
872 setText(QString::fromStdString("Set new type \"" + NewType + "\" to attribute \"" + Attribute->get_name() +
873 "\" of class \"" + ClassName + "\""));
874}
875
877
878void
889
890void
896
898 : ClassName(Class->get_name())
899 , SchemaAttribute(Attribute)
900 , AttributeName(Attribute->get_name())
901 , NewAttributeRange(NewRange)
902 , OldAttributeRange(SchemaAttribute->get_range())
903{
904 setText(QString::fromStdString("Set new range \"" + NewRange + "\" to attribute \"" + Attribute->get_name() +
905 "\" of class \"" + ClassName + "\""));
906}
907
909
910void
921
922void
928
930 OksAttribute* Attribute,
931 OksAttribute::Format NewFormat)
932 : ClassName(Class->get_name())
933 , SchemaAttribute(Attribute)
934 , AttributeName(Attribute->get_name())
935 , NewAttributeFormat(NewFormat)
936 , OldAttributeFormat(SchemaAttribute->get_format())
937{
938 setText(QString::fromStdString("Set new format for attribute \"" + Attribute->get_name() + "\" of class \"" +
939 ClassName + "\""));
940}
941
943
944void
955
956void
962
964 : ClassName(Class->get_name())
965 , SchemaAttribute(Attribute)
966 , AttributeName(Attribute->get_name())
967 , NewAttributeMulti(NewIsMulti)
968 , OldAttributeMulti(SchemaAttribute->get_is_multi_values())
969{
970 setText(QString::fromStdString("Set multiplicity for attribute \"" + Attribute->get_name() + "\" of class \"" +
971 ClassName + "\""));
972}
973
975
976void
987
988void
994
996 : ClassName(Class->get_name())
997 , SchemaAttribute(Attribute)
998 , AttributeName(Attribute->get_name())
999 , NewAttributeIsNull(NewIsNull)
1000 , OldAttributeIsNull(SchemaAttribute->get_is_no_null())
1001{
1002 setText(QString::fromStdString("Set null-ness for attribute \"" + Attribute->get_name() + "\" of class \"" +
1003 ClassName + "\""));
1004}
1005
1007
1008void
1019
1020void
1026
1028 OksAttribute* Attribute,
1029 std::string NewValues)
1030 : ClassName(Class->get_name())
1031 , SchemaAttribute(Attribute)
1032 , AttributeName(Attribute->get_name())
1033 , NewAttributeInitialValues(NewValues)
1034 , OldAttributeInitialValues(SchemaAttribute->get_init_value())
1035{
1036 setText(QString::fromStdString("Set new initial values to attribute \"" + Attribute->get_name() + "\" of class \"" +
1037 ClassName + "\""));
1038}
1039
1041
1042void
1053
1054void
1060
1062 std::string name,
1063 std::string type,
1064 bool is_mv,
1065 std::string range,
1066 std::string init_values,
1067 std::string description,
1068 bool is_null,
1069 OksAttribute::Format format)
1070 : ClassName(Class->get_name())
1071 , SchemaAttribute(nullptr)
1072 , SchemaName(name)
1073 , SchemaType(type)
1074 , SchemaIsMulti(is_mv)
1076 , SchemaInitValues(init_values)
1077 , SchemaDescription(description)
1078 , SchemaIsNull(is_null)
1079 , SchemaFormat(format)
1080{
1081 setText(QString::fromStdString("Added attribute \"" + name + "\" to class \"" + Class->get_name() + "\""));
1082}
1083
1085
1086void
1100
1101void
1107
1109 OksAttribute* Attribute,
1110 std::string name,
1111 std::string type,
1112 bool is_mv,
1113 std::string range,
1114 std::string init_values,
1115 std::string description,
1116 bool is_null,
1117 OksAttribute::Format format)
1118 : ClassName(Class->get_name())
1119 , SchemaAttribute(Attribute)
1120 , SchemaName(name)
1121 , SchemaType(type)
1122 , SchemaIsMulti(is_mv)
1124 , SchemaInitValues(init_values)
1125 , SchemaDescription(description)
1126 , SchemaIsNull(is_null)
1127 , SchemaFormat(format)
1128{
1129 setText(QString::fromStdString("Removed attribute \"" + name + "\" from class \"" + Class->get_name() + "\""));
1130}
1131
1133
1134void
1140
1141void
1155
1157 OksAttribute* Attribute,
1158 std::string NewDescription)
1159 : ClassName(Class->get_name())
1160 , SchemaAttribute(Attribute)
1161 , AttributeName(Attribute->get_name())
1162 , NewAttributeDescription(NewDescription)
1163 , OldAttributeDescription(SchemaAttribute->get_description())
1164{
1165 setText(QString::fromStdString("Set description for attribute \"" + Attribute->get_name() + "\" of class \"" +
1166 ClassName + "\""));
1167}
1168
1170
1171void
1182
1183void
1189
1190} // 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::CardinalityConstraint RelationshipLowCc
dunedaq::oks::OksRelationship * SchemaRelationship
dunedaq::oks::OksRelationship::CardinalityConstraint RelationshipHighCc
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.
Definition attribute.hpp:94
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
OksAttribute(const std::string &name, OksClass *p=nullptr)
OKS attribute simple constructor.
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:223
OksRelationship * find_direct_relationship(const std::string &name) const noexcept
Find direct relationship.
Definition class.cpp:1130
OksAttribute * find_direct_attribute(const std::string &name) const noexcept
Find direct attribute.
Definition class.cpp:973
void add_super_class(const std::string &name)
Definition class.cpp:840
void add(OksAttribute *a)
Add attribute.
Definition class.cpp:1009
void set_is_abstract(bool abstract)
Set class abstract property.
Definition class.cpp:762
void remove_super_class(const std::string &name)
Definition class.cpp:887
const std::string & get_name() const noexcept
Definition class.hpp:374
void remove(const OksAttribute *a)
Remove attribute.
Definition class.cpp:1082
void set_description(const std::string &description)
Set class description.
Definition class.cpp:745
OksClass(const std::string &name, OksKernel *kernel, bool transient=false)
Create OKS class.
Definition class.cpp:81
static void destroy(OksClass *c)
Destroy OKS class.
Definition class.cpp:172
OksMethod * find_direct_method(const std::string &name) const noexcept
Find direct method.
Definition class.cpp:1290
OKS method implementation class.
Definition method.hpp:39
void set_prototype(const std::string &prototype)
Set method implementation prototype.
Definition method.cpp:465
const std::string & get_prototype() const noexcept
Definition method.hpp:86
void set_language(const std::string &language)
Set method implementation language.
Definition method.cpp:434
void set_body(const std::string &body)
Set method implementation body.
Definition method.cpp:486
OKS method class.
Definition method.hpp:147
void set_name(const std::string &name)
Set method name.
Definition method.cpp:308
void set_description(const std::string &description)
Set method description.
Definition method.cpp:420
void add_implementation(const std::string &language, const std::string &prototype, const std::string &body)
Add method implementation.
Definition method.cpp:370
void remove_implementation(const std::string &language)
Remove method implementation.
Definition method.cpp:395
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
Definition method.cpp:357
const std::string & get_name() const noexcept
Definition method.hpp:185
OksMethod(const std::string &name, OksClass *p=nullptr)
OKS method constructor.
Definition method.cpp:116
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.
OksRelationship(const std::string &name, OksClass *p=nullptr)
OKS relationship simple constructor.
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.
DAC value out of range
Message.
Definition DACNode.hpp:32
std::string get_type(oks::OksData::Type oks_type, bool is_cpp)
Definition utils.cpp:95