// 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 RUA__Emulation_HH #define RUA__Emulation_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 "Iuh_Emulation.hh" #include "RANAP_Types.hh" #include "RANAP_Templates.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 RUA__Emulation_HH #endif namespace RUA__Emulation { /* Forward declarations of classes */ class RUA__Conn__PT; class RUA__Conn__Req; class RUA__Conn__Req_template; class RUA__Disc__Req; class RUA__Disc__Req_template; class RUA__Disc__Ind; class RUA__Disc__Ind_template; class ConnectionData; class ConnectionData_template; class RuaOps; class RuaOps_template; class RanapCreateCallback; class RanapCreateCallback_template; class RanapUnitdataCallback; class RanapUnitdataCallback_template; } /* end of namespace */ #ifndef RUA__Emulation_HH #define RUA__Emulation_HH namespace RUA__Emulation { /* Type definitions */ typedef COMPONENT RUA__ConnHdlr; typedef COMPONENT_template RUA__ConnHdlr_template; typedef BITSTRING ContextId; typedef BITSTRING_template ContextId_template; typedef COMPONENT RUA__Emulation__CT; typedef COMPONENT_template RUA__Emulation__CT_template; /* Class definitions */ class RUA__Conn__PT : public PORT { 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 { RANAP__PDU__Descriptions::RANAP__PDU *message_0; RUA__Conn__Req *message_1; RUA__Disc__Req *message_2; RUA__Disc__Ind *message_3; }; component sender_component; }; void remove_msg_queue_head(); protected: void clear_queue(); public: RUA__Conn__PT(const char *par_port_name = NULL); ~RUA__Conn__PT(); void send(const RANAP__PDU__Descriptions::RANAP__PDU& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RANAP__PDU__Descriptions::RANAP__PDU& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RANAP__PDU__Descriptions::RANAP__PDU& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RANAP__PDU__Descriptions::RANAP__PDU_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RANAP__PDU__Descriptions::RANAP__PDU_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RANAP__PDU__Descriptions::RANAP__PDU_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Conn__Req_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Req_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind_template& send_par, const COMPONENT& destination_component, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind_template& send_par, size_t nof_components, const COMPONENT* destination_components, FLOAT* timestamp_redirect = NULL); void send(const RUA__Disc__Ind_template& send_par, boolean broadcast = FALSE, FLOAT* timestamp_redirect = NULL); 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 RANAP__PDU__Descriptions::RANAP__PDU_template& value_template, RANAP__PDU__Descriptions::RANAP__PDU *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const RANAP__PDU__Descriptions::RANAP__PDU_template& value_template, RANAP__PDU__Descriptions::RANAP__PDU *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const RANAP__PDU__Descriptions::RANAP__PDU_template& value_template, RANAP__PDU__Descriptions::RANAP__PDU *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const RUA__Conn__Req_template& value_template, RUA__Conn__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const RUA__Conn__Req_template& value_template, RUA__Conn__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const RUA__Conn__Req_template& value_template, RUA__Conn__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const RUA__Disc__Req_template& value_template, RUA__Disc__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const RUA__Disc__Req_template& value_template, RUA__Disc__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const RUA__Disc__Req_template& value_template, RUA__Disc__Req *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status receive(const RUA__Disc__Ind_template& value_template, RUA__Disc__Ind *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status check_receive(const RUA__Disc__Ind_template& value_template, RUA__Disc__Ind *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); alt_status trigger(const RUA__Disc__Ind_template& value_template, RUA__Disc__Ind *value_redirect, const COMPONENT_template& sender_template, COMPONENT *sender_ptr, FLOAT* timestamp_redirect, Index_Redirect*); private: void incoming_message(const RANAP__PDU__Descriptions::RANAP__PDU& incoming_par, component sender_component); void incoming_message(const RUA__Conn__Req& incoming_par, component sender_component); void incoming_message(const RUA__Disc__Req& incoming_par, component sender_component); void incoming_message(const RUA__Disc__Ind& incoming_par, component sender_component); protected: boolean process_message(const char *message_type, Text_Buf& incoming_buf, component sender_component, OCTETSTRING& slider); }; class RUA__Conn__Req { BOOLEAN field_ps__domain; RANAP__PDU__Descriptions::RANAP__PDU field_ranap; public: RUA__Conn__Req(); RUA__Conn__Req(const BOOLEAN& par_ps__domain, const RANAP__PDU__Descriptions::RANAP__PDU& par_ranap); RUA__Conn__Req(const RUA__Conn__Req& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; RUA__Conn__Req& operator=(const RUA__Conn__Req& other_value); boolean operator==(const RUA__Conn__Req& other_value) const; inline boolean operator!=(const RUA__Conn__Req& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline BOOLEAN& ps__domain() {return field_ps__domain;} inline const BOOLEAN& ps__domain() const {return field_ps__domain;} inline RANAP__PDU__Descriptions::RANAP__PDU& ranap() {return field_ranap;} inline const RANAP__PDU__Descriptions::RANAP__PDU& ranap() const {return field_ranap;} 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 RUA__Conn__Req_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; RUA__Conn__Req_template *list_value; } value_list; struct { RUA__Conn__Req_template* precondition; RUA__Conn__Req_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const RUA__Conn__Req& other_value); void copy_template(const RUA__Conn__Req_template& other_value); public: RUA__Conn__Req_template(); RUA__Conn__Req_template(template_sel other_value); RUA__Conn__Req_template(const RUA__Conn__Req& other_value); RUA__Conn__Req_template(const OPTIONAL& other_value); RUA__Conn__Req_template(RUA__Conn__Req_template* p_precondition, RUA__Conn__Req_template* p_implied_template); RUA__Conn__Req_template(Dynamic_Match_Interface* p_dyn_match); RUA__Conn__Req_template(const RUA__Conn__Req_template& other_value); ~RUA__Conn__Req_template(); RUA__Conn__Req_template& operator=(template_sel other_value); RUA__Conn__Req_template& operator=(const RUA__Conn__Req& other_value); RUA__Conn__Req_template& operator=(const OPTIONAL& other_value); RUA__Conn__Req_template& operator=(const RUA__Conn__Req_template& other_value); boolean match(const RUA__Conn__Req& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); RUA__Conn__Req valueof() const; void set_type(template_sel template_type, unsigned int list_length); RUA__Conn__Req_template& list_item(unsigned int list_index) const; BOOLEAN_template& ps__domain(); const BOOLEAN_template& ps__domain() const; RANAP__PDU__Descriptions::RANAP__PDU_template& ranap(); const RANAP__PDU__Descriptions::RANAP__PDU_template& ranap() const; int size_of() const; void log() const; void log_match(const RUA__Conn__Req& 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 RUA__Disc__Req { RUA__IEs::Cause field_cause; OPTIONAL< RANAP__PDU__Descriptions::RANAP__PDU > field_ranap; public: RUA__Disc__Req(); RUA__Disc__Req(const RUA__IEs::Cause& par_cause, const OPTIONAL< RANAP__PDU__Descriptions::RANAP__PDU >& par_ranap); RUA__Disc__Req(const RUA__Disc__Req& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; RUA__Disc__Req& operator=(const RUA__Disc__Req& other_value); boolean operator==(const RUA__Disc__Req& other_value) const; inline boolean operator!=(const RUA__Disc__Req& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline RUA__IEs::Cause& cause() {return field_cause;} inline const RUA__IEs::Cause& cause() const {return field_cause;} inline OPTIONAL< RANAP__PDU__Descriptions::RANAP__PDU >& ranap() {return field_ranap;} inline const OPTIONAL< RANAP__PDU__Descriptions::RANAP__PDU >& ranap() const {return field_ranap;} int size_of() const; 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 RUA__Disc__Req_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; RUA__Disc__Req_template *list_value; } value_list; struct { RUA__Disc__Req_template* precondition; RUA__Disc__Req_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const RUA__Disc__Req& other_value); void copy_template(const RUA__Disc__Req_template& other_value); public: RUA__Disc__Req_template(); RUA__Disc__Req_template(template_sel other_value); RUA__Disc__Req_template(const RUA__Disc__Req& other_value); RUA__Disc__Req_template(const OPTIONAL& other_value); RUA__Disc__Req_template(RUA__Disc__Req_template* p_precondition, RUA__Disc__Req_template* p_implied_template); RUA__Disc__Req_template(Dynamic_Match_Interface* p_dyn_match); RUA__Disc__Req_template(const RUA__Disc__Req_template& other_value); ~RUA__Disc__Req_template(); RUA__Disc__Req_template& operator=(template_sel other_value); RUA__Disc__Req_template& operator=(const RUA__Disc__Req& other_value); RUA__Disc__Req_template& operator=(const OPTIONAL& other_value); RUA__Disc__Req_template& operator=(const RUA__Disc__Req_template& other_value); boolean match(const RUA__Disc__Req& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); RUA__Disc__Req valueof() const; void set_type(template_sel template_type, unsigned int list_length); RUA__Disc__Req_template& list_item(unsigned int list_index) const; RUA__IEs::Cause_template& cause(); const RUA__IEs::Cause_template& cause() const; RANAP__PDU__Descriptions::RANAP__PDU_template& ranap(); const RANAP__PDU__Descriptions::RANAP__PDU_template& ranap() const; int size_of() const; void log() const; void log_match(const RUA__Disc__Req& 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 RUA__Disc__Ind { RUA__IEs::Cause field_cause; public: RUA__Disc__Ind(); RUA__Disc__Ind(const RUA__IEs::Cause& par_cause); RUA__Disc__Ind(const RUA__Disc__Ind& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; RUA__Disc__Ind& operator=(const RUA__Disc__Ind& other_value); boolean operator==(const RUA__Disc__Ind& other_value) const; inline boolean operator!=(const RUA__Disc__Ind& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline RUA__IEs::Cause& cause() {return field_cause;} inline const RUA__IEs::Cause& cause() const {return field_cause;} inline int size_of() const {return 1;} 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 RUA__Disc__Ind_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; RUA__Disc__Ind_template *list_value; } value_list; struct { RUA__Disc__Ind_template* precondition; RUA__Disc__Ind_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const RUA__Disc__Ind& other_value); void copy_template(const RUA__Disc__Ind_template& other_value); public: RUA__Disc__Ind_template(); RUA__Disc__Ind_template(template_sel other_value); RUA__Disc__Ind_template(const RUA__Disc__Ind& other_value); RUA__Disc__Ind_template(const OPTIONAL& other_value); RUA__Disc__Ind_template(RUA__Disc__Ind_template* p_precondition, RUA__Disc__Ind_template* p_implied_template); RUA__Disc__Ind_template(Dynamic_Match_Interface* p_dyn_match); RUA__Disc__Ind_template(const RUA__Disc__Ind_template& other_value); ~RUA__Disc__Ind_template(); RUA__Disc__Ind_template& operator=(template_sel other_value); RUA__Disc__Ind_template& operator=(const RUA__Disc__Ind& other_value); RUA__Disc__Ind_template& operator=(const OPTIONAL& other_value); RUA__Disc__Ind_template& operator=(const RUA__Disc__Ind_template& other_value); boolean match(const RUA__Disc__Ind& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); RUA__Disc__Ind valueof() const; void set_type(template_sel template_type, unsigned int list_length); RUA__Disc__Ind_template& list_item(unsigned int list_index) const; RUA__IEs::Cause_template& cause(); const RUA__IEs::Cause_template& cause() const; int size_of() const; void log() const; void log_match(const RUA__Disc__Ind& 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 ConnectionData { COMPONENT field_comp__ref; RUA__IEs::CN__DomainIndicator field_domain; INTEGER field_context__id; public: ConnectionData(); ConnectionData(const COMPONENT& par_comp__ref, const RUA__IEs::CN__DomainIndicator& par_domain, const INTEGER& par_context__id); ConnectionData(const ConnectionData& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; ConnectionData& operator=(const ConnectionData& other_value); boolean operator==(const ConnectionData& other_value) const; inline boolean operator!=(const ConnectionData& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline COMPONENT& comp__ref() {return field_comp__ref;} inline const COMPONENT& comp__ref() const {return field_comp__ref;} inline RUA__IEs::CN__DomainIndicator& domain() {return field_domain;} inline const RUA__IEs::CN__DomainIndicator& domain() const {return field_domain;} inline INTEGER& context__id() {return field_context__id;} inline const INTEGER& context__id() const {return field_context__id;} inline int size_of() const {return 3;} 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 ConnectionData_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; ConnectionData_template *list_value; } value_list; struct { ConnectionData_template* precondition; ConnectionData_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const ConnectionData& other_value); void copy_template(const ConnectionData_template& other_value); public: ConnectionData_template(); ConnectionData_template(template_sel other_value); ConnectionData_template(const ConnectionData& other_value); ConnectionData_template(const OPTIONAL& other_value); ConnectionData_template(ConnectionData_template* p_precondition, ConnectionData_template* p_implied_template); ConnectionData_template(Dynamic_Match_Interface* p_dyn_match); ConnectionData_template(const ConnectionData_template& other_value); ~ConnectionData_template(); ConnectionData_template& operator=(template_sel other_value); ConnectionData_template& operator=(const ConnectionData& other_value); ConnectionData_template& operator=(const OPTIONAL& other_value); ConnectionData_template& operator=(const ConnectionData_template& other_value); boolean match(const ConnectionData& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); ConnectionData valueof() const; void set_type(template_sel template_type, unsigned int list_length); ConnectionData_template& list_item(unsigned int list_index) const; COMPONENT_template& comp__ref(); const COMPONENT_template& comp__ref() const; RUA__IEs::CN__DomainIndicator_template& domain(); const RUA__IEs::CN__DomainIndicator_template& domain() const; INTEGER_template& context__id(); const INTEGER_template& context__id() const; int size_of() const; void log() const; void log_match(const ConnectionData& 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 RuaOps { OPTIONAL< RanapCreateCallback > field_create__cb; OPTIONAL< RanapUnitdataCallback > field_unitdata__cb; public: RuaOps(); RuaOps(const OPTIONAL< RanapCreateCallback >& par_create__cb, const OPTIONAL< RanapUnitdataCallback >& par_unitdata__cb); RuaOps(const RuaOps& other_value); inline boolean is_component() { return FALSE; } void clean_up(); const TTCN_Typedescriptor_t* get_descriptor() const; RuaOps& operator=(const RuaOps& other_value); boolean operator==(const RuaOps& other_value) const; inline boolean operator!=(const RuaOps& other_value) const { return !(*this == other_value); } boolean is_bound() const; inline boolean is_present() const { return is_bound(); } boolean is_value() const; inline OPTIONAL< RanapCreateCallback >& create__cb() {return field_create__cb;} inline const OPTIONAL< RanapCreateCallback >& create__cb() const {return field_create__cb;} inline OPTIONAL< RanapUnitdataCallback >& unitdata__cb() {return field_unitdata__cb;} inline const OPTIONAL< RanapUnitdataCallback >& unitdata__cb() const {return field_unitdata__cb;} int size_of() const; 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 RuaOps_template : public Base_Template { struct single_value_struct; union { single_value_struct *single_value; struct { unsigned int n_values; RuaOps_template *list_value; } value_list; struct { RuaOps_template* precondition; RuaOps_template* implied_template; } implication_; dynmatch_struct* dyn_match; }; void set_specific(); void copy_value(const RuaOps& other_value); void copy_template(const RuaOps_template& other_value); public: RuaOps_template(); RuaOps_template(template_sel other_value); RuaOps_template(const RuaOps& other_value); RuaOps_template(const OPTIONAL& other_value); RuaOps_template(RuaOps_template* p_precondition, RuaOps_template* p_implied_template); RuaOps_template(Dynamic_Match_Interface* p_dyn_match); RuaOps_template(const RuaOps_template& other_value); ~RuaOps_template(); RuaOps_template& operator=(template_sel other_value); RuaOps_template& operator=(const RuaOps& other_value); RuaOps_template& operator=(const OPTIONAL& other_value); RuaOps_template& operator=(const RuaOps_template& other_value); boolean match(const RuaOps& other_value, boolean legacy = FALSE) const; boolean is_bound() const; boolean is_value() const; void clean_up(); RuaOps valueof() const; void set_type(template_sel template_type, unsigned int list_length); RuaOps_template& list_item(unsigned int list_index) const; RanapCreateCallback_template& create__cb(); const RanapCreateCallback_template& create__cb() const; RanapUnitdataCallback_template& unitdata__cb(); const RanapUnitdataCallback_template& unitdata__cb() const; int size_of() const; void log() const; void log_match(const RuaOps& 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 RanapCreateCallback : public Base_Type { public: typedef COMPONENT (*function_pointer)(const BITSTRING& context__id, const RUA__IEs::CN__DomainIndicator& domain, const CHARSTRING& id); typedef void (*start_pointer)(const COMPONENT& component_reference, const BITSTRING& context__id, const RUA__IEs::CN__DomainIndicator& domain, const CHARSTRING& id); private: friend class RanapCreateCallback_template; friend boolean operator==(RanapCreateCallback::function_pointer value, const RanapCreateCallback& other_value); function_pointer referred_function; public: RanapCreateCallback(); RanapCreateCallback(function_pointer other_value); RanapCreateCallback(const RanapCreateCallback& other_value); RanapCreateCallback& operator=(function_pointer other_value); RanapCreateCallback& operator=(const RanapCreateCallback& other_value); boolean operator==(function_pointer other_value) const; boolean operator==(const RanapCreateCallback& other_value) const; inline boolean operator!=(function_pointer other_value) const { return !(*this == other_value); } inline boolean operator!=(const RanapCreateCallback& other_value) const { return !(*this == other_value); } COMPONENT invoke(const BITSTRING& context__id, const RUA__IEs::CN__DomainIndicator& domain, const CHARSTRING& id) const; void start(const COMPONENT& component_reference, const BITSTRING& context__id, const RUA__IEs::CN__DomainIndicator& domain, const CHARSTRING& id) const; inline boolean is_bound() const { return referred_function != NULL; } inline boolean is_value() const { return referred_function != NULL; } inline void clean_up() { referred_function = NULL; } inline void must_bound(const char *err_msg) const { if (referred_function == NULL) TTCN_error("%s", err_msg); } inline boolean is_present() const { return is_bound(); } void log() const; void set_param(Module_Param& param); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); }; extern boolean operator==(RanapCreateCallback::function_pointer value, const RanapCreateCallback& other_value); inline boolean operator!=(RanapCreateCallback::function_pointer value, const RanapCreateCallback& other_value) { return !(value == other_value); } class RanapCreateCallback_template : public Base_Template { union { RanapCreateCallback::function_pointer single_value; struct { unsigned int n_values; RanapCreateCallback_template *list_value; } value_list; }; void copy_template(const RanapCreateCallback_template& other_value); public: RanapCreateCallback_template(); RanapCreateCallback_template(template_sel other_value); RanapCreateCallback_template(RanapCreateCallback::function_pointer other_value); RanapCreateCallback_template(const RanapCreateCallback& other_value); RanapCreateCallback_template(const OPTIONAL& other_value); RanapCreateCallback_template(const RanapCreateCallback_template& other_value); ~RanapCreateCallback_template(); void clean_up(); RanapCreateCallback_template& operator=(template_sel other_value); RanapCreateCallback_template& operator=(RanapCreateCallback::function_pointer other_value); RanapCreateCallback_template& operator=(const RanapCreateCallback& other_value); RanapCreateCallback_template& operator=(const OPTIONAL& other_value); RanapCreateCallback_template& operator=(const RanapCreateCallback_template& other_value); boolean match(RanapCreateCallback::function_pointer other_value, boolean legacy = FALSE) const; boolean match(const RanapCreateCallback& other_value, boolean legacy = FALSE) const; RanapCreateCallback valueof() const; void set_type(template_sel template_type, unsigned int list_length); RanapCreateCallback_template& list_item(unsigned int list_index) const; void log() const; void log_match(const RanapCreateCallback& match_value, boolean legacy = FALSE) const; void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); boolean is_present(boolean legacy = FALSE) const; boolean match_omit(boolean legacy = FALSE) const; void set_param(Module_Param& param); void check_restriction(template_res t_res, const char* t_name=NULL, boolean legacy = FALSE) const; }; class RanapUnitdataCallback : public Base_Type { public: typedef RANAP__PDU__Descriptions::RANAP__PDU_template (*function_pointer)(const RANAP__PDU__Descriptions::RANAP__PDU& ranap); typedef void (*start_pointer)(const COMPONENT& component_reference, const RANAP__PDU__Descriptions::RANAP__PDU& ranap); private: friend class RanapUnitdataCallback_template; friend boolean operator==(RanapUnitdataCallback::function_pointer value, const RanapUnitdataCallback& other_value); function_pointer referred_function; public: RanapUnitdataCallback(); RanapUnitdataCallback(function_pointer other_value); RanapUnitdataCallback(const RanapUnitdataCallback& other_value); RanapUnitdataCallback& operator=(function_pointer other_value); RanapUnitdataCallback& operator=(const RanapUnitdataCallback& other_value); boolean operator==(function_pointer other_value) const; boolean operator==(const RanapUnitdataCallback& other_value) const; inline boolean operator!=(function_pointer other_value) const { return !(*this == other_value); } inline boolean operator!=(const RanapUnitdataCallback& other_value) const { return !(*this == other_value); } RANAP__PDU__Descriptions::RANAP__PDU_template invoke(const RANAP__PDU__Descriptions::RANAP__PDU& ranap) const; void start(const COMPONENT& component_reference, const RANAP__PDU__Descriptions::RANAP__PDU& ranap) const; inline boolean is_bound() const { return referred_function != NULL; } inline boolean is_value() const { return referred_function != NULL; } inline void clean_up() { referred_function = NULL; } inline void must_bound(const char *err_msg) const { if (referred_function == NULL) TTCN_error("%s", err_msg); } inline boolean is_present() const { return is_bound(); } void log() const; void set_param(Module_Param& param); void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); }; extern boolean operator==(RanapUnitdataCallback::function_pointer value, const RanapUnitdataCallback& other_value); inline boolean operator!=(RanapUnitdataCallback::function_pointer value, const RanapUnitdataCallback& other_value) { return !(value == other_value); } class RanapUnitdataCallback_template : public Base_Template { union { RanapUnitdataCallback::function_pointer single_value; struct { unsigned int n_values; RanapUnitdataCallback_template *list_value; } value_list; }; void copy_template(const RanapUnitdataCallback_template& other_value); public: RanapUnitdataCallback_template(); RanapUnitdataCallback_template(template_sel other_value); RanapUnitdataCallback_template(RanapUnitdataCallback::function_pointer other_value); RanapUnitdataCallback_template(const RanapUnitdataCallback& other_value); RanapUnitdataCallback_template(const OPTIONAL& other_value); RanapUnitdataCallback_template(const RanapUnitdataCallback_template& other_value); ~RanapUnitdataCallback_template(); void clean_up(); RanapUnitdataCallback_template& operator=(template_sel other_value); RanapUnitdataCallback_template& operator=(RanapUnitdataCallback::function_pointer other_value); RanapUnitdataCallback_template& operator=(const RanapUnitdataCallback& other_value); RanapUnitdataCallback_template& operator=(const OPTIONAL& other_value); RanapUnitdataCallback_template& operator=(const RanapUnitdataCallback_template& other_value); boolean match(RanapUnitdataCallback::function_pointer other_value, boolean legacy = FALSE) const; boolean match(const RanapUnitdataCallback& other_value, boolean legacy = FALSE) const; RanapUnitdataCallback valueof() const; void set_type(template_sel template_type, unsigned int list_length); RanapUnitdataCallback_template& list_item(unsigned int list_index) const; void log() const; void log_match(const RanapUnitdataCallback& match_value, boolean legacy = FALSE) const; void encode_text(Text_Buf& text_buf) const; void decode_text(Text_Buf& text_buf); boolean is_present(boolean legacy = FALSE) const; boolean match_omit(boolean legacy = FALSE) const; void set_param(Module_Param& param); void check_restriction(template_res t_res, const char* t_name=NULL, boolean legacy = FALSE) const; }; class as__reset__ack_Default : public Default_Base { public: as__reset__ack_Default(); alt_status call_altstep(boolean first_alt_run); }; class as__main__rua_Default : public Default_Base { public: as__main__rua_Default(); alt_status call_altstep(boolean first_alt_run); }; /* Function prototypes */ extern BOOLEAN f__context__id__known(const BITSTRING& context__id); extern void start_f__context__id__known(const COMPONENT& component_reference, const BITSTRING& context__id); extern BOOLEAN f__comp__known(const COMPONENT& client); extern void start_f__comp__known(const COMPONENT& component_reference, const COMPONENT& client); extern BITSTRING f__context__id__by__comp(const COMPONENT& client); extern void start_f__context__id__by__comp(const COMPONENT& component_reference, const COMPONENT& client); extern INTEGER f__idx__by__comp(const COMPONENT& client); extern void start_f__idx__by__comp(const COMPONENT& component_reference, const COMPONENT& client); extern BITSTRING f__gen__context__id(); extern void start_f__gen__context__id(const COMPONENT& component_reference); extern void f__conn__table__init(); extern void start_f__conn__table__init(const COMPONENT& component_reference); extern void f__conn__table__add(const COMPONENT& comp__ref, const RUA__IEs::CN__DomainIndicator& domain, const BITSTRING& context__id); extern void start_f__conn__table__add(const COMPONENT& component_reference, const COMPONENT& comp__ref, const RUA__IEs::CN__DomainIndicator& domain, const BITSTRING& context__id); extern void f__conn__table__del(const BITSTRING& context__id); extern void start_f__conn__table__del(const COMPONENT& component_reference, const BITSTRING& context__id); extern COMPONENT f__comp__by__context__id(const BITSTRING& context__id); extern void start_f__comp__by__context__id(const COMPONENT& component_reference, const BITSTRING& context__id); extern RANAP__PDU__Descriptions::RANAP__PDU_template CommonRanapUnitdataCallback(const RANAP__PDU__Descriptions::RANAP__PDU& ranap); extern void start_CommonRanapUnitdataCallback(const COMPONENT& component_reference, const RANAP__PDU__Descriptions::RANAP__PDU& ranap); extern void f__handle__userData__RANAP(const COMPONENT& client, const RANAP__PDU__Descriptions::RANAP__PDU& ranap); extern void start_f__handle__userData__RANAP(const COMPONENT& component_reference, const COMPONENT& client, const RANAP__PDU__Descriptions::RANAP__PDU& ranap); extern alt_status as__reset__ack_instance(boolean first_alt_run); extern void as__reset__ack(boolean nodefault_modifier); extern Default_Base *activate_as__reset__ack(); extern alt_status as__main__rua_instance(boolean first_alt_run); extern void as__main__rua(boolean nodefault_modifier); extern Default_Base *activate_as__main__rua(); extern void f__ranap__reset(const RANAP__IEs::CN__DomainIndicator& dom, const RANAP__IEs::GlobalRNC__ID_template& grnc__id); extern void start_f__ranap__reset(const COMPONENT& component_reference, const RANAP__IEs::CN__DomainIndicator& dom, const RANAP__IEs::GlobalRNC__ID_template& grnc__id); extern void main_(const RuaOps& ops, const CHARSTRING& id); extern void start_main_(const COMPONENT& component_reference, const RuaOps& ops, const CHARSTRING& id); extern void pre_init_module(); extern void post_init_module(); extern boolean set_module_param(Module_Param& param); extern void log_module_param(); extern boolean init_comp_type(const char *component_type, boolean init_base_comps); extern boolean init_system_port(const char* component_type, const char* port_name); extern boolean start_ptc_function(const char *function_name, Text_Buf& function_arguments); /* Global variable declarations */ extern const INTEGER& mp__max__context__id; extern INTEGER modulepar_mp__max__context__id; extern const TTCN_Typedescriptor_t& RUA__ConnHdlr_descr_; extern RUA__Conn__PT RUA__ConnHdlr_component_RUA; extern const XERdescriptor_t RUA__Conn__Req_ps__domain_xer_; extern const TTCN_OERdescriptor_t RUA__Conn__Req_ps__domain_oer_; extern const TTCN_Typedescriptor_t RUA__Conn__Req_ps__domain_descr_; extern UNIVERSAL_CHARSTRING RUA__Conn__Req_ranap_default_coding; extern const TTCN_Typedescriptor_t RUA__Conn__Req_descr_; extern UNIVERSAL_CHARSTRING RUA__Disc__Req_cause_default_coding; extern const TTCN_Typedescriptor_t RUA__Disc__Req_descr_; extern UNIVERSAL_CHARSTRING RUA__Disc__Req_ranap_default_coding; extern UNIVERSAL_CHARSTRING RUA__Disc__Ind_cause_default_coding; extern const TTCN_Typedescriptor_t RUA__Disc__Ind_descr_; extern const TTCN_RAWdescriptor_t ContextId_raw_; extern const XERdescriptor_t ContextId_xer_; extern const TTCN_Typedescriptor_t ContextId_descr_; extern UNIVERSAL_CHARSTRING ConnectionData_domain_default_coding; extern const XERdescriptor_t ConnectionData_context__id_xer_; extern const TTCN_Typedescriptor_t ConnectionData_context__id_descr_; extern const TTCN_Typedescriptor_t ConnectionData_descr_; extern const TTCN_Typedescriptor_t& RUA__Emulation__CT_descr_; extern Iuh__Emulation::RUA__PT RUA__Emulation__CT_component_RUA; extern RUA__Conn__PT RUA__Emulation__CT_component_CLIENT; extern VALUE_ARRAY RUA__Emulation__CT_component_ConnectionTable; extern CHARSTRING RUA__Emulation__CT_component_g__rua__id; extern const TTCN_Typedescriptor_t RuaOps_descr_; extern const TTCN_Typedescriptor_t RanapCreateCallback_descr_; extern const TTCN_Typedescriptor_t RanapUnitdataCallback_descr_; extern RuaOps RUA__Emulation__CT_component_g__rua__ops; extern const RANAP__IEs::GlobalRNC__ID_template& f__ranap__reset_grnc__id_defval; extern RANAP__IEs::GlobalRNC__ID_template template_f__ranap__reset_grnc__id_defval; extern const CHARSTRING cs_0; extern const unsigned char module_checksum[]; extern TTCN_Module module_object; extern const RuntimeVersionChecker ver_checker; } /* end of namespace */ #endif