25 #ifndef _ED247_CONTEXT_H_ 26 #define _ED247_CONTEXT_H_ 27 #include "ed247_xml.h" 28 #include "ed247_channel.h" 39 static Context* create_from_filepath(std::string ecic_filepath);
40 static Context* create_from_content(std::string ecic_content);
48 const std::string& get_file_producer_identifier() {
return _configuration->_file_producer_identifier; }
49 const std::string& get_file_producer_comment() {
return _configuration->_file_producer_comment; }
50 const std::string& get_version() {
return _configuration->_version; }
52 const std::string& get_name() {
return _configuration->_name; }
53 const std::string& get_comment() {
return _configuration->_comment; }
54 ed247_uid_t get_identifier() {
return _configuration->_identifier; }
55 ed247_standard_t get_standard_revision() {
return _configuration->_standard_revision; }
59 void set_user_data(
void *user_data) { _user_data = user_data; }
60 void get_user_data(
void **user_data) { *user_data = _user_data; }
65 SignalSet& get_signal_set() {
return _signal_set; }
66 StreamSet& get_stream_set() {
return _stream_set; }
67 ChannelSet& get_channel_set() {
return _channel_set; }
77 bool stream_assistants_written_push_samples(
const ed247_timestamp_t* data_timestamp);
87 void send_pushed_samples();
94 Context(std::unique_ptr<xml::Component>&& configuration);
96 std::unique_ptr<xml::Component> _configuration;
104 std::unique_ptr<ed247_internal_stream_list_t> _client_streams;
105 std::unique_ptr<ed247_internal_stream_list_t> _client_streams_with_data;
106 std::unique_ptr<ed247_internal_channel_list_t> _client_channels;
Definition: ed247_cominterface.h:131
Definition: ed247_signal.h:89
Definition: ed247_channel.h:93
ed247_standard_t
ED247 Standard revisions.
Definition: ed247.h:104
Definition: ed247_stream.h:168
ed247_component_type_t
Component types.
Definition: ed247.h:121
Timestamp structure, seconds from EPOCH (January 1st 1970) and nanoseconds offset with reference to p...
Definition: ed247.h:209
uint16_t ed247_uid_t
Unique identifier type.
Definition: ed247.h:115
Definition: ed247_stream.h:34
Definition: ed247_context.h:36
ed247_status_t
Status codes.
Definition: ed247.h:67
Definition: ed247_channel.cpp:37
Definition: ed247_channel.h:35
ed247_status_t stream_assistants_pop_samples(ed247_context_t context)
Pop all samples of all input stream assistants. aka 'update all signals'.
Definition: ed247.cpp:2024
Definition: ed247_context.h:31