31 #include <boost/cstdint.hpp>
32 #include <boost/shared_ptr.hpp>
34 #include <rsc/runtime/TypeStringTools.h>
35 #include <rsc/logging/Logger.h>
37 #include "rsb/rsbexports.h"
66 return rsc::runtime::typeName<T>();
98 typedef boost::shared_ptr<T>
type;
101 InformerBase(
const std::vector<transport::OutConnectorPtr>& connectors,
103 const std::string& defaultType);
107 void printContents(std::ostream& stream)
const;
115 std::string getType()
const;
146 std::string type = rsc::runtime::typeName<T1>()) {
147 VoidPtr p = boost::static_pointer_cast<
void>(data);
148 return publish(p, type);
152 EventPtr uncheckedPublish(boost::shared_ptr<T1> data,
153 const std::string& type = rsc::runtime::typeName<T1>()) {
154 VoidPtr p = boost::static_pointer_cast<
void>(data);
155 return uncheckedPublish(p, type);
163 virtual EventPtr createEvent()
const;
196 void checkedPublish(
EventPtr event);
197 void uncheckedPublish(
EventPtr event);
199 boost::uint32_t nextSequenceNumber();
233 typedef boost::shared_ptr<Informer<T> >
Ptr;
254 Informer(
const std::vector<transport::OutConnectorPtr>& connectors,
265 return rsc::runtime::typeName<Informer<T> >();
290 VoidPtr p = boost::static_pointer_cast<
void>(data);
296 std::string type = rsc::runtime::typeName(
typeid(T1))) {