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,
188 unsigned int nStdOutMaxLogLevel,
189 unsigned int nStdErrMinLogLevel,
190 unsigned int nStdErrMaxLogLevel,
191 unsigned int nDebugMinLogLevel,
192 unsigned int nDebugMaxLogLevel,
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);
274 const adtf::util::cCommandLine& oCommandLine,
275 std::function<
void()> fnStartup,
bool bContinueInCaseOfError);
298 bool bLogging =
false,
300 bool bProfiler =
false,
301 unsigned int nProfilingPort = 28077);
308 using ant::create_adtf_default_system;
325 std::unique_ptr<adtf::system::ant::cADTFSystem> m_pSystem;
331 tResult nLaunchResult = m_pSystem->Launch(adtf::util::cCommandLine());
343 tResult Exec(std::function<
void()> fnStartup)
345 return m_pSystem->Exec(adtf::base::ant::tADTFRunLevel::RL_System,
346 adtf::util::cCommandLine(),
#define A_UTILS_ASSERT
This macro is used for platform independent assertion expressions.
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.
tInt64 tTimeStamp
type definition for a time value.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
A common result class usable as return value throughout.
tBool IsOk() const
Check whether this result object contains ERR_NOERROR.
tADTFMicroRunLevel
Micro Runlevels offer more fine grained control to initialization etc.
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 ExecMicro(adtf::base::quiet::IADTFRuntime::tADTFMicroRunLevel nFirstMicroRunLevel, const adtf::util::cCommandLine &oCommandLine, std::function< void()> fnStartup, bool bContinueInCaseOfError)
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.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
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.