Accessors and mutators for attributes and relations

Accessors and mutators are automatically generated for each attribute and relation of the class. Their contents and generation can be controlled by setting relation and attribute properties.

For example:

attr1Type class::getattr1()const {
   return attr1;
};
void class::setattr1(attr1type p) {
   attr1 = p;
};
OMIteratorrclass* class::getItsrclass()const {
   OMIteratorrclass* iter(itsrclass);
   return iter;
};
void Referee::_addItsRclass(Class* p_Class) {
   NOTIFY_RELATION_ITEM_ADDED("itsRClass",p_Class, 
   FALSE, FALSE);
   itsRclass->add(p_Class);
};
void class::removeItsrclass(rclass* p) {
   NOTIFY_RELATION_ITEM_REMOVED();
   rclass.remove(p);
};
void class::clearItsPing() {
};

Feedback