Bug 368082 - Import c++ "interface" classes
Summary: Import c++ "interface" classes
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.19.2 (KDE Applications 16.04.2)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-01 06:32 UTC by Ralf Habacker
Modified: 2016-09-01 06:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.20.1 (KDE Applications 16.08.1)
Sentry Crash Report:


Attachments
test case (139 bytes, text/x-chdr)
2016-09-01 06:42 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2016-09-01 06:32:17 UTC
Umbrello supports modeling of "interfaces", which initial came from java (see https://docs.oracle.com/javase/tutorial/java/concepts/interface.html). In c++ interface are also possible and are identified by having only pure virtual methods and static const data members  (see http://stackoverflow.com/questions/12854778/abstract-class-vs-interface-in-c). 
It would be nice if the c++ importer would be able to support this by tagging related imported classes as "interface".


Reproducible: Always

Steps to Reproduce:
1. start umbrello
2. import appended test case


Actual Results:  
In the class property the imported class do not have the stereotype "interface".

Expected Results:  
The imported class should have the stereotype "interface".
Comment 1 Ralf Habacker 2016-09-01 06:42:50 UTC
Created attachment 100875 [details]
test case
Comment 2 Ralf Habacker 2016-09-01 06:54:56 UTC
Git commit dfa788ff49d023c73c6292498995ce4355167b6e by Ralf Habacker.
Committed on 01/09/2016 at 06:53.
Pushed by habacker into branch 'Applications/16.08'.

Import c++ class only containing static const members and pure virtual methods as 'interface'.
FIXED-IN:2.20.1 (KDE Applications 16.08.1)

A  +24   -0    test/import/cxx/interface.h     [License: UNKNOWN]  *
M  +15   -0    umbrello/codeimport/kdevcppparser/cpptree2uml.cpp

The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


http://commits.kde.org/umbrello/dfa788ff49d023c73c6292498995ce4355167b6e