Book a Demo

Author Topic: Generate RTF-Doc with public members only  (Read 3008 times)

O.Kania

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Generate RTF-Doc with public members only
« on: January 12, 2009, 07:32:18 pm »
Hello,
I have the following question concerning generation of comments
for class methods:
Is it possible to show only documentation for  PUBLIC methods
and hide the documentation of private / protected members ?

best regards,
Oliver Kania  

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • ArenĀ“t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Generate RTF-Doc with public members only
« Reply #1 on: January 12, 2009, 11:27:06 pm »
Sure.

Since build 834 EA supports element filters (accessible as a seperate tab in the document options and document generation dialog) which let you create a filter. If you specify one for attributes/methods with scope=public then that should get you going.

However I have not tried this myself.

Oliver

O.Kania

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate RTF-Doc with public members only
« Reply #2 on: January 13, 2009, 01:30:12 am »
Quote
Sure.

Since build 834 EA supports element filters (accessible as a seperate tab in the document options and document generation dialog) which let you create a filter. If you specify one for attributes/methods with scope=public then that should get you going.

However I have not tried this myself.

Oliver

Hello Oliver,
I tried it out but it does not seem to work.
I tried all combinations of the two "required" switches.
(No idea what they mean)

Has anyone some other suggestion on how to solve
this problem ?

Best regards, Oliver

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Generate RTF-Doc with public members only
« Reply #3 on: January 13, 2009, 04:52:11 pm »
The RTF filter does support this - it is best set it up in the Editor under: File | Document Options | Other filters:
Set: Scope, <> , Private,  
  • Required