SignalSource Class

Description

信号输出端口。

用于暴露一个组件的输出端口。

本类的所有成员都是线程安全的。

setHandler

设置数据处理器。

C: void easyar_SignalSource_setHandler(easyar_SignalSource * This, easyar_OptionalOfFunctorOfVoid handler)
C++17: void setHandler(std::optional<std::function<void()>> handler)
Traditional C++: void setHandler(OptionalOfFunctorOfVoid handler)
Java: public void setHandler(@Nullable FunctorOfVoid handler)
Kotlin: fun setHandler(handler: FunctorOfVoid?): Unit
Objective-C: - (void)setHandler:(void (^)())handler
Swift: public func setHandler(_ handler: (() -> Void)?) -> Void
C#: public virtual void setHandler(Optional<Action> handler)

connect

连接输入端口。

C: void easyar_SignalSource_connect(easyar_SignalSource * This, easyar_SignalSink * sink)
C++17: void connect(std::shared_ptr<SignalSink> sink)
Traditional C++: void connect(SignalSink * sink)
Java: public void connect(@Nonnull SignalSink sink)
Kotlin: fun connect(sink: SignalSink): Unit
Objective-C: - (void)connect:(easyar_SignalSink *)sink
Swift: public func connect(_ sink: SignalSink) -> Void
C#: public virtual void connect(SignalSink sink)

disconnect

断开连接。

C: void easyar_SignalSource_disconnect(easyar_SignalSource * This)
C++17: void disconnect()
Traditional C++: void disconnect()
Java: public void disconnect()
Kotlin: fun disconnect(): Unit
Objective-C: - (void)disconnect
Swift: public func disconnect() -> Void
C#: public virtual void disconnect()