Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hds

Pages: [1]
1
General Board / Re: How to modelling C- #defines in UML?
« on: April 05, 2012, 05:27:33 am »
Hi all,

I found what I need:
A attribute needs a tagged value named "define" = true. That's all!

I also try to use enums more often, but const vars in compact embedded systems seems to be a waste of flash memory.

Bye
hds

2
General Board / Re: How to modelling C- #defines in UML?
« on: April 04, 2012, 04:06:58 am »
Hi,

I don't think so.
Do you really make a const var for defines like:
UPPER_LIMIT
LOWER_LIMT
THRESHOLD_X
PARAM_A_ID
PARAM_B_ID
PARAM_C_ID
SET
RESET

I don't know ????
With those methods you get unreadable code!
Why is EA unable to generate #defines?

3
General Board / How to modelling C- #defines in UML?
« on: April 02, 2012, 05:44:26 am »
Hi All,

how can I design ANSI-C #defines like:
#define PARAM_A  1
#define PARAM_B  2
....

I think these should be attributes in a class?! But the code generator builds variables.

Is there a way to get those #defines ???

best regards,
hds

4
Uml Process / Re: C++ Codegeneration
« on: July 28, 2011, 04:32:20 pm »
Hi all,

I also try to generate C code from my own model.
All listed so called "user guides" give no answers!
I can't believe, there is no suitable document describes the concept of how to  :-[.

Anyway my model is structured in components. Some components have components included. In the deepest level, there are all classes.

If I now start "code generation", EA tells me "There is nothing to do!"

Why is EA unable to check deeper levels of components for classes???
I found only one way to generate code: Generating code class by class manually - nearly 100 classes! This can't be the right way -OR?

Hope for help.

Pages: [1]