// This C++ header file was generated by the TTCN-3 compiler // of the TTCN-3 Test Executor version 11.1.0 // The generation of user and time information were disabled by the -D flag. // Copyright (c) 2000-2025 Ericsson Telecom AB // Do not edit this file unless you know what you are doing. #ifndef PCUIF__CodecPort_HH #define PCUIF__CodecPort_HH #ifdef TITAN_RUNTIME_2 #error Generated code does not match with used runtime.\ Code was generated without -R option but -DTITAN_RUNTIME_2 was used. #endif /* Header file includes */ #include #include "PCUIF_Types.hh" #include "UD_PortType.hh" #if TTCN3_VERSION != 110100 #error Version mismatch detected.\ Please check the version of the TTCN-3 compiler and the base library.\ Run make clean and rebuild the project if the version of the compiler changed recently. #endif #ifndef LINUX #error This file should be compiled on LINUX #endif #undef PCUIF__CodecPort_HH #endif namespace PCUIF__CodecPort { /* Forward declarations of classes */ class PCUIF__send__data; class PCUIF__send__data_template; class PCUIF__CODEC__PT; } /* end of namespace */ #ifndef PCUIF__CodecPort_HH #define PCUIF__CodecPort_HH namespace PCUIF__CodecPort { /* Class definitions */ class PCUIF__send__data { PCUIF__Types::PCUIF__Message field_data; INTEGER field_id; public: PCUIF__send__data(); PCUIF__send__data(const PCUIF__Types::PCUIF__Message& par_data, const INTEGER& par_id); PCUIF__send__data(const PCUIF__send__data& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; PCUIF__send__data& operator=(const PCUIF__send__data& other_value); boolean operator==(const PCUIF__send__data& other_value) const; inline boolean operator!=(const PCUIF__send__data& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline PCUIF__Types::PCUIF__Message& data() {return field_data;} inline const PCUIF__Types::PCUIF__Message& data() const {return field_data;} inline INTEGER& id() {return field_id;} inline const INTEGER& id() const {return field_id;} inline int size_of() const {return 2;} void log() const; void set_implicit_omit(); void set_param(Module_Param& param); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); }; class PCUIF__send__data_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; PCUIF__send__data_template *list_value; } value_list; struct { PCUIF__send__data_template* precondition; PCUIF__send__data_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const PCUIF__send__data& other_value); void copy_template(const PCUIF__send__data_template& other_value); public: PCUIF__send__data_template(); PCUIF__send__data_template(template_sel other_value); PCUIF__send__data_template(const PCUIF__send__data& other_value); PCUIF__send__data_template(const OPTIONAL& other_value); PCUIF__send__data_template(PCUIF__send__data_template* p_precondition, PCUIF__send__data_template* p_implied_template); PCUIF__send__data_template(Dynamic_Match_Interface* p_dyn_match); PCUIF__send__data_template(const PCUIF__send__data_template& other_value); ~PCUIF__send__data_template(); PCUIF__send__data_template& operator=(template_sel other_value); PCUIF__send__data_template& operator=(const PCUIF__send__data& other_value); PCUIF__send__data_template& operator=(const OPTIONAL& other_value); PCUIF__send__data_template& operator=(const PCUIF__send__data_template& other_value); boolean match(const PCUIF__send__data& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); PCUIF__send__data valueof() const; void set_type(template_sel template_type, unsigned int list_length); PCUIF__send__data_template& list_item(unsigned int list_index) const; PCUIF__Types::PCUIF__Message_template& data(); const PCUIF__Types::PCUIF__Message_template& data() const; INTEGER_template& id(); const INTEGER_template& id() const; int size_of() const; void log() const; void log_match(const PCUIF__send__data& match_value, boolean legacy = FALSE) const; void set_implicit_omit(); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); void set_param(Module_Param& param); void check_restriction(template_res t_res, const char* t_name=NULL, boolean legacy = FALSE) const; boolean is_present(boolean legacy = FALSE) const; boolean match_omit(boolean legacy = FALSE) const; }; class PCUIF__CODEC__PT : public UD__PortType::UD__PT_PROVIDER { enum msg_selection { MESSAGE_0, MESSAGE_1, MESSAGE_2, MESSAGE_3 }; struct msg_queue_item : public msg_queue_item_base { msg_selection item_selection; union { UD__Types::UD__listen__result *message_0; UD__Types::UD__connect__result *message_1; UD__Types::UD__connected *message_2; PCUIF__send__data *message_3; }; component sender_component; }; void remove_msg_queue_head(); protected: void clear_queue(); public: PCUIF__CODEC__PT(const char *par_port_name = NULL); ~PCUIF__CODEC__PT(); void send(const UD__Types::UD__close& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__close& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__close& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__close_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__close_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__close_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__listen_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__shutdown_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const UD__Types::UD__connect_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const PCUIF__send__data_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); public: PORT* get_provider_port(); public: alt_status receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const UD__Types::UD__listen__result_template& value_template, UD__Types::UD__listen__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const UD__Types::UD__listen__result_template& value_template, UD__Types::UD__listen__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const UD__Types::UD__listen__result_template& value_template, UD__Types::UD__listen__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const UD__Types::UD__connect__result_template& value_template, UD__Types::UD__connect__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const UD__Types::UD__connect__result_template& value_template, UD__Types::UD__connect__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const UD__Types::UD__connect__result_template& value_template, UD__Types::UD__connect__result *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const UD__Types::UD__connected_template& value_template, UD__Types::UD__connected *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const UD__Types::UD__connected_template& value_template, UD__Types::UD__connected *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const UD__Types::UD__connected_template& value_template, UD__Types::UD__connected *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const PCUIF__send__data_template& value_template, PCUIF__send__data *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const PCUIF__send__data_template& value_template, PCUIF__send__data *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const PCUIF__send__data_template& value_template, PCUIF__send__data *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); private: void incoming_message(const UD__Types::UD__listen__result& incoming_par, component sender_component); void incoming_message(const UD__Types::UD__connect__result& incoming_par, component sender_component); void incoming_message(const UD__Types::UD__connected& incoming_par, component sender_component); void incoming_message(const UD__Types::UD__send__data& incoming_par, component sender_component); protected: void incoming_message(const UD__Types::UD__listen__result& incoming_par); void incoming_message(const UD__Types::UD__connect__result& incoming_par); void incoming_message(const UD__Types::UD__connected& incoming_par); void incoming_message(const UD__Types::UD__send__data& incoming_par); boolean process_message(const char *message_type, Text_Buf& incoming_buf, component sender_component, OCTETSTRING& slider); }; /* Function prototypes */ extern void PCUIF__to__UD(const PCUIF__send__data& pin, UD__Types::UD__send__data& pout); extern void fix__padding(PCUIF__Types::PCUIF__data& data); extern void UD__to__PCUIF(const UD__Types::UD__send__data& pin, PCUIF__send__data& pout); extern PCUIF__send__data_template t__SD__PCUIF(const INTEGER& id, const PCUIF__Types::PCUIF__Message_template& pdu); extern PCUIF__send__data_template t__SD__PCUIF__MSGT(const INTEGER& id, const PCUIF__Types::PCUIF__MsgType_template& msg__type, const INTEGER_template& bts__nr); extern INTEGER f__pcuif__connect(PCUIF__CODEC__PT& pt, const CHARSTRING& sock); extern void f__pcuif__close(PCUIF__CODEC__PT& pt, const INTEGER& id); extern INTEGER f__pcuif__listen(PCUIF__CODEC__PT& pt, const CHARSTRING& sock); extern void f__PCUIF__tx__imm__ass__pch(PCUIF__CODEC__PT& pt, const INTEGER& conn__id, const OCTETSTRING& imm__ass, const HEXSTRING& imsi, const INTEGER& bts__nr, const BOOLEAN& wait__for__cnf, const OCTETSTRING& msg__id); extern void f__PCUIF__tx__mac__block__agch(PCUIF__CODEC__PT& pt, const INTEGER& conn__id, const OCTETSTRING& mac__block, const BOOLEAN& confirm, const INTEGER& bts__nr, const BOOLEAN& wait__for__cnf, const OCTETSTRING& msg__id); extern void pre_init_module(); extern void post_init_module(); /* Global variable declarations */ extern UNIVERSAL_CHARSTRING PCUIF__send__data_data_default_coding; extern const XERdescriptor_t PCUIF__send__data_id_xer_; extern const TTCN_Typedescriptor_t PCUIF__send__data_id_descr_; extern const TTCN_Typedescriptor_t PCUIF__send__data_descr_; extern const INTEGER_template& t__SD__PCUIF__MSGT_bts__nr_defval; extern INTEGER_template template_t__SD__PCUIF__MSGT_bts__nr_defval; extern const INTEGER& f__PCUIF__tx__imm__ass__pch_bts__nr_defval; extern INTEGER const_f__PCUIF__tx__imm__ass__pch_bts__nr_defval; extern const BOOLEAN& f__PCUIF__tx__imm__ass__pch_wait__for__cnf_defval; extern BOOLEAN const_f__PCUIF__tx__imm__ass__pch_wait__for__cnf_defval; extern const OCTETSTRING& f__PCUIF__tx__imm__ass__pch_msg__id_defval; extern OCTETSTRING const_f__PCUIF__tx__imm__ass__pch_msg__id_defval; extern const BOOLEAN& f__PCUIF__tx__mac__block__agch_confirm_defval; extern BOOLEAN const_f__PCUIF__tx__mac__block__agch_confirm_defval; extern const INTEGER& f__PCUIF__tx__mac__block__agch_bts__nr_defval; extern INTEGER const_f__PCUIF__tx__mac__block__agch_bts__nr_defval; extern const BOOLEAN& f__PCUIF__tx__mac__block__agch_wait__for__cnf_defval; extern BOOLEAN const_f__PCUIF__tx__mac__block__agch_wait__for__cnf_defval; extern const OCTETSTRING& f__PCUIF__tx__mac__block__agch_msg__id_defval; extern OCTETSTRING const_f__PCUIF__tx__mac__block__agch_msg__id_defval; extern const OCTETSTRING os_0; extern const unsigned char module_checksum[]; extern TTCN_Module module_object; extern const RuntimeVersionChecker ver_checker; } /* end of namespace */ #endif