Beispiel #1
0
ReturnType KinectComp::SendEvent( const KinectEvent& event )
{
	EventData<KinectEvent> eventData;
	eventData.setId("KinectEvent");
	eventData.setContentData(event);

	return mKinectOutputEvent.push(&eventData);
}
ReturnType HelloMaker::onExecute()
{
	std::string msg("Hello");

	
	ptrMessagePrint->print(msg);

	
	std::string outData("hello");

	std::stringstream pData;	

	DataOut.push("Sample Msg");

	EventData<std::string> outEvent;

	outEvent.setId("messageid");
	outEvent.setContentData("hello world");

	EventOut.push(&outEvent);

	return OPROS_SUCCESS;
}