RTC Toolkit 5.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
rtcComponentMain.hpp File Reference

Provides core functionality of an RTC Component. More...

#include <exception>
#include <rtctk/componentFramework/alertService.hpp>
#include <rtctk/componentFramework/commandReplier.hpp>
#include <rtctk/componentFramework/componentMetrics.hpp>
#include <rtctk/componentFramework/exceptions.hpp>
#include <rtctk/componentFramework/logger.hpp>
#include <rtctk/componentFramework/malDdsEventService.hpp>
#include <rtctk/componentFramework/oldbIf.hpp>
#include <rtctk/componentFramework/rtcComponentArgs.hpp>
#include <rtctk/componentFramework/runtimeRepoIf.hpp>
#include <rtctk/componentFramework/serviceContainer.hpp>
#include <rtctk/componentFramework/serviceDiscovery.hpp>
#include <rtctk/componentFramework/serviceRegistryIf.hpp>
#include <rtctk/componentFramework/stateMachineEngine.hpp>
#include <rtctk/componentFramework/statePublisher.hpp>
#include <mal/Cii.hpp>
#include <fmt/format.h>
#include <boost/core/demangle.hpp>
#include <boost/stacktrace.hpp>
#include <iostream>
#include <memory>
#include <string>

Go to the source code of this file.

Namespaces

namespace  rtctk
 
namespace  rtctk::componentFramework
 

Functions

void RtcComponentMain (const rtctk::componentFramework::Args &args)
 Main entry point for user code, this method must be implemented by component developers.
 
template<class BL , class BLF >
void rtctk::componentFramework::RunAsRtcComponent (const Args &args, BLF factory)
 RTC Component runner function, needed to run custom BusinessLogic as RTC Component.
 
template<class BL >
void rtctk::componentFramework::RunAsRtcComponent (const Args &args)
 RTC Component runner function, needed to run custom BusinessLogic as RTC Component.
 
int rtctk::componentFramework::Main (int argc, char *argv[])
 Main function implementation.
 
int main (int argc, char *argv[])
 Main function, this is private to the RTC Tk and shall NOT be used by component developers.
 

Detailed Description

Provides core functionality of an RTC Component.

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Main function, this is private to the RTC Tk and shall NOT be used by component developers.

◆ RtcComponentMain()

void RtcComponentMain ( const rtctk::componentFramework::Args & args)

Main entry point for user code, this method must be implemented by component developers.

Parameters
argsopaque arguments class to be passed on to the RTC Component runner function.
Exceptions
variousexceptions, which are caught in main

Main entry point for user code, this method must be implemented by component developers.

Parameters
[in]argsThe application's command line arguments.
Note
This is invoked by RTCTK Component Framework main() implementation.