16 OldValue ( Class->get_is_abstract() )
18 setText ( QString::fromStdString(
"Changed abstract flag for class \"" +
ClassName +
"\"" ) );
38 std::string Description )
43 setText ( QString::fromStdString(
"Changed description for class \"" +
ClassName +
"\"") );
63 std::string ClassDescription,
70 setText ( QString::fromStdString(
"Created new class \"" + ClassName +
"\"") );
93 QMessageBox::warning ( 0,
"Schema editor", QString (
"Error" ) );
98 std::string ClassDescription,
bool Abstract )
104 setText ( QString::fromStdString(
"Removed class \"" + ClassName +
"\"" ));
128 setText ( QString::fromStdString(
"Added new super-class \"" + SuperClass +
"\" to class \"" +
ClassName +
"\"") );
151 setText ( QString::fromStdString(
"Removed super-class \"" + superClass +
"\" from class \"" +
ClassName +
"\"" ) );
178 setText ( QString::fromStdString(
"Changed relationship \"" + Relationship->
get_name() +
"\" to \"" + Name +
"\" for class \"" +
ClassName +
"\"") );
243 setText (QString::fromStdString(
"Changed description of relationship \"" + Relationship->
get_name() +
"\" for class \"" +
ClassName +
"\""));
275 setText( QString::fromStdString(
"Changed low cardinality constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
307 setText( QString::fromStdString(
"Changed high cardinality constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
340 setText( QString::fromStdString(
"Changed the \"is composite\" constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
372 setText( QString::fromStdString(
"Changed the \"is dependent\" constraint for relationship \"" + Relationship->
get_name() +
"\" of class \"" +
ClassName +
"\""));
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,
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,
487 setText( QString::fromStdString(
"Removed relationship \"" + Name +
"\" to class \"" + Class->
get_name() +
"\""));
514 setText( QString::fromStdString(
"Changed language implementation for \"" +
SchemaImplementation->get_prototype() +
"\" of class \"" + Class->
get_name() +
"\""));
547 setText( QString::fromStdString(
"Changed prototype for method \"" +
SchemaImplementation->get_prototype() +
"\" of class \"" +
ClassName +
"\""));
580 setText( QString::fromStdString(
"Changed body implementation for method \"" +
SchemaImplementation->get_prototype() +
"\" of class \"" + Class->
get_name() +
"\""));
606 std::string Language,
607 std::string Prototype,
616 setText( QString::fromStdString(
"Added implementation for method \"" +
SchemaMethod->get_name() +
"\" for class \"" + Class->
get_name() +
"\""));
644 std::string Language,
645 std::string Prototype,
654 setText( QString::fromStdString(
"Removed implementation for method \"" +
SchemaMethod->get_name() +
"\" for class \"" + Class->
get_name() +
"\""));
686 setText( QString::fromStdString(
"Set name for method \"" +
SchemaMethod->get_name() +
"\" of class \"" + Class->
get_name() +
"\""));
712 std::string description )
719 setText( QString::fromStdString(
"Set description for method \"" +
SchemaMethod->get_name() +
"\" of class \"" + Class->
get_name() +
"\""));
744 std::string description )
750 setText( QString::fromStdString(
"Added method \"" + name +
"\" to class \"" + Class->
get_name() +
"\""));
772 std::string name, std::string description )
778 setText( QString::fromStdString(
"Removed method \"" + name +
"\" to class \"" + Class->
get_name() +
"\""));
800 std::string NewName )
806 setText( QString::fromStdString(
"Set new name \"" + NewName +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
832 std::string NewType )
839 setText( QString::fromStdString(
"Set new type \"" + NewType +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
865 std::string NewRange )
872 setText( QString::fromStdString(
"Set new range \"" + NewRange +
"\" to attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
905 setText( QString::fromStdString(
"Set new format for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
938 setText( QString::fromStdString(
"Set multiplicity for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
971 setText( QString::fromStdString(
"Set null-ness for attribute \"" + Attribute->
get_name() +
"\" of class \"" +
ClassName +
"\""));
998 std::string NewValues )
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,
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,
1083 setText( QString::fromStdString(
"Removed attribute \"" + name +
"\" from class \"" + Class->
get_name() +
"\""));
1107 std::string NewDescription )
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()
std::string RelationshipName
dunedaq::oks::OksRelationship::CardinalityConstraint RelationshipLowCc
std::string RelationshipDescription
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)
std::string RelationshipType
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)
const std::string & get_name() const noexcept
out stream operator
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.
OksMethodImplementation * find_implementation(const std::string &language) const
Find method implementation.
const std::string & get_name() const noexcept
DAC value out of range
Message.
std::string get_type(oks::OksData::Type oks_type, bool is_cpp)