MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / DataWriterImpl

Method DataWriterImpl

dds/DCPS/DataWriterImpl.cpp:60–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58// cannot be false.
59
60DataWriterImpl::DataWriterImpl()
61 : data_dropped_count_(0)
62 , data_delivered_count_(0)
63 , controlTracker("DataWriterImpl")
64 , publisher_content_filter_(TheServiceParticipant->publisher_content_filter())
65 , n_chunks_(TheServiceParticipant->n_chunks())
66 , association_chunk_multiplier_(TheServiceParticipant->association_chunk_multiplier())
67 , qos_(TheServiceParticipant->initial_DataWriterQos())
68 , skip_serialize_(false)
69 , db_lock_pool_(new DataBlockLockPool((unsigned long)TheServiceParticipant->n_chunks()))
70 , topic_id_(GUID_UNKNOWN)
71 , topic_servant_(0)
72 , type_support_(0)
73 , listener_mask_(DEFAULT_STATUS_MASK)
74 , domain_id_(0)
75 , publication_id_(GUID_UNKNOWN)
76 , sequence_number_(SequenceNumber::SEQUENCENUMBER_UNKNOWN())
77 , coherent_(false)
78 , coherent_samples_(0)
79 , last_deadline_missed_total_count_(0)
80 , is_bit_(false)
81 , min_suspended_transaction_id_(0)
82 , max_suspended_transaction_id_(0)
83 , liveliness_send_task_(make_rch<SporadicEvent>(TheServiceParticipant->event_dispatcher(), make_rch<DWIEvent>(rchandle_from(this), &DataWriterImpl::liveliness_send_task)))
84 , liveliness_lost_task_(make_rch<SporadicEvent>(TheServiceParticipant->event_dispatcher(), make_rch<DWIEvent>(rchandle_from(this), &DataWriterImpl::liveliness_lost_task)))
85 , liveliness_send_interval_(TimeDuration::max_value)
86 , liveliness_lost_interval_(TimeDuration::max_value)
87 , liveliness_lost_(false)
88{
89 liveliness_lost_status_.total_count = 0;
90 liveliness_lost_status_.total_count_change = 0;
91
92 offered_deadline_missed_status_.total_count = 0;
93 offered_deadline_missed_status_.total_count_change = 0;
94 offered_deadline_missed_status_.last_instance_handle = DDS::HANDLE_NIL;
95
96 offered_incompatible_qos_status_.total_count = 0;
97 offered_incompatible_qos_status_.total_count_change = 0;
98 offered_incompatible_qos_status_.last_policy_id = 0;
99 offered_incompatible_qos_status_.policies.length(0);
100
101 publication_match_status_.total_count = 0;
102 publication_match_status_.total_count_change = 0;
103 publication_match_status_.current_count = 0;
104 publication_match_status_.current_count_change = 0;
105 publication_match_status_.last_subscription_handle = DDS::HANDLE_NIL;
106
107 monitor_.reset(TheServiceParticipant->monitor_factory_->create_data_writer_monitor(this));
108 periodic_monitor_.reset(TheServiceParticipant->monitor_factory_->create_data_writer_periodic_monitor(this));
109}
110
111// This method is called when there are no longer any reference to the
112// the servant.

Callers

nothing calls this directly

Calls 10

SEQUENCENUMBER_UNKNOWNFunction · 0.85
rchandle_fromFunction · 0.85
n_chunksMethod · 0.45
event_dispatcherMethod · 0.45
lengthMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected