/******************************************************************************** * Copyright (c) 2025-2026 ZF Friedrichshafen AG * * This program and the accompanying materials are made available under the * terms of the Apache License Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0 * * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ #include #include #include #include #include "../generated/vss_files/signal_identifier.h" #include "autoheadlight_simulate.h" #include "autoheadlight_console.h" #if defined(_WIN32) && defined(_UNICODE) extern "C" int wmain() #else extern "C" int main() #endif { CAutoHeadlightAppSimulate AppSimulate; if(AppSimulate.Initialize()) //Initialize and if failed do not run the test run. { CConsole visual_obj; visual_obj.PrintHeader(); visual_obj.PrepareDataConsumers(); // Get access to required services visual_obj.StartUpdateDataThread(); // start a thread to get Headlight and tunnel information and print on console AppSimulate.ExecuteTestRun(); // Execute the test run feeding driveway data visual_obj.StopUpdateDataThread(); visual_obj.ResetSignals(); AppSimulate.Shutdown(); //Shutdown the app. } return 0; }