static PropDescription * diamond_describe_props(Diamond *diamond) { if (diamond_props[0].quark == 0) prop_desc_list_calculate_quarks(diamond_props); return diamond_props; }
static PropDescription * bezierline_describe_props(Bezierline *bezierline) { if (bezierline_props[0].quark == 0) prop_desc_list_calculate_quarks(bezierline_props); return bezierline_props; }
static PropDescription * participation_describe_props(Participation *participation) { if (participation_props[0].quark == 0) prop_desc_list_calculate_quarks(participation_props); return participation_props; }
static PropDescription * pgram_describe_props(Pgram *pgram) { if (pgram_props[0].quark == 0) prop_desc_list_calculate_quarks(pgram_props); return pgram_props; }
static PropDescription * wanlink_describe_props(WanLink *wanlink) { if (wanlink_props[0].quark == 0) prop_desc_list_calculate_quarks(wanlink_props); return wanlink_props; }
static PropDescription * image_describe_props(EImage *image) { if (image_props[0].quark == 0) prop_desc_list_calculate_quarks(image_props); return image_props; }
static PropDescription * attribute_describe_props(Attribute *attribute) { if (attribute_props[0].quark == 0) prop_desc_list_calculate_quarks(attribute_props); return attribute_props; }
/*! A standard props compliant object needs to describe its parameters */ static const PropDescription * measure_describe_props (Measure *measure) { if (measure_props[0].quark == 0) prop_desc_list_calculate_quarks(measure_props); return measure_props; }
static PropDescription * _dae_describe_props(DiagramAsElement *dae) { if (_dae_props[0].quark == 0) prop_desc_list_calculate_quarks(_dae_props); return _dae_props; }
static PropDescription * bus_describe_props(Bus *bus) { if (bus_props[0].quark == 0) prop_desc_list_calculate_quarks(bus_props); return bus_props; }
GPtrArray * prop_list_from_descs(const PropDescription *plist, PropDescToPropPredicate pred) { GPtrArray *ret; guint count = 0, i; prop_desc_list_calculate_quarks((PropDescription *)plist); for (i = 0; plist[i].name != NULL; i++) if (pred(&plist[i])) count++; ret = g_ptr_array_new(); g_ptr_array_set_size(ret,count); count = 0; for (i = 0; plist[i].name != NULL; i++) { #if 0 g_message("about to append property %s/%s to list" "predicate is %s %d %d",plist[i].type,plist[i].name, pred(&plist[i])?"TRUE":"FALSE", plist[i].flags,plist[i].flags & PROP_FLAG_DONT_SAVE); #endif if (pred(&plist[i])) { Property *prop = plist[i].ops->new_prop(&plist[i],pred); g_ptr_array_index(ret,count++) = prop; } } return ret; }
static PropDescription * ellipse_describe_props(Ellipse *ellipse) { if (ellipse_props[0].quark == 0) prop_desc_list_calculate_quarks(ellipse_props); return ellipse_props; }
static PropDescription * lifeline_describe_props(Lifeline *lifeline) { if (lifeline_props[0].quark == 0) prop_desc_list_calculate_quarks(lifeline_props); return lifeline_props; }
static PropDescription * newgroup_describe_props(NewGroup *group) { if (newgroup_props[0].quark == 0) prop_desc_list_calculate_quarks(newgroup_props); return newgroup_props; }
static PropDescription * box_describe_props(Box *box) { if (box_props[0].quark == 0) prop_desc_list_calculate_quarks(box_props); return box_props; }
static PropDescription * compound_describe_props (Compound * comp) { if (compound_props[0].quark == 0) prop_desc_list_calculate_quarks (compound_props); return compound_props; }
static PropDescription * mbr_describe_props(Mbr *mbr) { if (mbr_props[0].quark == 0) prop_desc_list_calculate_quarks(mbr_props); return mbr_props; }
static PropDescription * node_describe_props(Node *node) { if (node_props[0].quark == 0) { prop_desc_list_calculate_quarks(node_props); } return node_props; }
static PropDescription * dependency_describe_props(Dependency *dependency) { if (dependency_props[0].quark == 0) { prop_desc_list_calculate_quarks(dependency_props); } return dependency_props; }
static PropDescription * basestation_describe_props(Basestation *basestation) { if (basestation_props[0].quark == 0) { prop_desc_list_calculate_quarks(basestation_props); } return basestation_props; }
static PropDescription * realizes_describe_props(Realizes *realizes) { if (realizes_props[0].quark == 0) { prop_desc_list_calculate_quarks(realizes_props); } return realizes_props; }
static PropDescription * objet_describe_props(Objet *ob) { if (objet_props[0].quark == 0) { prop_desc_list_calculate_quarks(objet_props); } return objet_props; }
static PropDescription * usecase_describe_props(Usecase *usecase) { if (usecase_props[0].quark == 0) { prop_desc_list_calculate_quarks(usecase_props); } return usecase_props; }
static PropDescription * step_describe_props(Step *step) { if (step_props[0].quark == 0) { prop_desc_list_calculate_quarks(step_props); } return step_props; }
PropDescription * aadlbox_describe_props(Aadlbox *aadlbox) { if (aadlbox_props[0].quark == 0) { prop_desc_list_calculate_quarks(aadlbox_props); } return aadlbox_props; }
static PropDescription * goal_describe_props(Goal *goal) { if (goal_props[0].quark == 0) { prop_desc_list_calculate_quarks(goal_props); } return goal_props; }
static PropDescription * chronoref_describe_props(Chronoref *chronoref) { if (chronoref_props[0].quark == 0) { prop_desc_list_calculate_quarks(chronoref_props); } return chronoref_props; }
static PropDescription * largepackage_describe_props(LargePackage *largepackage) { if (largepackage_props[0].quark == 0) { prop_desc_list_calculate_quarks(largepackage_props); } return largepackage_props; }
static PropDescription * flow_describe_props(Flow *mes) { if (flow_props[0].quark == 0) prop_desc_list_calculate_quarks(flow_props); return flow_props; }
static PropDescription * message_describe_props(Message *mes) { if (message_props[0].quark == 0) prop_desc_list_calculate_quarks(message_props); return message_props; }