Book a Demo

Author Topic: new to EA - questions about features  (Read 4672 times)

slickuser

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
new to EA - questions about features
« on: July 24, 2008, 04:07:13 am »
Hi,

I just starting using EA software and exploring the features.

I am wondering if the experts can answers these questions for me?

Can EA:

1. How to create UML based models?
2. How to generate C++ code from a UML model?
3. Reverse engineer the source code into a UML model?
4. Will UML model be update if the source code changes or I do need re-import/create project?
 
Maybe having some of the tutorials/demo from the above features?

I also download all the manual and starting reading them after this post.

Any help would be great.  8-)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: new to EA - questions about features
« Reply #1 on: July 24, 2008, 04:50:31 am »
Here's a quick set of answers to get you started:

1. Check the EA help file. In the contents open up Getting Started | Quick Start - Create a Project.

2. Yes, though I won't go through it here. Code Engineering is the relevant section of EA help. Take the time to play around with the various options you see on each dialog. Also open up the Tools | Options | Source Code Engineering | C++ page. You'll find a lot of discussion by searching this forum as well, but try the above sources first. It's not difficult once you get the hang of it.

3. See above.

4. You will have to repeat the import. There are also companion products for .Net and Eclipse that might be of interest. These are available from Sparx at modest additional cost. The more recent .Net ones works with Visual Studio, and will synchronize your code and model. I believe it works with C++ but I don't know for sure. You'll find more information on the Products page. Practice doing this by hand - just using EA without any add-on product - first though; it is important to get used to how EA handles this.

HTH, David
No, you can't have it!

slickuser

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: new to EA - questions about features
« Reply #2 on: July 25, 2008, 07:10:09 am »
Thank you.

When I generate C++.

1. How can I setup so that my UML classes can point arrow between if it's in relation?
2. Also, for reverse UML as well?

3. I can draw a class, generate C++ fine. But when I reverse the same UML, it give me this error. "You may need to define a language macro." Some of my UML are not draw. How can I fix this?

Thanks.  :o

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: new to EA - questions about features
« Reply #3 on: July 25, 2008, 07:22:33 am »
I think I'll wait in the hope that we get answers from those who use C++ more than I do. I think I know the correct answers but I'm not sure, and don't want to point you in the wrong direction.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: new to EA - questions about features
« Reply #4 on: July 25, 2008, 09:48:55 am »
That error is referring to http://www.sparxsystems.com.au/EAUserGuide/index.html?languagemacros.htm

Is this your situation?  If not, try sending a sample of code that doesn't import to Sparx Systems.

slickuser

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: new to EA - questions about features
« Reply #5 on: July 26, 2008, 02:23:11 am »
I get errors complaining about unexpected symbol
See below with comments.

Is it because I haven't defined that somewhere else?

It strip out some of the code below. Thanks.

Code: [Select]
class NAME_XYZ ShowMeFn
{  //error right here without comment

      public:
            virtual ShowMeFn();

      protected:
            static ShowMeFn* xyz;
            ShowMeFn();

      };

}

//error here too
//unexpected symbol ShowMeFn
class NAME_ABC showMeInfo : public ShowMeFn
{


}


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: new to EA - questions about features
« Reply #6 on: July 28, 2008, 08:41:55 am »
It looks like NAME_XYZ and NAME_ABC are macros that you need to tell EA about as from my last post.