Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC TTCN-3 Test Suite
Commits
110b9d05
Commit
110b9d05
authored
May 26, 2021
by
YannGarcia
Browse files
Finalyze typing for MEC028
parent
77f7c526
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
ccsrc/Protocols/Json/json_codec.cc
View file @
110b9d05
...
...
@@ -433,6 +433,21 @@ int json_codec::decode (const OCTETSTRING& p_data, LibItsHttp__JsonMessageBodyTy
TTCN_Buffer
decoding_buffer_
(
OCTETSTRING
(
str
.
length
(),
(
const
unsigned
char
*
)
str
.
c_str
()));
predicted_qos
.
decode
(
V2XInformationServiceAPI__TypesAndValues
::
PredictedQos_descr_
,
decoding_buffer_
,
TTCN_EncDec
::
CT_JSON
);
msg
.
predictedQos
()
=
predicted_qos
;
}
else
if
((
it
->
second
.
find
(
"
\"
provChgUuUniSubscription
\"
"
)
!=
std
::
string
::
npos
)
||
(
it
->
second
.
find
(
"
\"
v2xApplicationServer
\"
"
)
!=
std
::
string
::
npos
))
{
V2XInformationServiceAPI__TypesAndValues
::
ProvChgUuUniSubscription
prov_chg_uu_uni_subscription
;
TTCN_Buffer
decoding_buffer_
(
OCTETSTRING
(
str
.
length
(),
(
const
unsigned
char
*
)
str
.
c_str
()));
prov_chg_uu_uni_subscription
.
decode
(
V2XInformationServiceAPI__TypesAndValues
::
ProvChgUuUniSubscription_descr_
,
decoding_buffer_
,
TTCN_EncDec
::
CT_JSON
);
msg
.
provChgUuUniSubscription
()
=
prov_chg_uu_uni_subscription
;
}
else
if
((
it
->
second
.
find
(
"
\"
provChgUuMbmsSubscription
\"
"
)
!=
std
::
string
::
npos
)
||
(
it
->
second
.
find
(
"
\"
v2xApplicationServer
\"
"
)
!=
std
::
string
::
npos
))
{
V2XInformationServiceAPI__TypesAndValues
::
ProvChgUuMbmsSubscription
prov_chg_uu_mbms_subscription
;
TTCN_Buffer
decoding_buffer_
(
OCTETSTRING
(
str
.
length
(),
(
const
unsigned
char
*
)
str
.
c_str
()));
prov_chg_uu_mbms_subscription
.
decode
(
V2XInformationServiceAPI__TypesAndValues
::
ProvChgUuMbmsSubscription_descr_
,
decoding_buffer_
,
TTCN_EncDec
::
CT_JSON
);
msg
.
provChgUuMbmsSubscription
()
=
prov_chg_uu_mbms_subscription
;
}
else
if
((
it
->
second
.
find
(
"
\"
provChgPc5Subscription
\"
"
)
!=
std
::
string
::
npos
)
||
(
it
->
second
.
find
(
"
\"
v2xApplicationServer
\"
"
)
!=
std
::
string
::
npos
))
{
V2XInformationServiceAPI__TypesAndValues
::
ProvChgPc5Subscription
prov_chg_pc5_subscription
;
TTCN_Buffer
decoding_buffer_
(
OCTETSTRING
(
str
.
length
(),
(
const
unsigned
char
*
)
str
.
c_str
()));
prov_chg_pc5_subscription
.
decode
(
V2XInformationServiceAPI__TypesAndValues
::
ProvChgPc5Subscription_descr_
,
decoding_buffer_
,
TTCN_EncDec
::
CT_JSON
);
msg
.
provChgPc5Subscription
()
=
prov_chg_pc5_subscription
;
}
else
if
(
it
->
second
.
find
(
"
\"
detail
\"
"
)
!=
std
::
string
::
npos
)
{
LibMec__TypesAndValues
::
ProblemDetails
problem_details
;
problem_details
.
decode
(
LibMec__TypesAndValues
::
ProblemDetails_descr_
,
decoding_buffer
,
TTCN_EncDec
::
CT_JSON
);
...
...
ttcn/LibMec/DeviceApplicationInterface/json/UEAppInterfaceApi.json
0 → 100644
View file @
110b9d05
This diff is collapsed.
Click to expand it.
ttcn/LibMec/WlanInformationAPI/json/WlanInformationAPI.json
0 → 100644
View file @
110b9d05
This diff is collapsed.
Click to expand it.
ttcn/LibMec/WlanInformationAPI/module.mk
View file @
110b9d05
...
...
@@ -3,4 +3,5 @@ sources := \
ttcn/WlanInformationAPI_Pics.ttcn
\
ttcn/WlanInformationAPI_Pixits.ttcn
\
ttcn/WlanInformationAPI_Templates.ttcn
\
ttcn/WlanInformationAPI_Functions.ttcn
ttcn/LibMec/WlanInformationAPI/ttcn/WlanInformationAPI_Functions.ttcn
0 → 100644
View file @
110b9d05
module
WlanInformationAPI_Functions
{
}
// End of module WlanInformationAPI_Functions
ttcn/LibMec/WlanInformationAPI/ttcn/WlanInformationAPI_TypesAndValues.ttcn
View file @
110b9d05
This diff is collapsed.
Click to expand it.
ttcn/patch_lib_http/LibItsHttp_JsonTemplates.ttcn
View file @
110b9d05
/**
* @author ETSI / STF569
* @version $URL$
* $ID:$
* @desc This module provides the custom templates for ITS HTTP based protocols.
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
* @author ETSI / STF569
* @version $URL$
* $ID:$
* @desc This module provides the custom templates for ITS HTTP based protocols.
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
module
LibItsHttp_JsonTemplates
{
// LibMec
...
...
@@ -992,6 +992,90 @@ group ams_api {
pc5ProvisioningInfo
:=
p_pc5ProvisioningInfo
}
// End of template mw_body_json_pc5_provisioning_info
template
(
value
)
JsonBody
m_body_json_v2x_predicted_qos
(
in
template
(
value
)
PredictedQos
p_predicted_qos
)
:=
{
predictedQos
:=
p_predicted_qos
}
// End of template m_body_json_v2x_predicted_qos
template
(
present
)
JsonBody
mw_body_json_v2x_predicted_qos
(
template
(
present
)
PredictedQos
p_predicted_qos
:=
?
)
:=
{
predictedQos
:=
p_predicted_qos
}
// End of template mw_body_json_v2x_predicted_qos
template
(
value
)
JsonBody
m_body_json_v2x_message
(
in
template
(
value
)
V2xMsgPublication
p_message
)
:=
{
v2xMsgPublication
:=
p_message
}
// End of template m_body_json_v2x_message
template
(
present
)
JsonBody
mw_body_json_v2x_message
(
template
(
present
)
V2xMsgPublication
p_message
:=
?
)
:=
{
v2xMsgPublication
:=
p_message
}
// End of template mw_body_json_v2x_message
template
(
value
)
JsonBody
m_body_json_subscription_links_list
(
in
template
(
value
)
SubscriptionLinksList
p_subscription_links_list
)
:=
{
subscriptionLinksList
:=
p_subscription_links_list
}
// End of template m_body_json_subscription_links_list
template
(
present
)
JsonBody
mw_body_json_subscription_links_list
(
template
(
present
)
SubscriptionLinksList
p_subscription_links_list
:=
?
)
:=
{
subscriptionLinksList
:=
p_subscription_links_list
}
// End of template mw_body_json_subscription_links_list
template
(
value
)
JsonBody
m_body_json_prov_chg_uu_uni_subscription
(
in
template
(
value
)
ProvChgUuUniSubscription
p_provChgUuUniSubscription
)
:=
{
provChgUuUniSubscription
:=
p_provChgUuUniSubscription
}
// End of template m_body_json_prov_chg_uu_uni_subscription
template
(
present
)
JsonBody
mw_body_json_prov_chg_uu_uni_subscription
(
template
(
present
)
ProvChgUuUniSubscription
p_provChgUuUniSubscription
:=
?
)
:=
{
provChgUuUniSubscription
:=
p_provChgUuUniSubscription
}
// End of template mw_body_json_prov_uu_uni_subscription
template
(
value
)
JsonBody
m_body_json_prov_chg_uu_mbms_subscription
(
in
template
(
value
)
ProvChgUuMbmsSubscription
p_provChgUuMbmsSubscription
)
:=
{
provChgUuMbmsSubscription
:=
p_provChgUuMbmsSubscription
}
// End of template m_body_json_prov_chg_uu_mbms_subscription
template
(
present
)
JsonBody
mw_body_json_prov_chg_uu_mbms_subscription
(
template
(
present
)
ProvChgUuMbmsSubscription
p_provChgUuMbmsSubscription
:=
?
)
:=
{
provChgUuMbmsSubscription
:=
p_provChgUuMbmsSubscription
}
// End of template mw_body_json_prov_uu_mbms_subscription
template
(
value
)
JsonBody
m_body_json_prov_chg_pc5_subscription
(
in
template
(
value
)
ProvChgPc5Subscription
p_provChgPc5Subscription
)
:=
{
provChgPc5Subscription
:=
p_provChgPc5Subscription
}
// End of template m_body_json_prov_chg_pc5_subscription
template
(
present
)
JsonBody
mw_body_json_prov_chg_pc5_subscription
(
template
(
present
)
ProvChgPc5Subscription
p_provChgPc5Subscription
:=
?
)
:=
{
provChgPc5Subscription
:=
p_provChgPc5Subscription
}
// End of template mw_body_json_prov_pc5_subscription
template
(
value
)
JsonBody
m_body_json_v2x_msg_subscription
(
in
template
(
value
)
V2xMsgSubscription
p_v2xMsgSubscription
)
:=
{
v2xMsgSubscription
:=
p_v2xMsgSubscription
}
// End of template m_body_json_v2x_msg_subscription
template
(
present
)
JsonBody
mw_body_json_v2x_msg_subscription
(
template
(
present
)
V2xMsgSubscription
p_v2xMsgSubscription
:=
?
)
:=
{
v2xMsgSubscription
:=
p_v2xMsgSubscription
}
// End of template mw_body_json_v2x_msg_subscription
}
// End of group v2x_information_service
}
// End of module LibItsHttp_JsonTemplates
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment