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(
"size", c.
size );
56 a & boost::serialization::make_nvp(
"lock_policy", c.
lock_policy );
57 a & boost::serialization::make_nvp(
"init", c.
init );
58 a & boost::serialization::make_nvp(
"pull", c.
pull );
59 a & boost::serialization::make_nvp(
"buffer_policy", c.
buffer_policy );
60 a & boost::serialization::make_nvp(
"mandatory", c.
mandatory );
61 a & boost::serialization::make_nvp(
"transport", c.
transport );
62 a & boost::serialization::make_nvp(
"data_size", c.
data_size );
63 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 mandatory
Whether the connection described by this connection policy is mandatory, which means that write opera...
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.
int buffer_policy
The policy on how buffer elements will be installed for this connection, which influences the behavio...
std::string name_id
The name of this connection.