관계에 대해 동기화된 메소드 및 데이터 멤버

헤더 파일의 이 섹션에는 모델에서 정의된 클래스의 모든 관계가 포함됩니다. 적절한 경우 데이터 멤버와, 관계를 조작하기 위한 액세서 및 뮤테이터 함수 세트를 포함합니다.

관계 특성과 컨테이너 특성을 변경하여 이 섹션을 제어할 수 있습니다.

예를 들면, 다음과 같습니다.

   OMIterator<rclass1*> getrelation1()const;
   void addrelation1(rclass* p);
   void removerelation1(rclass* p);
   void clearrelation1();
protected :
   //
   OMCollection<rclass*> relation1;
   attrType1 getattr1()const;
   void setattrType1(attrType1 p);

피드백