39 #ifndef ORO_INPUT_PORT_HPP 40 #define ORO_INPUT_PORT_HPP 98 {
return read(source,
true); }
106 log(
Error) <<
"trying to read to an incompatible data source" <<
endlog();
126 log(
Error) <<
"trying to read to an incompatible data source" <<
endlog();
134 {
return read(sample,
true); }
149 return getEndpoint()->getReadEndpoint()->read(sample, copy_old_data);
178 sample =
getEndpoint()->getReadEndpoint()->data_sample();
212 #ifndef ORO_DISABLE_PORT_DATA_SCRIPTING 223 object->addSynchronousOperation(
"read", read_m,
this).
doc(
"Reads a sample from the port.").arg(
"sample",
"");
224 object->addSynchronousOperation(
"clear", &
InputPortInterface::clear,
this).
doc(
"Clears any remaining data in this port. After a clear, a read() will return NoData if no writes happened in between.");
232 return endpoint.get();
boost::intrusive_ptr< ChannelElement< T > > shared_ptr
The base class for all internal data representations.
virtual void set(param_t t)=0
const std::string & getName() const
virtual Service * createPortObject()
static bool createStream(OutputPort< T > &output_port, ConnPolicy const &policy)
boost::call_traits< T >::reference reference_t
boost::intrusive_ptr< ChannelElementBase > shared_ptr
boost::intrusive_ptr< AssignableDataSource< T > > shared_ptr
static const types::TypeInfo * getTypeInfo()
boost::intrusive_ptr< ConnOutputEndpoint< T > > shared_ptr
boost::intrusive_ptr< DataSourceBase > shared_ptr
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
PortInterface & doc(const std::string &desc)
static Logger::LogFunction endlog()