11 #define SESSION_MANAGER_DEFAULT_NAME "session_manager.system.adtf"
13 #define LOGGING_DEFAULT_NAME "logging.system.adtf"
15 #define RPC_OBJECT_REGISTRY_DEFAULT_NAME "rpc_object_server_registry.system.adtf"
17 #define SAMPLE_STREAM_TRACER_DEFAULT_NAME "sample_stream_tracer.system.adtf"
19 #define MACRO_RESOLVER_DEFAULT_NAME "macro_resolver.system.adtf"
106 void EnableProfiler(
bool bEnable =
true,
unsigned int nPort = 28077,
const char* strDumpFile =
nullptr);
170 unsigned int nStdErrLogLevel,
171 unsigned int nDebugLogLevel,
172 tTimeStamp tmQueueProcessingInterval);
188 unsigned int nStdOutMaxLogLevel,
189 unsigned int nStdErrMinLogLevel,
190 unsigned int nStdErrMaxLogLevel,
191 unsigned int nDebugMinLogLevel,
192 unsigned int nDebugMaxLogLevel,
193 tTimeStamp tmQueueProcessingInterval);
232 tResult
Launch(
const adtf::util::cCommandLine& oCommandLine);
253 tResult
Exec(int8_t nFirstRunLevel,
const adtf::util::cCommandLine& oCommandLine, std::function<
void()> fnStartup);
262 tResult
Exec(int8_t nFirstRunLevel,
const adtf::util::cCommandLine& oCommandLine, std::function<
void()> fnStartup,
bool bContinueInCaseOfError);
285 bool bLogging =
false,
286 const adtf::util::cString& strRPCURL = adtf::util::cString(),
287 bool bProfiler =
false,
288 unsigned int nProfilingPort = 28077);
295 using ant::create_adtf_default_system;
312 std::unique_ptr<adtf::system::ant::cADTFSystem> m_pSystem;
318 tResult nLaunchResult = m_pSystem->Launch(adtf::util::cCommandLine());
319 A_UTILS_ASSERT(nLaunchResult.IsOk());
330 tResult Exec(std::function<
void()> fnStartup)
332 return m_pSystem->Exec(adtf::base::ant::tADTFRunLevel::RL_System,
333 adtf::util::cCommandLine(),
Copyright © Audi Electronics Venture GmbH.
tResult create_adtf_default_system(const adtf::util::cFilename &strCorePlugin=adtf::util::cFilename(), bool bLogging=false, const adtf::util::cString &strRPCURL=adtf::util::cString(), bool bProfiler=false, unsigned int nProfilingPort=28077)
This helper function will add the ADTF core objects to an existing _runtime.
ADTF System Creation Class.
tResult Exec(int8_t nFirstRunLevel, const adtf::util::cCommandLine &oCommandLine, std::function< void()> fnStartup, bool bContinueInCaseOfError)
cADTFSystem(const cADTFSystem &)=delete
copy CTOR
void SetLoggingParameter(unsigned int nStdOutLogLevel, unsigned int nStdErrLogLevel, unsigned int nDebugLogLevel, tTimeStamp tmQueueProcessingInterval)
Sets the logging parameter of the Logging serive These core objects define the ADTF System.
A_UTILS_D(cADTFSystem)
pimpl
void EnableSampleStreamTracer(bool bEnable=true)
Enables the sample stream tracer core object creation.
void SetADTFCorePlugin(const util::cFilename &strCorePluginPath)
Sets the path to the adtf_core.plugin which contains the the core objects implementations.
cADTFSystem & operator=(cADTFSystem &&)=delete
move operator
void SetSessionManagerCID(const util::cString &strSessionManagerCID)
Sets the class id used for creation of the session manager core object (EnableSessionManagerCreation)...
void SetLoggingParameter(unsigned int nStdOutMinLogLevel, unsigned int nStdOutMaxLogLevel, unsigned int nStdErrMinLogLevel, unsigned int nStdErrMaxLogLevel, unsigned int nDebugMinLogLevel, unsigned int nDebugMaxLogLevel, tTimeStamp tmQueueProcessingInterval)
Sets the log levels that are output via a specific channel.
void EnableLogging(bool bEnable=true)
Enables the logging core object creation.
tResult Launch(const adtf::util::cCommandLine &oCommandLine)
Launches the system and create a adtf::base::ant::cADTFRuntime.
void EnableRPCObjectRegistry(bool bEnable=true)
Enables the rpc object registry core object creation.
tResult Launch(adtf::ucom::ant::IRuntime &oRuntime)
Launches the system and its core objects to an existing runtime.
void EnableProfiler(bool bEnable=true, unsigned int nPort=28077, const char *strDumpFile=nullptr)
Enables the profiler.
void EnableAutoQuit(bool bEnable=true, base::tADTFRunLevel eLevel=base::tADTFRunLevel::RL_Running)
Enables to shutdown automatically if the given runlevel is left by decrementing.
void EnableMacroResolver(bool bEnable=true)
Enables macro resolver core object creation.
void SetRPCURL(const util::cString &strRPCUrl)
Sets the URL for the rpc object registry core object.
cADTFSystem(cADTFSystem &&)=delete
move CTOR
void EnableSessionManagerCreation(bool bEnable=true)
Enables the session manager core object creation.
void SetAdditionalInitFunction(std::function< tResult()> fnInitFunction)
Adds an additional Initialization function that is called right atfer the logging has been set up.
void SetADTFDIR(const util::cFilename &strADTFDIR)
Sets the environment variable ADTF_DIR.
tResult Exec(int8_t nFirstRunLevel, const adtf::util::cCommandLine &oCommandLine, std::function< void()> fnStartup)
Launches the system and create a adtf::base::ant::cADTFRuntime.
cADTFSystem & operator=(const cADTFSystem &)=delete
copy operator
The IRuntime interface controls global system startup and shutdown.
virtual tResult SetRunLevel(int8_t nRunLevel, bool bWait=true)=0
Set run level.
This template makes will forward the runtime_executor function calls to the RuntimeClass.
This template makes sure to create and execute an instance of a runtime in a separate thread.
tADTFRunLevel
The ADTF Runtime Level State are used to define a ADTF Runtime specialization for a adtf::ucom::ant::...
Namespace for entire ADTF SDK.
adtf::ucom::IRuntime * _runtime
Global Runtime Pointer to reference to the current runtime.