Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » [C++ Gen] Bootloader arguments
[C++ Gen] Bootloader arguments [message #1821091] Wed, 05 February 2020 13:30 Go to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 156
Registered: November 2017
Senior Member
Hello,

I have a question about the use of arguments of the bootloader when launching and app generated from a Papyrus model. I use a package stereotyped with DeploymentPlan stereotype and "ComponentChain" as M2MTrafoChain. In the generated code, the main method is in the class "BootLoader". I would use some arguments from the command line and transfer them to some instantiated classes.

I tried to use Slots and I can set some variables but I would avoid to set this informations in the model.

How to do that properly?

Regards.

Yoann.
Re: [C++ Gen] Bootloader arguments [message #1823557 is a reply to message #1821091] Sat, 28 March 2020 18:43 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 281
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi Yoann,

the arguments are stored in the static variables BootLoaderCpp::BootLoader::argv (and argc). Application code can access these variables.

HTH

Ansgar
Previous Topic:Papyrus-CDT-separate source and headers
Next Topic:context menu incomplete after editing diagram
Goto Forum:
  


Current Time: Mon Jan 25 02:27:09 GMT 2021

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

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

Back to the top