123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef _FASTRTPS_SAMPLEINFO_HPP_
- #define _FASTRTPS_SAMPLEINFO_HPP_
- #include <fastdds/rtps/common/Types.h>
- #include <fastdds/rtps/common/Time_t.h>
- #include <fastdds/rtps/common/InstanceHandle.h>
- #include <fastdds/rtps/common/SampleIdentity.h>
- namespace eprosima {
- namespace fastdds {
- namespace dds {
- enum SampleStateKind
- {
- READ,
- NOT_READ
- };
- enum ViewStateKind
- {
- NEW,
- NOT_NEW
- };
- enum InstanceStateKind
- {
- ALIVE,
- NOT_ALIVE_DISPOSED,
- NOT_ALIVE_NO_WRITERS
- };
- struct SampleInfo
- {
-
- SampleStateKind sample_state;
-
- ViewStateKind view_state;
-
- InstanceStateKind instance_state;
-
- int32_t disposed_generation_count;
-
- int32_t no_writers_generation_count;
-
- int32_t sample_rank;
-
- int32_t generation_rank;
-
-
- int32_t absoulte_generation_rank;
-
- fastrtps::rtps::Time_t source_timestamp;
-
- fastrtps::rtps::InstanceHandle_t instance_handle;
-
-
-
- fastrtps::rtps::InstanceHandle_t publication_handle;
-
- bool valid_data;
-
- fastrtps::rtps::SampleIdentity sample_identity;
-
- fastrtps::rtps::SampleIdentity related_sample_identity;
- };
- }
- }
- }
- #endif
|