11 #include <Ice/Communicator.h> 12 #include <Ice/Optional.h> 84 Ice::optional<ClearHistoryPolicy>
clearHistory = Ice::nullopt) noexcept :
139 Ice::optional<ClearHistoryPolicy>
clearHistory = Ice::nullopt,
140 Ice::optional<DiscardPolicy>
discardPolicy = Ice::nullopt) noexcept :
178 Ice::optional<ClearHistoryPolicy>
clearHistory = Ice::nullopt,
179 Ice::optional<int>
priority = Ice::nullopt) noexcept :
213 template<
typename T,
typename Enabler=
void>
227 static std::vector<unsigned char>
228 encode(
const std::shared_ptr<Ice::Communicator>& communicator,
const T& value) noexcept;
240 template<
typename T,
typename Enabler=
void>
255 decode(
const std::shared_ptr<Ice::Communicator>& communicator,
const std::vector<unsigned char>& value) noexcept;
266 template<
typename T,
typename Enabler=
void>
277 static T
clone(
const T& value) noexcept
287 struct Encoder<T, typename std::enable_if<std::is_base_of<::Ice::Value, T>::value>::type>
289 static std::vector<unsigned char>
290 encode(
const std::shared_ptr<Ice::Communicator>& communicator,
const T& value) noexcept
292 return Encoder<std::shared_ptr<T>>
::encode(communicator, std::make_shared<T>(value));
300 struct Decoder<T, typename std::enable_if<std::is_base_of<::Ice::Value, T>::value>::type>
303 decode(
const std::shared_ptr<Ice::Communicator>& communicator,
const std::vector<unsigned char>& data) noexcept
305 return *Decoder<std::shared_ptr<T>>
::decode(communicator, data);
313 struct Cloner<std::shared_ptr<T>, typename std::enable_if<std::is_base_of<::Ice::Value, T>::value>::type>
316 std::shared_ptr<T>
clone(
const std::shared_ptr<T>& value) noexcept
318 return value->ice_clone();
325 template<
typename T,
typename E> std::vector<unsigned char>
328 std::vector<unsigned char> v;
329 Ice::OutputStream stream(communicator);
338 template<
typename T,
typename E> T
340 const std::vector<unsigned char>& value) noexcept
349 Ice::InputStream(communicator, value).read(v);
DiscardPolicy
The discard policy specifies how samples are discarded by readers upon receival.
Definition: Types.h:20
Clear the sample history when a new sample is received.
The Cloner template provides a method to clone user types.
Definition: Types.h:267
The callback is called because of a disconnection.
static T decode(const std::shared_ptr< Ice::Communicator > &communicator, const std::vector< unsigned char > &value) noexcept
Decode a value.
Definition: Types.h:339
Samples are discarded based on the writer priority.
Clear the sample history when a new sample which is not a partial update is received.
Ice::optional< DiscardPolicy > discardPolicy
Specifies if and how samples are discarded after being received by a reader.
Definition: Types.h:150
Clear the sample history when a Remove sample is received.
Samples are discared based on the sample timestamp.
static T clone(const T &value) noexcept
Clone the given value.
Definition: Types.h:277
The Decoder template provides a method to decode user types.
Definition: Types.h:241
Clear the sample history when a Add sample is received.
Ice::optional< int > sampleCount
The sampleCount configuration specifies how many samples are kept by the reader or writer in its samp...
Definition: Types.h:96
The WriterConfig class specifies configuration options specific to writers.
Definition: Types.h:161
ClearHistoryPolicy
The clear history policy specifies when the history is cleared.
Definition: Types.h:44
Never clear the sample history.
Ice::optional< int > priority
Specifies the writer priority.
Definition: Types.h:189
The Encoder template provides a method to encode decode user types.
Definition: Types.h:214
CallbackReason
The callback action enumurator specifies the reason why a callback is called.
Definition: Types.h:195
Definition: CtrlCHandler.h:13
WriterConfig(Ice::optional< int > sampleCount=Ice::nullopt, Ice::optional< int > sampleLifetime=Ice::nullopt, Ice::optional< ClearHistoryPolicy > clearHistory=Ice::nullopt, Ice::optional< int > priority=Ice::nullopt) noexcept
Construct a WriterConfig object.
Definition: Types.h:176
ReaderConfig(Ice::optional< int > sampleCount=Ice::nullopt, Ice::optional< int > sampleLifetime=Ice::nullopt, Ice::optional< ClearHistoryPolicy > clearHistory=Ice::nullopt, Ice::optional< DiscardPolicy > discardPolicy=Ice::nullopt) noexcept
Construct a ReaderConfig object.
Definition: Types.h:137
The configuration base class holds configuration options common to readers and writers.
Definition: Types.h:68
Samples are never discarded.
The ReaderConfig class specifies configuration options specific to readers.
Definition: Types.h:122
Ice::optional< int > sampleLifetime
The sampleLifetime configuration specifies samples to keep in the writer or reader history based on t...
Definition: Types.h:104
static std::vector< unsigned char > encode(const std::shared_ptr< Ice::Communicator > &communicator, const T &value) noexcept
Encode the given value.
Definition: Types.h:326
Config(Ice::optional< int > sampleCount=Ice::nullopt, Ice::optional< int > sampleLifetime=Ice::nullopt, Ice::optional< ClearHistoryPolicy > clearHistory=Ice::nullopt) noexcept
Construct a Config object.
Definition: Types.h:82
Ice::optional< ClearHistoryPolicy > clearHistory
The clear history policy specifies when samples are removed from the sample history.
Definition: Types.h:111
The callback is called because of connection.