14 : ClassName ( Class->get_name() ),
16 OldValue ( Class->get_is_abstract() )
18 setText ( QString::fromStdString(
"Changed abstract flag for class \"" +
ClassName +
"\"" ) );
38 std::string Description )
39 : ClassName ( Class->get_name() ),
40 NewDescription ( Description ),
41 OldDescription ( Class->get_description() )
43 setText ( QString::fromStdString(
"Changed description for class \"" +
ClassName +
"\"") );
63 std::string ClassDescription,
65 : SchemaClass ( nullptr ),
66 SchemaClassName ( ClassName ),
67 SchemaClassDescription ( ClassDescription ),
68 SchemaAbstract ( Abstract )
70 setText ( QString::fromStdString(
"Created new class \"" + ClassName +
"\"") );
93 QMessageBox::warning ( 0,
"Schema editor", QString (
"Error" ) );
98 std::string ClassDescription,
bool Abstract )
99 : SchemaClass ( Class ),
100 SchemaClassName ( ClassName ),
101 SchemaClassDescription ( ClassDescription ),
102 SchemaAbstract ( Abstract )
104 setText ( QString::fromStdString(
"Removed class \"" + ClassName +
"\"" ));
125 : ClassName ( Class->get_name() ),
126 NewSuperClass ( SuperClass )
128 setText ( QString::fromStdString(
"Added new super-class \"" + SuperClass +
"\" to class \"" +
ClassName +
"\"") );
148 : ClassName ( Class->get_name() ),
149 SuperClass ( superClass )
151 setText ( QString::fromStdString(
"Removed super-class \"" + superClass +
"\" from class \"" +
ClassName +
"\"" ) );
173 : ClassName(Class->get_name()),
174 SchemaRelationship ( Relationship ),
175 NewRelationshipName ( Name ),
176 OldRelationshipName ( SchemaRelationship->get_name() )
178 setText ( QString::fromStdString(
"Changed relationship \"" + Relationship->
get_name() +
"\" to \"" + Name +
"\" for class \"" +
ClassName +
"\"") );
204 : ClassName(Class->get_name()),
205 SchemaRelationship ( Relationship ),
206 RelationshipName ( Relationship->get_name()),
207 NewRelationshipType ( ClassType ),
208 OldRelationshipType ( SchemaRelationship->
get_type() )
237 : ClassName(Class->get_name()),
238 SchemaRelationship ( Relationship ),
239 RelationshipName (Relationship->get_name()),
240 NewDescription ( Description ),
241 OldDescription ( SchemaRelationship->get_description() )
243 setText (QString::fromStdString(
"Changed description of relationship \"" + Relationship->
get_name() +
"\" for class \"" +
ClassName +
"\""));
269 : ClassName(Class->get_name()),
270 SchemaRelationship ( Relationship ),
271 RelationshipName ( Relationship->get_name()),
272 NewLowCc ( NewCardinality ),
273 OldLowCc ( SchemaRelationship->get_low_cardinality_constraint() )
275 setText( QString::fromStdString(
"Changed low cardinality constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
301 : ClassName(Class->get_name()),
302 SchemaRelationship ( Relationship ),
303 RelationshipName ( Relationship->get_name() ),
304 NewHighCc ( NewCardinality ),
305 OldHighCc ( SchemaRelationship->get_high_cardinality_constraint() )
307 setText( QString::fromStdString(
"Changed high cardinality constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
334 : ClassName(Class->get_name()),
335 SchemaRelationship ( Relationship ),
336 RelationshipName ( Relationship->get_name() ),
338 OldValue ( SchemaRelationship->get_is_composite() )
340 setText( QString::fromStdString(
"Changed the \"is composite\" constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
366 : ClassName(Class->get_name()),
367 SchemaRelationship ( Relationship ),
368 RelationshipName ( Relationship->get_name() ),
370 OldValue ( SchemaRelationship->get_is_dependent() )
372 setText( QString::fromStdString(
"Changed the \"is dependent\" constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
398 : ClassName(Class->get_name()),
399 SchemaRelationship ( Relationship ),
400 RelationshipName ( Relationship->get_name() ),
402 OldValue ( SchemaRelationship->get_is_exclusive() )
404 setText( QString::fromStdString(
"Changed the \"is exclusive\" constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
429 std::string Description,
430 std::string Type,
bool Composite,
bool Exclusive,
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 )
445 setText( QString::fromStdString(
"Added relationship \"" + Name +
"\" to class \"" + Class->
get_name() +
"\""));
471 std::string Name, std::string Description,
472 std::string Type,
bool Composite,
bool Exclusive,
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 )
487 setText( QString::fromStdString(
"Removed relationship \"" + Name +
"\" to class \"" + Class->
get_name() +
"\""));
508 : ClassName(Class->get_name()),
509 MethodName ( Method->get_name() ),
510 SchemaImplementation ( Implementation ),
511 NewLanguage ( Language ),
512 OldLanguage ( SchemaImplementation->get_language() )
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() )
573 : ClassName(Class->get_name()),
574 MethodName ( Method->get_name()),
575 SchemaImplementation ( Implementation ),
576 ImplementationLanguage ( Implementation->get_language() ),
578 OldBody ( SchemaImplementation->get_body() )
606 std::string Language,
607 std::string Prototype,
609 : ClassName(Class->get_name()),
610 SchemaMethod ( Method ),
611 MethodName ( Method->get_name() ),
612 SchemaImplementationLanguage ( Language ),
613 SchemaImplementationPrototype ( Prototype ),
614 SchemaImplementationBody ( Body )
616 setText( QString::fromStdString(
"Added implementation for method \"" +
SchemaMethod->
get_name() +
"\" for class \"" + Class->
get_name() +
"\""));
644 std::string Language,
645 std::string Prototype,
647 : ClassName(Class->get_name()),
648 SchemaMethod ( Method ),
649 MethodName ( Method->get_name() ),
650 SchemaImplementationLanguage ( Language ),
651 SchemaImplementationPrototype ( Prototype ),
652 SchemaImplementationBody ( Body )
654 setText( QString::fromStdString(
"Removed implementation for method \"" +
SchemaMethod->
get_name() +
"\" for class \"" + Class->
get_name() +
"\""));
681 : ClassName(Class->get_name()),
682 SchemaMethod ( Method ),
683 NewMethodName ( name ),
684 OldMethodName ( SchemaMethod->get_name() )
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() )
719 setText( QString::fromStdString(
"Set description for method \"" +
SchemaMethod->
get_name() +
"\" of class \"" + Class->
get_name() +
"\""));
744 std::string description )
745 : ClassName ( Class->get_name() ),
746 SchemaMethod ( nullptr ),
748 SchemaDescription ( description )
750 setText( QString::fromStdString(
"Added method \"" + name +
"\" to class \"" + Class->
get_name() +
"\""));
772 std::string name, std::string description )
773 : ClassName ( Class->get_name() ),
774 SchemaMethod ( Method ),
776 SchemaDescription ( description )
778 setText( QString::fromStdString(
"Removed method \"" + name +
"\" to class \"" + Class->
get_name() +
"\""));
800 std::string NewName )
801 : ClassName( Class->get_name() ),
802 SchemaAttribute ( Attribute ),
803 NewAttributeName ( NewName ),
804 OldAttributeName ( SchemaAttribute->get_name() )
806 setText( QString::fromStdString(
"Set new name \"" + NewName +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
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() )
839 setText( QString::fromStdString(
"Set new type \"" + NewType +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
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() )
872 setText( QString::fromStdString(
"Set new range \"" + NewRange +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
899 : ClassName ( Class->get_name() ),
900 SchemaAttribute ( Attribute ),
901 AttributeName ( Attribute->get_name() ),
902 NewAttributeFormat ( NewFormat ),
903 OldAttributeFormat ( SchemaAttribute->get_format() )
905 setText( QString::fromStdString(
"Set new format for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
932 : ClassName ( Class->get_name() ),
933 SchemaAttribute ( Attribute ),
934 AttributeName ( Attribute->get_name() ),
935 NewAttributeMulti ( NewIsMulti ),
936 OldAttributeMulti ( SchemaAttribute->get_is_multi_values() )
938 setText( QString::fromStdString(
"Set multiplicity for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
965 : ClassName ( Class->get_name() ),
966 SchemaAttribute ( Attribute ),
967 AttributeName ( Attribute->get_name() ),
968 NewAttributeIsNull ( NewIsNull ),
969 OldAttributeIsNull ( SchemaAttribute->get_is_no_null() )
971 setText( QString::fromStdString(
"Set null-ness for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
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() )
1005 setText( QString::fromStdString(
"Set new initial values to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
1030 std::string type,
bool is_mv, std::string range,
1031 std::string init_values, std::string description,
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 )
1044 setText( QString::fromStdString(
"Added attribute \"" + name +
"\" to class \"" + Class->
get_name() +
"\""));
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,
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 )
1083 setText( QString::fromStdString(
"Removed attribute \"" + name +
"\" from class \"" + Class->
get_name() +
"\""));
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() )
1114 setText( QString::fromStdString(
"Set description for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
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
std::string SchemaInitValues
std::string SchemaDescription
AddMethodCommand(dunedaq::oks::OksClass *Class, std::string name, std::string description)
dunedaq::oks::OksMethod * SchemaMethod
std::string SchemaDescription
std::string SchemaImplementationPrototype
std::string SchemaImplementationBody
dunedaq::oks::OksMethod * SchemaMethod
AddMethodImplementationComand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)
~AddMethodImplementationComand()
std::string SchemaImplementationLanguage
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)
std::string RelationshipName
std::string RelationshipType
AddSuperClassCommand(dunedaq::oks::OksClass *Class, std::string SuperClass)
std::string NewSuperClass
std::string SchemaClassDescription
CreateClassCommand(std::string ClassName, std::string ClassDescription, bool Abstract)
dunedaq::oks::OksClass * SchemaClass
std::string SchemaClassName
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()
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)
std::string SchemaInitValues
std::string SchemaDescription
dunedaq::oks::OksAttribute * SchemaAttribute
std::string SchemaClassName
dunedaq::oks::OksClass * SchemaClass
std::string SchemaClassDescription
RemoveClassCommand(dunedaq::oks::OksClass *Class, std::string ClassName, std::string ClassDescription, bool Abstract)
std::string SchemaDescription
RemoveMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string name, std::string description)
dunedaq::oks::OksMethod * SchemaMethod
std::string SchemaImplementationPrototype
std::string SchemaImplementationBody
dunedaq::oks::OksMethod * SchemaMethod
std::string SchemaImplementationLanguage
RemoveMethodImplementationComand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string Language, std::string Prototype, std::string Body)
~RemoveMethodImplementationComand()
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)
~RemoveSuperClassCommand()
SetAbstractClassCommand(dunedaq::oks::OksClass *Class, bool Value)
~SetAbstractClassCommand()
std::string OldAttributeDescription
SetAttributeDescriptionCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewDescription)
std::string AttributeName
~SetAttributeDescriptionCommand()
dunedaq::oks::OksAttribute * SchemaAttribute
std::string NewAttributeDescription
dunedaq::oks::OksAttribute * SchemaAttribute
std::string AttributeName
SetAttributeInitialValuesCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewValues)
~SetAttributeInitialValuesCommand()
std::string OldAttributeInitialValues
std::string NewAttributeInitialValues
SetAttributeIsNullCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, bool NewIsNull)
std::string AttributeName
~SetAttributeIsNullCommand()
dunedaq::oks::OksAttribute * SchemaAttribute
~SetAttributeMultiCommand()
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeMultiCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, bool NewIsMulti)
std::string AttributeName
dunedaq::oks::OksAttribute * SchemaAttribute
SetAttributeNameCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewName)
~SetAttributeNameCommand()
std::string OldAttributeName
std::string NewAttributeName
SetAttributeRangeCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewRange)
std::string NewAttributeRange
~SetAttributeRangeCommand()
std::string AttributeName
dunedaq::oks::OksAttribute * SchemaAttribute
std::string OldAttributeRange
SetAttributeTypeCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksAttribute *Attribute, std::string NewType)
dunedaq::oks::OksAttribute * SchemaAttribute
~SetAttributeTypeCommand()
std::string AttributeName
std::string OldAttributeType
std::string NewAttributeType
~SetClassTypeRelationshipCommand()
dunedaq::oks::OksRelationship * SchemaRelationship
SetClassTypeRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string ClassType)
std::string RelationshipName
std::string OldRelationshipType
std::string NewRelationshipType
std::string NewDescription
std::string OldDescription
~SetDescriptionClassCommand()
SetDescriptionClassCommand(dunedaq::oks::OksClass *Class, std::string Description)
SetDescriptionMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string description)
~SetDescriptionMethodCommand()
std::string NewMethodDescription
std::string OldMethodDescription
dunedaq::oks::OksMethod * SchemaMethod
dunedaq::oks::OksRelationship * SchemaRelationship
~SetDescriptionRelationshipCommand()
std::string RelationshipName
std::string OldDescription
SetDescriptionRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string Description)
std::string NewDescription
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)
~SetHighCcRelationshipCommand()
std::string RelationshipName
SetIsCompositeRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, bool Value)
std::string RelationshipName
~SetIsCompositeRelationshipCommand()
dunedaq::oks::OksRelationship * SchemaRelationship
std::string RelationshipName
~SetIsDependentRelationshipCommand()
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)
~SetIsExclusiveRelationshipCommand()
std::string RelationshipName
dunedaq::oks::OksRelationship * SchemaRelationship
SetLowCcRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, dunedaq::oks::OksRelationship::CardinalityConstraint NewCardinality)
dunedaq::oks::OksRelationship::CardinalityConstraint OldLowCc
~SetLowCcRelationshipCommand()
dunedaq::oks::OksRelationship * SchemaRelationship
std::string RelationshipName
dunedaq::oks::OksRelationship::CardinalityConstraint NewLowCc
~SetMethodImplementationBody()
SetMethodImplementationBody(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Body)
std::string ImplementationLanguage
dunedaq::oks::OksMethodImplementation * SchemaImplementation
dunedaq::oks::OksMethodImplementation * SchemaImplementation
SetMethodImplementationLanguage(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Language)
~SetMethodImplementationLanguage()
~SetMethodImplementationPrototype()
dunedaq::oks::OksMethodImplementation * SchemaImplementation
SetMethodImplementationPrototype(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, dunedaq::oks::OksMethodImplementation *Implementation, std::string Prototype)
std::string ImplementationLanguage
std::string OldMethodName
std::string NewMethodName
dunedaq::oks::OksMethod * SchemaMethod
SetNameMethodCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksMethod *Method, std::string name)
std::string NewRelationshipName
std::string OldRelationshipName
~SetNameRelationshipCommand()
dunedaq::oks::OksRelationship * SchemaRelationship
SetNameRelationshipCommand(dunedaq::oks::OksClass *Class, dunedaq::oks::OksRelationship *Relationship, std::string Name)
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.
OksRelationship * find_direct_relationship(const std::string &name) const noexcept
Find direct relationship.
OksAttribute * find_direct_attribute(const std::string &name) const noexcept
Find direct attribute.
void add_super_class(const std::string &name)
void add(OksAttribute *a)
Add attribute.
void set_is_abstract(bool abstract)
Set class abstract property.
void remove_super_class(const std::string &name)
const std::string & get_name() const noexcept
void remove(const OksAttribute *a)
Remove attribute.
void set_description(const std::string &description)
Set class description.
static void destroy(OksClass *c)
Destroy OKS class.
OksMethod * find_direct_method(const std::string &name) const noexcept
Find direct method.
OKS method implementation class.
void set_prototype(const std::string &prototype)
Set method implementation prototype.
const std::string & get_prototype() const noexcept
void set_language(const std::string &language)
Set method implementation language.
void set_body(const std::string &body)
Set method implementation body.
void set_name(const std::string &name)
Set method name.
void set_description(const std::string &description)
Set method description.
void add_implementation(const std::string &language, const std::string &prototype, const std::string &body)
Add method implementation.
void remove_implementation(const std::string &language)
Remove method implementation.
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
const std::string & get_name() const noexcept
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.
std::string get_type(oks::OksData::Type oks_type, bool is_cpp)