39 #ifndef ORO_CONNPOLICYTYPE_HPP_ 40 #define ORO_CONNPOLICYTYPE_HPP_ 42 #include <boost/serialization/serialization.hpp> 43 #include "../ConnPolicy.hpp" 46 namespace serialization {
52 template<
class Archive>
54 a & boost::serialization::make_nvp(
"type", c.
type);
55 a & boost::serialization::make_nvp(
"init", c.
init );
56 a & boost::serialization::make_nvp(
"lock_policy", c.
lock_policy );
57 a & boost::serialization::make_nvp(
"pull", c.
pull );
58 a & boost::serialization::make_nvp(
"size", c.
size );
59 a & boost::serialization::make_nvp(
"transport", c.
transport );
60 a & boost::serialization::make_nvp(
"data_size", c.
data_size );
61 a & boost::serialization::make_nvp(
"name_id", c.
name_id );
int data_size
Suggest the payload size of the data sent over this channel.
int lock_policy
This is the locking policy on the connection.
int type
DATA, BUFFER or CIRCULAR_BUFFER.
A connection policy object describes how a given connection should behave.
int size
If the connection is a buffered connection, the size of the buffer.
bool pull
If true, then the sink will have to pull data.
bool init
If true, one should initialize the connection's value with the last value written on the writer port...
int transport
The prefered transport used.
void serialize(Archive &a, RTT::ConnPolicy &c, unsigned int)
Serializes RTT::ConnPolicy objects.
std::string name_id
The name of this connection.