특성 파일에 주석 추가

IBM® Rational® Rhapsody®에 특성 파일에 주석을 추가할 수 있는 정규 방법이 없지만 자체 특성을 작성하여 주석을 추가할 수 있습니다.

프로시저

특성 파일에 주석을 추가하려면 다음을 수행합니다.

  1. 새 주제를 작성하십시오. 예를 들어, 다음과 같습니다.
    주제 .PRP 파일
    주제 SiteComment site.prp
    주제 SiteCPPComment siteC++.prp
    주제 SiteCComment siteC.prp
  2. 각 주제 아래에 Comments라는 메타클래스를 작성하십시오.
  3. 각 메타클래스에 주석 텍스트가 포함된 String 또는 MultiLine 유형의 새 특성을 추가하십시오.

결과

site<Lang>.prp의 맨 위에 이 정보를 배치하는 경우 다음과 같은 방식으로 활용할 수 있습니다.

참고: 주석 특성의 지정된 문자열 내에 String 주석("")을 사용하지 마십시오.

예제

다음 예는 주석 특성이 포함된 SiteC++.prp 파일 부분을 보여줍니다.

Subject SiteCPPComment
   Metaclass Comments
      Property RhpVersion String "v7.5 SiteC++ for Rhapsody
         Build 1368921"
      Property ChangeAuthor String "John Smith, Acme Co."
      Property LastChange String "01.30.2009"
      Property ChangeHistory MultiLine "Version 1.0
         02.08.2009"
      Property ChangeList MultiLine "
         List of Changed Properties
            Optimization Properties:
            * CPP_CG->Attribute->AccessorGenerate to False
            * CPP_CG->Attribute->MutatorGenerate to False
            * CPP_CG->Relation->RemoveKeyGenerate to False
            * CPP_CG->Relation->RemoveKeyHelpersGenerate to
               False
         Other properties:
            * None
      "
      Property GeneralComment MultiLine "
         Purpose of the changes in siteC++.prp:
         I like challenges!
         Any questions?
      "
   end
end
end

피드백