// This C++ source file was generated by the TTCN-3 compiler // of the TTCN-3 Test Executor version 9.0.0 // for (build@3978f7fbee0c) on Mon Jun 24 02:37:33 2024 // Copyright (c) 2000-2023 Ericsson Telecom AB // Do not edit this file unless you know what you are doing. /* Including header files */ #include "DIAMETER_ts29_212_Templates.hh" namespace DIAMETER__ts29__212__Templates { /* Literal string constants */ const unsigned char bs_1_bits[] = { 2 }, bs_0_bits[] = { 3 }; extern const BITSTRING bs_1(8, bs_1_bits), bs_0(8, bs_0_bits); const unsigned char os_0_octets[] = { 1, 0, 0, 22 }; extern const OCTETSTRING os_0(4, os_0_octets); extern const CHARSTRING cs_1(11, "localdomain"), cs_0(16, "pcrf.localdomain"); const unsigned char module_checksum[] = { 0x7e, 0xb1, 0x91, 0x37, 0x00, 0x3d, 0xd5, 0x59, 0x00, 0x36, 0xb7, 0x2a, 0x40, 0x48, 0xb3, 0x43 }; /* Global variable definitions */ INTEGER const_c__DIAMETER__3GPP__Gx__AID; const INTEGER& c__DIAMETER__3GPP__Gx__AID = const_c__DIAMETER__3GPP__Gx__AID; DIAMETER__Types::DCC__NONE__CC__Request__Type_template template_tr__DIA__Gx__CCR_req__type_defval; const DIAMETER__Types::DCC__NONE__CC__Request__Type_template& tr__DIA__Gx__CCR_req__type_defval = template_tr__DIA__Gx__CCR_req__type_defval; TTCN_Module module_object("DIAMETER_ts29_212_Templates", __DATE__, __TIME__, module_checksum, pre_init_module, NULL, 0U, 4294967295U, 4294967295U, 4294967295U, NULL, 0LU, 0, post_init_module, NULL, NULL, NULL, NULL, NULL, NULL, NULL); const RuntimeVersionChecker ver_checker( current_runtime_version.requires_major_version_9, current_runtime_version.requires_minor_version_0, current_runtime_version.requires_patch_level_0, current_runtime_version.requires_runtime_1); /* Bodies of functions, altsteps and testcases */ DIAMETER__Types::PDU__DIAMETER_template tr__DIA__Gx__CCR(const DIAMETER__Types::DCC__NONE__CC__Request__Type_template& req__type) { TTCN_Location current_location("DIAMETER_ts29_212_Templates.ttcn", 28, TTCN_Location::LOCATION_TEMPLATE, "tr_DIA_Gx_CCR"); DIAMETER__Types::PDU__DIAMETER_template ret_val; { DIAMETER__Types::AVP__list_template tmp_0; tmp_0.set_type(SUPERSET_MATCH, 7); tmp_0.set_item(0) = DIAMETER__Templates::tr__AVP__SessionId(DIAMETER__Templates::tr__AVP__SessionId_session__id_defval); tmp_0.set_item(1) = DIAMETER__Templates::tr__AVP__OriginHost(DIAMETER__Templates::tr__AVP__OriginHost_host_defval); tmp_0.set_item(2) = DIAMETER__Templates::tr__AVP__OriginRealm(DIAMETER__Templates::tr__AVP__OriginRealm_realm_defval); tmp_0.set_item(3) = DIAMETER__Templates::tr__AVP__DestinationRealm(DIAMETER__Templates::tr__AVP__DestinationRealm_dest__realm_defval); tmp_0.set_item(4) = DIAMETER__Templates::tr__AVP__AuthAppId(OCTETSTRING_template(os_0)); tmp_0.set_item(5) = DIAMETER__Templates::tr__AVP__CcReqType(req__type); tmp_0.set_item(6) = DIAMETER__Templates::tr__AVP__CcReqNum(OCTETSTRING_template(ANY_VALUE)); ret_val = DIAMETER__Templates::tr__DIAMETER(BITSTRING_template(bs_0), DIAMETER__Types::Command__Code_template(DIAMETER__Types::Command__Code::Credit__Control), DIAMETER__Templates::tr__DIAMETER_app__id_defval, DIAMETER__Templates::tr__DIAMETER_hbh__id_defval, DIAMETER__Templates::tr__DIAMETER_ete__id_defval, tmp_0); } return ret_val; } DIAMETER__Types::PDU__DIAMETER_template ts__DIA__Gx__CCA(const OCTETSTRING_template& hbh__id, const OCTETSTRING_template& ete__id, const OCTETSTRING_template& sess__id, const DIAMETER__Types::DCC__NONE__CC__Request__Type_template& req__type, const OCTETSTRING_template& req__num) { TTCN_Location current_location("DIAMETER_ts29_212_Templates.ttcn", 42, TTCN_Location::LOCATION_TEMPLATE, "ts_DIA_Gx_CCA"); DIAMETER__Types::PDU__DIAMETER_template ret_val; { DIAMETER__Types::AVP__list_template tmp_1; tmp_1.set_size(9); tmp_1[0] = DIAMETER__Templates::ts__AVP__SessionId(sess__id); tmp_1[1] = DIAMETER__Templates::ts__AVP__ResultCode(DIAMETER__Templates::DIAMETER__Resultcode_template(DIAMETER__Templates::DIAMETER__Resultcode::DIAMETER__SUCCESS)); tmp_1[2] = DIAMETER__Templates::ts__AVP__OriginHost(CHARSTRING_template(cs_0)); tmp_1[3] = DIAMETER__Templates::ts__AVP__OriginRealm(CHARSTRING_template(cs_1)); tmp_1[4] = DIAMETER__Templates::ts__AVP__AuthAppId(OCTETSTRING_template(os_0)); tmp_1[5] = DIAMETER__Templates::ts__AVP__CcReqType(req__type); tmp_1[6] = DIAMETER__Templates::ts__AVP__CcReqNum(req__num); { DIAMETER__Types::AVP__list_template tmp_2; tmp_2.set_size(2); tmp_2[0] = DIAMETER__Templates::ts__AVP__PCC__3GPP__APN__Aggregate__Max__Bitrate__UL(33554432); tmp_2[1] = DIAMETER__Templates::ts__AVP__PCC__3GPP__APN__Aggregate__Max__Bitrate__DL(52428800); tmp_1[7] = DIAMETER__Templates::ts__AVP__PCC__3GPP__QoS__Information(tmp_2); } { DIAMETER__Types::AVP__list_template tmp_3; tmp_3.set_size(2); tmp_3[0] = DIAMETER__Templates::ts__AVP__PCC__3GPP__QoS__Class__Identifier(9); tmp_3[1] = DIAMETER__Templates::ts__AVP__PCC__3GPP__AllocRetenPrio(2); tmp_1[8] = DIAMETER__Templates::ts__AVP__PCC__3GPP__Default__EPS__Bearer__QoS(tmp_3); } ret_val = DIAMETER__Templates::ts__DIAMETER(BITSTRING_template(bs_1), DIAMETER__Types::Command__Code_template(DIAMETER__Types::Command__Code::Credit__Control), OCTETSTRING_template(os_0), hbh__id, ete__id, tmp_1); } return ret_val; } /* Bodies of static functions */ void pre_init_module() { TTCN_Location current_location("DIAMETER_ts29_212_Templates.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "DIAMETER_ts29_212_Templates"); DIAMETER__Templates::module_object.pre_init_module(); current_location.update_lineno(25); /* DIAMETER_ts29_212_Templates.ttcn, line 25 */ const_c__DIAMETER__3GPP__Gx__AID = 16777238; } void post_init_module() { TTCN_Location current_location("DIAMETER_ts29_212_Templates.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "DIAMETER_ts29_212_Templates"); DIAMETER__Templates::module_object.post_init_module(); current_location.update_lineno(29); /* DIAMETER_ts29_212_Templates.ttcn, line 29 */ template_tr__DIA__Gx__CCR_req__type_defval = DIAMETER__Types::DCC__NONE__CC__Request__Type::INITIAL__REQUEST; } } /* end of namespace */