Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to declare a default constructor for C++ in Papyrus
How to declare a default constructor for C++ in Papyrus [message #1805950] Mon, 29 April 2019 10:33 Go to next message
Martin Friedrich is currently offline Martin FriedrichFriend
Messages: 7
Registered: November 2015
Junior Member
Hi all,

how does one declare a default constructor for a C++ class with Papyrus, i.e. I always seem to end up with a class declaration like this

   class Foo {
      void Foo();
   }

instead of

   class Foo {
      Foo();
   }

as intended.

Regards,
Martin Friedrich
Re: How to declare a default constructor for C++ in Papyrus [message #1806222 is a reply to message #1805950] Mon, 06 May 2019 11:32 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member
The C++ code generator determines whether an operation is a constructor or destructor via the application of the Create/Destroy stereotypes of the standard UML profile (and not on names). If you want to apply these, apply the standard profile via "apply registered profile" to the root package, then apply the create or destroy stereotype to an operation.

Ansgar
Re: How to declare a default constructor for C++ in Papyrus [message #1806651 is a reply to message #1806222] Mon, 13 May 2019 10:17 Go to previous message
Martin Friedrich is currently offline Martin FriedrichFriend
Messages: 7
Registered: November 2015
Junior Member
Ansgar,

thanks so much!

Martin
Previous Topic:How to use SetCommand to set multiplicity
Next Topic:hide multiplicity of "1" from class-diagram
Goto Forum:
  


Current Time: Mon Dec 16 02:01:29 GMT 2019

Powered by FUDForum. Page generated in 0.01928 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top