public RTComponent(RTC_t r)
        {
            _r = r;

            RTC_onFinalize_listen(_r, onFinalize);
            RTC_onStartup_listen(_r, onStartup);
            RTC_onShutdown_listen(_r, onShutdown);
            RTC_onActivated_listen(_r, onActivated);
            RTC_onDeactivated_listen(_r, onDeactivated);
            RTC_onExecute_listen(_r, onExecute);
            RTC_onAborting_listen(_r, onAborting);
            RTC_onError_listen(_r, onError);
            RTC_onReset_listen(_r, onReset);
            RTC_onStateUpdate_listen(_r, onStateUpdate);
            RTC_onRateChanged_listen(_r, onRateChanged);
        }
Exemplo n.º 2
0
 public RTC.RTComponent createComponent(string identifier)
 {
     try
     {
         RTCFactoryMethod factory = factoryDictionary[identifier];
         RTC_t            rtc     = Manager_createComponent(_m, identifier);
         RTComponent      r       = factory(rtc);
         r.initialize();
         return(r);
     }
     catch (KeyNotFoundException ex)
     {
         System.Console.Write("Loading RTComponent (" + identifier + ") failed. Reason: Key Not Found.");
         return(null);
     }
 }
 private static extern Result_t RTC_onRateChanged_listen(RTC_t rtc, RtcCallback callback);
 private static extern Result_t RTC_onStateUpdate_listen(RTC_t rtc, RtcCallback callback);
 private static extern Result_t RTC_onError_listen(RTC_t rtc, RtcCallback callback);
 private static extern Result_t RTC_onAborting_listen(RTC_t rtc, RtcCallback callback);
 private static extern Result_t RTC_onDeactivated_listen(RTC_t rtc, RtcCallback callback);
 private static extern Result_t RTC_onShutdown_listen(RTC_t rtc, RtcCallback callback);
 public MyRTComponent(RTC_t rtc)
     : base(rtc)
 {
 }
Exemplo n.º 10
0
 private static extern Result_t RTC_getParameter(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] name, [MarshalAs(UnmanagedType.LPArray)] byte[] value);
Exemplo n.º 11
0
 private static extern Result_t RTC_getParameterStringLength(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] name, out Int32 size);
Exemplo n.º 12
0
 private static extern Result_t RTC_updateParameters(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] confsetName);
Exemplo n.º 13
0
 private static extern Result_t RTC_deletePort(RTC_t rtc, Port_t port);
Exemplo n.º 14
0
 private static extern Result_t RTC_addOutPort(RTC_t rtc, string name, Port_t port);
 static RTComponent createMyRTComponent(RTC_t rtc)
 {
     return(new MyRTComponent(rtc));
 }
Exemplo n.º 16
0
 private static extern Result_t RTC_onFinalize_listen(RTC_t rtc, RtcVoidCallback callback);
Exemplo n.º 17
0
 public RTMAdapter(RTC_t r)
     : base(r)
 {
 }