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.


Topics - Resistance

Pages: [1]
1
Uml Process / Preprocessor macro file...
« on: December 03, 2018, 09:29:59 pm »
Hi

Is there any possibility in EA to add macros by importing file?
I have been succeeding to import my C++ project properly by adding some new macros.
Now I want to install Sparx on several machine and import my project source code to them, but I'm seeking to find a way to avoid to add each macro separately.
So is there any way like importing file or other way?


 

2
Uml Process / C++ variadic templates
« on: December 02, 2018, 09:33:23 pm »
Hi
Does anyone know how could stop EA parsing error about the following line in C++ code when reversing the code?
Code: [Select]
template <std::size_t... Is>
or
Code: [Select]
template <bool IS_CONSTRUCT, typename std::enable_if<!IS_CONSTRUCT>::type*, typename ... Args>
ObjectType* MyFunc<ObjectType, CONSTRUCT, BULK>::get (Args& ... args) noexcept

I want to add them as macro but I don't know how it can be done, because by adding ... it generates error that that "There was an error parsing on line 1. Unexpected symbol: . "
Now I don't have any idea to do anything and any suggestion will be appreciated.
 

3
Uml Process / [HELP]: Parse Error for samples like size_t...
« on: November 29, 2018, 07:36:32 pm »
Hi.
I am trying to import existing C++ code into a new model and keep getting errors from code like:
Code: [Select]
template <std::size_t... Is>
struct IndexSequence
{};
and
Code: [Select]
template <bool IS_CONSTRUCT, typename std::enable_if<!IS_CONSTRUCT>::type*, typename ... Args>
ObjectType* MyFunc<ObjectType, CONSTRUCT, BULK>::get (Args& ... args) noexcept
I get errors saying "You may need to define a language macro" and refer to struct as Unexpected macro in the first code and ObjectType in second code.
I have been testing and finding out that cause of the errors is  ... after size_t and Arg& but as I want to add ... to language macro, it indicate that "There was an error parsing on line 1. Unexpected symbol: . ".
Now any help to solve the problem will be appreciated.

4
Uml Process / Code importing exception
« on: November 24, 2018, 05:07:27 pm »
Is there any possibility to except some specific sub folders and files in importing source code procedure?
I am importing my C++ code but don't want to import some files and sub directories, so how can I except them?

5
Uml Process / [Help!] You may need to add a language macro for ; , ( ) { }
« on: November 21, 2018, 09:15:16 pm »
I am trying to import my existing C++ code into a new model and keep getting errors of unexpected symbols.
when the error is related to words like name of classes and functions or variables it will be solved by adding it as new and it will not be shown in next importing procedure.
The main problem is about symbols like ; , ( ) { } and such them.
For instance one of errors is generated from code line like a "return nullptr;" which error dialog indicates symbol nullptr as unexpected.
In next step after adding nullptr as New, I get same error for symbol ; (and there will be no error for nullptr in next importing) but unfortunately when I click insert ; and click Add New button for it, the procedure shows new error that says: "there was an error parsing on line 1. Unexpected symbol: ; Would you like to add it anyway? " and while I click Yes button it show error of unexpected symbol for ; again and again with no effect.
In addition Sparx doesn't generate element for classes which produce aforementioned error and I am trying to solve this!!!
Note: Source code importation is done by selecting Create Package per Namespace in the import options.
I uploaded my screenshot here: https://i.stack.imgur.com/hWaHR.png

6
Uml Process / Same name classes ignorance...
« on: November 20, 2018, 11:06:26 pm »
Hi.
I have been importing my C++ source directory to Sparx but unfortunately there is one important problem.
the source code contains some pairs of classes that have same name and different functionality but each of them is in separate directory and one of them is in specific namespace.
for instance my first class A is in directory1 (without namespace) and my second class A is in directory2 and it's special namespace, but surprisingly Sparx ignore one of them in import procedure and generate only one element for class A which is located in namespace.
How I can configure Sparx to generate separated element for both classes?


7
Uml Process / Parent and child arrow in Insert Related Elements
« on: November 15, 2018, 06:08:23 pm »
How can configure sparx to draw arrow between parent class and it's child classes which inherited  in UML diagram?
how can show child and parent when is clicked on Insert Related Elements of selected element? (with arrow as relation).

8
General Board / CMAKE project and sequence diagram
« on: November 15, 2018, 04:16:17 pm »
Hi dear all.
I need to make a sequence diagram for C++ cmake project on Linux. I used Sparx Enterprise Architect but I'm new to Enterprise Architect. I imported my code but don't know how can generate cmake project sequence diagram. Is there any possibility to make sequence diagram of cmake project in Enterprise Architect (with or without run code) and if it's possible how could be done?
In addition I confused due to not generated UML element in class diagram per each class in source code.

Any help and explanation appreciated.

9
General Board / CMAKE project
« on: November 13, 2018, 09:57:35 pm »
Hi,dear all.
I'm new to EA and have lack about UML.
After EA installation on linux I want to import my CMAKE project and extract it's UML diagrams such as class diagrams while they are synchronize with my source C++ code.
It will be appreciated if anyone help me how I can do aforementioned procedure in EA.

Pages: [1]