45 Activity(10), os( _os ), marshaller(_marshaller)
63 *
os <<
"100 Orocos 1.0 TcpReporting Server 1.0" << std::endl;
95 log(
Debug)<<
"Datasender::addSubscription: "<<name<<endlog();
99 std::vector<std::string>::const_iterator pos =
102 Logger::In(
"DataSender");
103 log(
Info)<<
"Already subscribed to "<<name<<endlog();
107 Logger::In(
"DataSender");
108 log(
Info)<<
"Adding subscription for "<<name<<endlog();
114 Logger::In(
"DataSender");
115 log(
Error)<<name<<
" is not available for reporting"<<endlog();
130 std::vector<std::string>::iterator pos =
133 Logger::In(
"DataSender");
134 log(
Info)<<
"Removing subscription for "<<name<<endlog();
139 Logger::In(
"DataSenser");
140 log(
Error)<<
"No subscription found for "<<name<<endlog();
148 for(std::vector<std::string>::const_iterator elem=
subscriptions.begin();
150 *
os<<
"305 "<< *elem<<std::endl;
151 *
os <<
"306 End of list" << std::endl;
181 log(
Debug)<<
"Let's check the subscriptions"<<endlog();
182 for(std::vector<std::string>::iterator elem =
subscriptions.begin();
188 Logger::In(
"DataSender");
189 log(
Error)<<*elem<<
" not longer available for reporting,"<<
190 ", removing the subscription."<<endlog();
215 *
os <<
"201 " <<
curframe <<
" -- begin of frame\n";
217 *
os <<
"203 " << curframe <<
" -- end of frame" << std::endl;
221 *
os <<
"204 Limit reached" << std::endl;
void writeOut(base::PropertyBase *v)
bool removeSubscription(const std::string &name)
void setLimit(unsigned long long newlimit)
TcpReportingInterpreter * interpreter
Datasender(RTT::SocketMarshaller *marshaller, Socket *os)
OCL::TcpReporting * reporter
OCL::TcpReporting * getReporter() const
RTT::SocketMarshaller * marshaller
const RTT::PropertyBag * getReport()
void removeConnection(OCL::TCP::Datasender *sender)
Socket & getSocket() const
void checkbag(const PropertyBag &v)
base::PropertyBase * find(const std::string &name) const
static std::ostream & endl(std::ostream &__os)
unsigned long long curframe
Properties & getProperties()
Properties::const_iterator const_iterator
RTT::SocketMarshaller * getMarshaller() const
const std::string & getName() const
std::vector< std::string > subscriptions
bool addSubscription(const std::string name)
void silence(bool newstate)
virtual DataSourceBase::shared_ptr getDataSource() const =0
void serialize(const PropertyBag &v)