Adapt the Application
This section describes how to adapt your Hello World Application by
changing an implemented log message ("Hello AUTOSAR Adaptive World")
in your application logic.
|
Adapting the underlying logic of your application is optional. |
|
The logic of the application is stored in the |
Step 1: Change the Application Logic
-
Open
application.cpp. -
Find the
Run()method.The
Runmethod is the logic of the application.-
If the application is reaching this point and the initialization went well it is reporting the application state
kRunningto theExecutionmanager. -
Afterwards the example is printing a log message.
-
As a last step the application state
kTerminatingis reported to theExecutionmanager.
-
-
Change the text of the
LogInfoinside theRun()method.log_.LogInfo() < "ADD YOUR NEW LOG MESSAGE HERE";
|
Please ensure that the app terminates if the |
Step 2: Rebuild the Application
Follow the steps described in Build Application Files to rebuild your application executable with the changes.
|
As the build process supports incremental builds (where only changed parts are rebuilt), the rebuild of the application is much faster compared to the initial build (described in Build Application Files ). |