Book a Demo

Author Topic: Importing method comment for C++ source code  (Read 3292 times)

schmid

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing method comment for C++ source code
« on: June 02, 2006, 01:42:08 pm »
Importing works pretty fine with our source code, exept that comments are only partly imported.
It is not clear to me why following comment is not imported by EA:
Code: [Select]

/**
* Determines whether or not the given link should be accepted
* by the iterator.  Links that are not accepted are skipped
* by the iterator.
* @param link
*  The link to check for acceptance.
*
* @param pError
*  Set if there is an error attempting to determine acceptance.
*
* @return
*  True if the link should be accepted; false if it should be skipped.

*/

virtual bool accept(const Link& link, Error *pError = Error::nullError());


On the other side member comments are generally imported:

Code: [Select]

/**
* The ID of the node across which connections are being examined.
*/

NodeId m_nodeId;

Is there a simple workaround to get C++ method comments imported in EA ?
Thank for any help or hint.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Importing method comment for C++ source code
« Reply #1 on: June 04, 2006, 03:07:53 pm »
Have a look at your options on the C++ page.  Make sure that the option 'Method Notes in Header' is set to true.

schmid

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing method comment for C++ source code
« Reply #2 on: June 05, 2006, 04:11:59 am »
Thanks for a reply. I am using EA 4.5 and I can't find any option changing the import behavior; The "import directory structure" has only few options, none of them are related to comments in source code. I have checked the documentation without success too.
Can you tell me, where the option can be set ?
Thanks.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing method comment for C++ source code
« Reply #3 on: June 05, 2006, 05:02:36 am »
You might simply be out of date. Hopefully you have a service agreement for EA, and can upgrade. The current version is 6.1, with 6.5 probably on the horizon.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Importing method comment for C++ source code
« Reply #4 on: June 05, 2006, 02:59:24 pm »
Although I would strongly recommend updating for the number of enhancements that have been made to C++ code engineering alone, the option does exist in 4.5, it just looks a little different.

Select Tools | Options from the main menu and go the C++ Specifications page.  There you will find a group called method notes with checkboxes 'In header' and 'In body'.