9#ifndef __RTInjector_h__
10#define __RTInjector_h__ included
21#error RTInjector requires a compiler that supports C++ 11.
26#include <unordered_map>
An instance of this class represents a capsule instance.
Definition: RTActor.h:44
Represents a capsule part.
Definition: RTActorRef.h:39
A controller manages a group of capsule instances that all run in the same physical thread (i....
Definition: RTController.h:54
Dependency injector for RT applications.
Definition: RTInjector.h:54
RTActor * create(RTController *rts, RTActorRef *ref, int index)
Create a capsule instance.
static RTInjector & getInstance()
Access the singleton injector instance (created on first access)
std::function< RTActor *(RTController *, RTActorRef *, int)> getCreateFunction(const std::string &id)
Get a create function registered for incarnating capsule instances in a capsule part.
void registerCreateFunction(const std::string &id, std::function< RTActor *(RTController *, RTActorRef *, int)> createFunc)
Register a create function to be used for incarnating capsule instances in a capsule part.