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: 235
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: 462
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: Tue May 14 02:14:12 GMT 2024

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

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

Back to the top