Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UDR
Commits
5ba269dd
Commit
5ba269dd
authored
Jan 28, 2021
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update UDR: logger and SequenceNumber
parent
096a3f97
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
232 additions
and
139 deletions
+232
-139
src/api/AMF3GPPAccessRegistrationDocumentApi.cpp
src/api/AMF3GPPAccessRegistrationDocumentApi.cpp
+15
-11
src/api/AccessAndMobilitySubscriptionDataDocumentApi.cpp
src/api/AccessAndMobilitySubscriptionDataDocumentApi.cpp
+7
-5
src/api/AuthenticationStatusDocumentApi.cpp
src/api/AuthenticationStatusDocumentApi.cpp
+17
-13
src/api/SDMSubscriptionDocumentApi.cpp
src/api/SDMSubscriptionDocumentApi.cpp
+20
-11
src/api/SDMSubscriptionsCollectionApi.cpp
src/api/SDMSubscriptionsCollectionApi.cpp
+13
-8
src/api/SMFRegistrationDocumentApi.cpp
src/api/SMFRegistrationDocumentApi.cpp
+16
-9
src/api/SMFRegistrationsCollectionApi.cpp
src/api/SMFRegistrationsCollectionApi.cpp
+7
-5
src/api/SMFSelectionSubscriptionDataDocumentApi.cpp
src/api/SMFSelectionSubscriptionDataDocumentApi.cpp
+7
-5
src/api/SessionManagementSubscriptionDataApi.cpp
src/api/SessionManagementSubscriptionDataApi.cpp
+8
-5
src/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
src/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
+13
-6
src/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
...impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
+7
-3
src/impl/AuthenticationStatusDocumentApiImpl.cpp
src/impl/AuthenticationStatusDocumentApiImpl.cpp
+9
-7
src/impl/SDMSubscriptionDocumentApiImpl.cpp
src/impl/SDMSubscriptionDocumentApiImpl.cpp
+22
-9
src/impl/SDMSubscriptionsCollectionApiImpl.cpp
src/impl/SDMSubscriptionsCollectionApiImpl.cpp
+13
-5
src/impl/SMFRegistrationDocumentApiImpl.cpp
src/impl/SMFRegistrationDocumentApiImpl.cpp
+15
-7
src/impl/SMFRegistrationsCollectionApiImpl.cpp
src/impl/SMFRegistrationsCollectionApiImpl.cpp
+6
-2
src/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
src/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
+7
-3
src/impl/SessionManagementSubscriptionDataApiImpl.cpp
src/impl/SessionManagementSubscriptionDataApiImpl.cpp
+7
-3
src/model/SequenceNumber.cpp
src/model/SequenceNumber.cpp
+11
-10
src/model/SequenceNumber.h
src/model/SequenceNumber.h
+12
-12
No files found.
src/api/AMF3GPPAccessRegistrationDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "AMF3GPPAccessRegistrationDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
AMF3GPPAccessRegistrationDocumentApi
::
AMF3GPPAccessRegistrationDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
AMF3GPPAccessRegistrationDocumentApi
::
AMF3GPPAccessRegistrationDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -41,12 +42,13 @@ void AMF3GPPAccessRegistrationDocumentApi::setupRoutes() {
}
void
AMF3GPPAccessRegistrationDocumentApi
::
amf_context3gpp_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AMF3GPPAccessRegistration Method: PATCH!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the body param
std
::
vector
<
PatchItem
>
patchItem
;
// Getting the query params
auto
supportedFeaturesQuery
=
request
.
query
().
get
(
"supported-features"
);
Pistache
::
Optional
<
std
::
string
>
supportedFeatures
;
...
...
@@ -56,7 +58,7 @@ void AMF3GPPAccessRegistrationDocumentApi::amf_context3gpp_handler(const Pistach
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
patchItem
);
this
->
amf_context3gpp
(
ueId
,
patchItem
,
supportedFeatures
,
response
);
...
...
@@ -75,13 +77,14 @@ void AMF3GPPAccessRegistrationDocumentApi::amf_context3gpp_handler(const Pistach
}
void
AMF3GPPAccessRegistrationDocumentApi
::
create_amf_context3gpp_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AMF3GPPAccessRegistration Method: PUT!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the body param
Amf3GppAccessRegistration
amf3GppAccessRegistration
;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
amf3GppAccessRegistration
);
this
->
create_amf_context3gpp
(
ueId
,
amf3GppAccessRegistration
,
response
);
...
...
@@ -100,9 +103,10 @@ void AMF3GPPAccessRegistrationDocumentApi::create_amf_context3gpp_handler(const
}
void
AMF3GPPAccessRegistrationDocumentApi
::
query_amf_context3gpp_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AMF3GPPAccessRegistration Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
@@ -120,7 +124,7 @@ void AMF3GPPAccessRegistrationDocumentApi::query_amf_context3gpp_handler(const P
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
this
->
query_amf_context3gpp
(
ueId
,
fields
,
supportedFeatures
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
src/api/AccessAndMobilitySubscriptionDataDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "AccessAndMobilitySubscriptionDataDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
AccessAndMobilitySubscriptionDataDocumentApi
::
AccessAndMobilitySubscriptionDataDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
AccessAndMobilitySubscriptionDataDocumentApi
::
AccessAndMobilitySubscriptionDataDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -39,12 +40,13 @@ void AccessAndMobilitySubscriptionDataDocumentApi::setupRoutes() {
}
void
AccessAndMobilitySubscriptionDataDocumentApi
::
query_am_data_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AccessAndMobilitySubscriptionData Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
servingPlmnId
=
request
.
param
(
":servingPlmnId"
).
as
<
std
::
string
>
();
//std::cout<<"********* servingPlmnId ********* "<<servingPlmnId<<std::endl;
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
@@ -62,7 +64,7 @@ void AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler(const P
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
// Getting the header params
auto
ifNoneMatch
=
request
.
headers
().
tryGetRaw
(
"If-None-Match"
);
auto
ifModifiedSince
=
request
.
headers
().
tryGetRaw
(
"If-Modified-Since"
);
...
...
src/api/AuthenticationStatusDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "AuthenticationStatusDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
AuthenticationStatusDocumentApi
::
AuthenticationStatusDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
AuthenticationStatusDocumentApi
::
AuthenticationStatusDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -34,7 +35,7 @@ void AuthenticationStatusDocumentApi::setupRoutes() {
Routes
::
Put
(
*
router
,
base
+
"/subscription-data/:ueId/authentication-data/authentication-status"
,
Routes
::
bind
(
&
AuthenticationStatusDocumentApi
::
create_authentication_status_handler
,
this
));
Routes
::
Delete
(
*
router
,
base
+
"/subscription-data/:ueId/authentication-data/authentication-status"
,
Routes
::
bind
(
&
AuthenticationStatusDocumentApi
::
delete_authentication_status_handler
,
this
));
Routes
::
Get
(
*
router
,
base
+
"/subscription-data/:ueId/authentication-data/authentication-status"
,
Routes
::
bind
(
&
AuthenticationStatusDocumentApi
::
query_authentication_status_handler
,
this
));
...
...
@@ -42,18 +43,19 @@ void AuthenticationStatusDocumentApi::setupRoutes() {
router
->
addCustomHandler
(
Routes
::
bind
(
&
AuthenticationStatusDocumentApi
::
authentication_status_document_api_default_handler
,
this
));
}
void
AuthenticationStatusDocumentApi
::
create_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
void
AuthenticationStatusDocumentApi
::
create_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AuthenticationStatus Method: PUT!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the body param
AuthEvent
authEvent
;
//std::cout << request.body() << std::endl;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
authEvent
);
this
->
create_authentication_status
(
ueId
,
authEvent
,
response
);
...
...
@@ -72,11 +74,12 @@ void AuthenticationStatusDocumentApi::create_authentication_status_handler(const
}
void
AuthenticationStatusDocumentApi
::
delete_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
void
AuthenticationStatusDocumentApi
::
delete_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AuthenticationStatus Method: DELETE!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
try
{
this
->
delete_authentication_status
(
ueId
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
@@ -93,11 +96,12 @@ void AuthenticationStatusDocumentApi::delete_authentication_status_handler(const
}
}
void
AuthenticationStatusDocumentApi
::
query_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
void
AuthenticationStatusDocumentApi
::
query_authentication_status_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"AuthenticationStatus Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
@@ -115,7 +119,7 @@ void AuthenticationStatusDocumentApi::query_authentication_status_handler(const
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
this
->
query_authentication_status
(
ueId
,
fields
,
supportedFeatures
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
src/api/SDMSubscriptionDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SDMSubscriptionDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SDMSubscriptionDocumentApi
::
SDMSubscriptionDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SDMSubscriptionDocumentApi
::
SDMSubscriptionDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -42,13 +43,15 @@ void SDMSubscriptionDocumentApi::setupRoutes() {
}
void
SDMSubscriptionDocumentApi
::
modifysdm_subscription_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscription Method: PATCH!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
subsId
=
request
.
param
(
":subsId"
).
as
<
std
::
string
>
();
// Getting the body param
std
::
vector
<
PatchItem
>
patchItem
;
// Getting the query params
auto
supportedFeaturesQuery
=
request
.
query
().
get
(
"supported-features"
);
Pistache
::
Optional
<
std
::
string
>
supportedFeatures
;
...
...
@@ -58,7 +61,7 @@ void SDMSubscriptionDocumentApi::modifysdm_subscription_handler(const Pistache::
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
patchItem
);
this
->
modifysdm_subscription
(
ueId
,
subsId
,
patchItem
,
supportedFeatures
,
response
);
...
...
@@ -77,10 +80,12 @@ void SDMSubscriptionDocumentApi::modifysdm_subscription_handler(const Pistache::
}
void
SDMSubscriptionDocumentApi
::
querysdm_subscription_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscription Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
subsId
=
request
.
param
(
":subsId"
).
as
<
std
::
string
>
();
try
{
this
->
querysdm_subscription
(
ueId
,
subsId
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
@@ -98,10 +103,12 @@ void SDMSubscriptionDocumentApi::querysdm_subscription_handler(const Pistache::R
}
void
SDMSubscriptionDocumentApi
::
removesdm_subscriptions_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscription Method: DELETE!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
subsId
=
request
.
param
(
":subsId"
).
as
<
std
::
string
>
();
try
{
this
->
removesdm_subscriptions
(
ueId
,
subsId
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
@@ -119,14 +126,16 @@ void SDMSubscriptionDocumentApi::removesdm_subscriptions_handler(const Pistache:
}
void
SDMSubscriptionDocumentApi
::
updatesdmsubscriptions_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscription Method: PUT!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
subsId
=
request
.
param
(
":subsId"
).
as
<
std
::
string
>
();
// Getting the body param
SdmSubscription
sdmSubscription
;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
sdmSubscription
);
this
->
updatesdmsubscriptions
(
ueId
,
subsId
,
sdmSubscription
,
response
);
...
...
src/api/SDMSubscriptionsCollectionApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SDMSubscriptionsCollectionApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SDMSubscriptionsCollectionApi
::
SDMSubscriptionsCollectionApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SDMSubscriptionsCollectionApi
::
SDMSubscriptionsCollectionApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -40,13 +41,15 @@ void SDMSubscriptionsCollectionApi::setupRoutes() {
}
void
SDMSubscriptionsCollectionApi
::
create_sdm_subscriptions_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscriptions Method: POST!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the body param
SdmSubscription
sdmSubscription
;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
sdmSubscription
);
this
->
create_sdm_subscriptions
(
ueId
,
sdmSubscription
,
response
);
...
...
@@ -65,9 +68,11 @@ void SDMSubscriptionsCollectionApi::create_sdm_subscriptions_handler(const Pista
}
void
SDMSubscriptionsCollectionApi
::
querysdmsubscriptions_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SDMSubscriptions Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
supportedFeaturesQuery
=
request
.
query
().
get
(
"supported-features"
);
Pistache
::
Optional
<
std
::
string
>
supportedFeatures
;
...
...
@@ -77,7 +82,7 @@ void SDMSubscriptionsCollectionApi::querysdmsubscriptions_handler(const Pistache
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
this
->
querysdmsubscriptions
(
ueId
,
supportedFeatures
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
src/api/SMFRegistrationDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SMFRegistrationDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SMFRegistrationDocumentApi
::
SMFRegistrationDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SMFRegistrationDocumentApi
::
SMFRegistrationDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -41,14 +42,16 @@ void SMFRegistrationDocumentApi::setupRoutes() {
}
void
SMFRegistrationDocumentApi
::
create_smf_context_non3gpp_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFRegistration Method: PUT!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
pduSessionId
=
request
.
param
(
":pduSessionId"
).
as
<
int32_t
>
();
// Getting the body param
SmfRegistration
smfRegistration
;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
smfRegistration
);
this
->
create_smf_context_non3gpp
(
ueId
,
pduSessionId
,
smfRegistration
,
response
);
...
...
@@ -67,10 +70,12 @@ void SMFRegistrationDocumentApi::create_smf_context_non3gpp_handler(const Pistac
}
void
SMFRegistrationDocumentApi
::
delete_smf_context_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFRegistration Method: DELETE!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
pduSessionId
=
request
.
param
(
":pduSessionId"
).
as
<
int32_t
>
();
try
{
this
->
delete_smf_context
(
ueId
,
pduSessionId
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
@@ -88,10 +93,12 @@ void SMFRegistrationDocumentApi::delete_smf_context_handler(const Pistache::Rest
}
void
SMFRegistrationDocumentApi
::
query_smf_registration_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFRegistration Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
pduSessionId
=
request
.
param
(
":pduSessionId"
).
as
<
int32_t
>
();
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
@@ -109,7 +116,7 @@ void SMFRegistrationDocumentApi::query_smf_registration_handler(const Pistache::
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
this
->
query_smf_registration
(
ueId
,
pduSessionId
,
fields
,
supportedFeatures
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
src/api/SMFRegistrationsCollectionApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SMFRegistrationsCollectionApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SMFRegistrationsCollectionApi
::
SMFRegistrationsCollectionApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SMFRegistrationsCollectionApi
::
SMFRegistrationsCollectionApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -39,9 +40,10 @@ void SMFRegistrationsCollectionApi::setupRoutes() {
}
void
SMFRegistrationsCollectionApi
::
query_smf_reg_list_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFRegistrations Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
supportedFeaturesQuery
=
request
.
query
().
get
(
"supported-features"
);
Pistache
::
Optional
<
std
::
string
>
supportedFeatures
;
...
...
@@ -51,7 +53,7 @@ void SMFRegistrationsCollectionApi::query_smf_reg_list_handler(const Pistache::R
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
try
{
this
->
query_smf_reg_list
(
ueId
,
supportedFeatures
,
response
);
}
catch
(
nlohmann
::
detail
::
exception
&
e
)
{
...
...
src/api/SMFSelectionSubscriptionDataDocumentApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SMFSelectionSubscriptionDataDocumentApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SMFSelectionSubscriptionDataDocumentApi
::
SMFSelectionSubscriptionDataDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SMFSelectionSubscriptionDataDocumentApi
::
SMFSelectionSubscriptionDataDocumentApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -39,10 +40,11 @@ void SMFSelectionSubscriptionDataDocumentApi::setupRoutes() {
}
void
SMFSelectionSubscriptionDataDocumentApi
::
query_smf_select_data_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFSelectionSubscriptionData Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
servingPlmnId
=
request
.
param
(
":servingPlmnId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
@@ -60,7 +62,7 @@ void SMFSelectionSubscriptionDataDocumentApi::query_smf_select_data_handler(cons
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
// Getting the header params
auto
ifNoneMatch
=
request
.
headers
().
tryGetRaw
(
"If-None-Match"
);
auto
ifModifiedSince
=
request
.
headers
().
tryGetRaw
(
"If-Modified-Since"
);
...
...
src/api/SessionManagementSubscriptionDataApi.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,6 +12,7 @@
#include "SessionManagementSubscriptionDataApi.h"
#include "Helpers.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -21,7 +22,7 @@ namespace api {
using
namespace
org
::
openapitools
::
server
::
helpers
;
using
namespace
org
::
openapitools
::
server
::
model
;
SessionManagementSubscriptionDataApi
::
SessionManagementSubscriptionDataApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
SessionManagementSubscriptionDataApi
::
SessionManagementSubscriptionDataApi
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
)
{
router
=
rtr
;
}
...
...
@@ -39,10 +40,12 @@ void SessionManagementSubscriptionDataApi::setupRoutes() {
}
void
SessionManagementSubscriptionDataApi
::
query_sm_data_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SessionManagementSubscriptionData Method: GET!"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
servingPlmnId
=
request
.
param
(
":servingPlmnId"
).
as
<
std
::
string
>
();
// Getting the query params
auto
singleNssaiQuery
=
request
.
query
().
get
(
"single-nssai"
);
Pistache
::
Optional
<
Snssai
>
singleNssai
;
...
...
@@ -76,7 +79,7 @@ void SessionManagementSubscriptionDataApi::query_sm_data_handler(const Pistache:
supportedFeatures
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
// Getting the header params
auto
ifNoneMatch
=
request
.
headers
().
tryGetRaw
(
"If-None-Match"
);
auto
ifModifiedSince
=
request
.
headers
().
tryGetRaw
(
"If-Modified-Since"
);
...
...
src/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "AMF3GPPAccessRegistrationDocumentApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -47,14 +48,14 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(const std:
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
select_AMF3GPPAccessRegistration
.
c_str
(),
(
unsigned
long
)
select_AMF3GPPAccessRegistration
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
select_AMF3GPPAccessRegistration
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
select_AMF3GPPAccessRegistration
.
c_str
())
;
return
;
}
if
(
mysql_num_rows
(
res
))
...
...
@@ -192,13 +193,16 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(const std:
// std::cout << query << std::endl;
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
to_json
(
j
,
amf3GppAccessRegistration
);
response
.
send
(
Pistache
::
Http
::
Code
::
Created
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"Amf3GppAccessRegistration PUT - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
void
AMF3GPPAccessRegistrationDocumentApiImpl
::
query_amf_context3gpp
(
const
std
::
string
&
ueId
,
const
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
&
fields
,
const
Pistache
::
Optional
<
std
::
string
>
&
supportedFeatures
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
MYSQL_RES
*
res
=
NULL
;
...
...
@@ -212,14 +216,14 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(const std::
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -356,10 +360,13 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(const std::
}
to_json
(
j
,
amf3gppaccessregistration
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"Amf3GppAccessRegistration GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"Amf3GppAccessRegistration no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"Amf3GppAccessRegistration no data!SQL(%s)"
,
query
.
c_str
())
;
}
mysql_free_result
(
res
);
...
...
src/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "AccessAndMobilitySubscriptionDataDocumentApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -37,14 +38,14 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(const std::
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!"
)
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!"
)
;
return
;
}
...
...
@@ -340,10 +341,13 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(const std::
to_json
(
j
,
accessandmobilitysubscriptiondata
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"AccessAndMobilitySubscriptionData GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"AuthenticationSubscription no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"AccessAndMobilitySubscriptionData no data!"
)
;
}
mysql_free_result
(
res
);
...
...
src/impl/AuthenticationStatusDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -76,11 +76,11 @@ void AuthenticationStatusDocumentApiImpl::create_authentication_status(const std
return
;
}
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
to_json
(
j
,
authEvent
);
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"AuthenticationSubscription PATCH - json:
\n\"
%s
\"
"
,
out
.
c_str
());
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
Logger
::
udr_server
().
debug
(
"AuthenticationStatus PUT - json:
\n\"
%s
\"
"
,
out
);
}
...
...
@@ -90,11 +90,13 @@ void AuthenticationStatusDocumentApiImpl::delete_authentication_status(const std
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
)
;
return
;
}
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
Logger
::
udr_server
().
debug
(
"AuthenticationStatus DELETE - successful"
);
}
void
AuthenticationStatusDocumentApiImpl
::
query_authentication_status
(
const
std
::
string
&
ueId
,
const
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
&
fields
,
const
Pistache
::
Optional
<
std
::
string
>
&
supportedFeatures
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
MYSQL_RES
*
res
=
NULL
;
...
...
@@ -108,14 +110,14 @@ void AuthenticationStatusDocumentApiImpl::query_authentication_status(const std:
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!"
)
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!"
)
;
return
;
}
...
...
@@ -166,7 +168,7 @@ void AuthenticationStatusDocumentApiImpl::query_authentication_status(const std:
}
else
{
std
::
cout
<<
"AuthenticationStatus no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"AuthenticationStatus no data!"
)
;
}
mysql_free_result
(
res
);
...
...
src/impl/SDMSubscriptionDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SDMSubscriptionDocumentApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -40,14 +41,15 @@ void SDMSubscriptionDocumentApiImpl::querysdm_subscription(const std::string &ue
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
());
return
;
}
...
...
@@ -133,10 +135,13 @@ void SDMSubscriptionDocumentApiImpl::querysdm_subscription(const std::string &ue
}
to_json
(
j
,
SdmSubscriptions
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SdmSubscription GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"SdmSubscription no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"SdmSubscription no data!SQL(%s)"
,
query
.
c_str
())
;
}
mysql_free_result
(
res
);
...
...
@@ -154,7 +159,7 @@ void SDMSubscriptionDocumentApiImpl::removesdm_subscriptions(const std::string &
{
problemdetails
.
setCause
(
"USER_NOT_FOUND"
);
to_json
(
j
,
problemdetails
);
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
response
.
send
(
Pistache
::
Http
::
Code
::
Not_Found
,
j
.
dump
());
return
;
}
...
...
@@ -163,7 +168,7 @@ void SDMSubscriptionDocumentApiImpl::removesdm_subscriptions(const std::string &
{
problemdetails
.
setCause
(
"USER_NOT_FOUND"
);
to_json
(
j
,
problemdetails
);
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
response
.
send
(
Pistache
::
Http
::
Code
::
Not_Found
,
j
.
dump
());
return
;
}
...
...
@@ -179,12 +184,14 @@ void SDMSubscriptionDocumentApiImpl::removesdm_subscriptions(const std::string &
{
problemdetails
.
setCause
(
"USER_NOT_FOUND"
);
to_json
(
j
,
problemdetails
);
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
response
.
send
(
Pistache
::
Http
::
Code
::
Not_Found
,
j
.
dump
());
return
;
}
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
Logger
::
udr_server
().
debug
(
"SdmSubscription DELETE - successful"
);
}
void
SDMSubscriptionDocumentApiImpl
::
updatesdmsubscriptions
(
const
std
::
string
&
ueId
,
const
std
::
string
&
subsId
,
SdmSubscription
&
sdmSubscription
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
MYSQL_RES
*
res
=
NULL
;
...
...
@@ -196,14 +203,14 @@ void SDMSubscriptionDocumentApiImpl::updatesdmsubscriptions(const std::string &u
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
select_query
.
c_str
(),
(
unsigned
long
)
select_query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
if
(
mysql_num_rows
(
res
))
...
...
@@ -253,6 +260,7 @@ void SDMSubscriptionDocumentApiImpl::updatesdmsubscriptions(const std::string &u
{
to_json
(
j
,
problemdetails
);
response
.
send
(
Pistache
::
Http
::
Code
::
Not_Found
,
j
.
dump
());
mysql_free_result
(
res
);
return
;
}
...
...
@@ -261,11 +269,16 @@ void SDMSubscriptionDocumentApiImpl::updatesdmsubscriptions(const std::string &u
// std::cout << query << std::endl;
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
());
return
;
}
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
to_json
(
j
,
sdmSubscription
);
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SdmSubscription PUT - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
}
...
...
src/impl/SDMSubscriptionsCollectionApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SDMSubscriptionsCollectionApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -35,13 +36,13 @@ void SDMSubscriptionsCollectionApiImpl::create_sdm_subscriptions(const std::stri
std
::
string
query
=
"SELECT subsId from SdmSubscriptions WHERE ueid='"
+
ueId
+
"'"
;
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -107,13 +108,16 @@ void SDMSubscriptionsCollectionApiImpl::create_sdm_subscriptions(const std::stri
// std::cout << query << std::endl;
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
to_json
(
j
,
sdmSubscription
);
response
.
send
(
Pistache
::
Http
::
Code
::
Created
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SdmSubscriptions POST - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
void
SDMSubscriptionsCollectionApiImpl
::
querysdmsubscriptions
(
const
std
::
string
&
ueId
,
const
Pistache
::
Optional
<
std
::
string
>
&
supportedFeatures
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
MYSQL_RES
*
res
=
NULL
;
...
...
@@ -127,14 +131,14 @@ void SDMSubscriptionsCollectionApiImpl::querysdmsubscriptions(const std::string
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -235,6 +239,10 @@ void SDMSubscriptionsCollectionApiImpl::querysdmsubscriptions(const std::string
mysql_free_result
(
res
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SdmSubscriptions GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
}
...
...
src/impl/SMFRegistrationDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SMFRegistrationDocumentApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -34,14 +35,14 @@ void SMFRegistrationDocumentApiImpl::create_smf_context_non3gpp(const std::strin
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
select_SmfRegistration
.
c_str
(),
(
unsigned
long
)
select_SmfRegistration
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
select_SmfRegistration
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
select_SmfRegistration
.
c_str
())
;
return
;
}
if
(
mysql_num_rows
(
res
))
...
...
@@ -112,23 +113,27 @@ void SMFRegistrationDocumentApiImpl::create_smf_context_non3gpp(const std::strin
// std::cout << query << std::endl;
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
to_json
(
j
,
smfRegistration
);
response
.
send
(
Pistache
::
Http
::
Code
::
Created
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SmfRegistration PUT - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
void
SMFRegistrationDocumentApiImpl
::
delete_smf_context
(
const
std
::
string
&
ueId
,
const
int32_t
&
pduSessionId
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
const
std
::
string
query
=
"DELETE from SmfRegistrations WHERE ueid='"
+
ueId
+
"' AND subpduSessionId="
+
std
::
to_string
(
pduSessionId
);
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
response
.
send
(
Pistache
::
Http
::
Code
::
No_Content
,
""
);
Logger
::
udr_server
().
debug
(
"SmfRegistration DELETE - successful"
);
}
void
SMFRegistrationDocumentApiImpl
::
query_smf_registration
(
const
std
::
string
&
ueId
,
const
int32_t
&
pduSessionId
,
const
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
&
fields
,
const
Pistache
::
Optional
<
std
::
string
>
&
supportedFeatures
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
MYSQL_RES
*
res
=
NULL
;
...
...
@@ -142,14 +147,14 @@ void SMFRegistrationDocumentApiImpl::query_smf_registration(const std::string &u
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -241,10 +246,13 @@ void SMFRegistrationDocumentApiImpl::query_smf_registration(const std::string &u
}
to_json
(
j
,
smfregistration
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SmfRegistration GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"SmfRegistration no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"SmfRegistration no data!SQL(%s)"
,
query
.
c_str
())
;
}
mysql_free_result
(
res
);
...
...
src/impl/SMFRegistrationsCollectionApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SMFRegistrationsCollectionApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -38,14 +39,14 @@ void SMFRegistrationsCollectionApiImpl::query_smf_reg_list(const std::string &ue
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -152,6 +153,9 @@ void SMFRegistrationsCollectionApiImpl::query_smf_reg_list(const std::string &ue
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SmfRegistrations GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
}
...
...
src/impl/SMFSelectionSubscriptionDataDocumentApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SMFSelectionSubscriptionDataDocumentApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -37,14 +38,14 @@ void SMFSelectionSubscriptionDataDocumentApiImpl::query_smf_select_data(const st
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -71,10 +72,13 @@ void SMFSelectionSubscriptionDataDocumentApiImpl::query_smf_select_data(const st
}
to_json
(
j
,
smfselectionsubscriptiondata
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SmfSelectionSubscriptionData GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"SmfSelectionSubscriptionData no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"SmfSelectionSubscriptionData no data!SQL(%s)"
,
query
.
c_str
())
;
}
mysql_free_result
(
res
);
...
...
src/impl/SessionManagementSubscriptionDataApiImpl.cpp
View file @
5ba269dd
...
...
@@ -11,6 +11,7 @@
*/
#include "SessionManagementSubscriptionDataApiImpl.h"
#include "logger.hpp"
namespace
org
{
namespace
openapitools
{
...
...
@@ -39,14 +40,14 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(const std::string &
if
(
mysql_real_query
(
mysql_WitcommUDRDB
,
query
.
c_str
(),
(
unsigned
long
)
query
.
size
()))
{
std
::
cout
<<
"mysql_real_query failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_real_query failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
res
=
mysql_store_result
(
mysql_WitcommUDRDB
);
if
(
res
==
NULL
)
{
std
::
cout
<<
"mysql_store_result failure!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"mysql_store_result failure!SQL(%s)"
,
query
.
c_str
())
;
return
;
}
...
...
@@ -119,10 +120,13 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(const std::string &
}
to_json
(
j
,
sessionmanagementsubscriptiondata
);
response
.
send
(
Pistache
::
Http
::
Code
::
Ok
,
j
.
dump
());
std
::
string
out
=
j
.
dump
();
Logger
::
udr_server
().
debug
(
"SessionManagementSubscriptionData GET - json:
\n\"
%s
\"
"
,
out
.
c_str
());
}
else
{
std
::
cout
<<
"SessionManagementSubscriptionData no data!"
<<
std
::
endl
;
Logger
::
udr_server
().
error
(
"SessionManagementSubscriptionData no data!SQL(%s)"
,
query
.
c_str
())
;
}
mysql_free_result
(
res
);
...
...
src/model/SequenceNumber.cpp
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -20,6 +20,7 @@ namespace model {
SequenceNumber
::
SequenceNumber
()
{
m_SqnScheme
=
""
;
m_SqnSchemeIsSet
=
false
;
m_Sqn
=
""
;
m_SqnIsSet
=
false
;
...
...
@@ -27,7 +28,7 @@ SequenceNumber::SequenceNumber()
m_IndLength
=
0
;
m_IndLengthIsSet
=
false
;
m_DifSignIsSet
=
false
;
}
SequenceNumber
::~
SequenceNumber
()
...
...
@@ -60,34 +61,34 @@ void from_json(const nlohmann::json& j, SequenceNumber& o)
{
j
.
at
(
"sqnScheme"
).
get_to
(
o
.
m_SqnScheme
);
o
.
m_SqnSchemeIsSet
=
true
;
}
}
if
(
j
.
find
(
"sqn"
)
!=
j
.
end
())
{
j
.
at
(
"sqn"
).
get_to
(
o
.
m_Sqn
);
o
.
m_SqnIsSet
=
true
;
}
}
if
(
j
.
find
(
"lastIndexes"
)
!=
j
.
end
())
{
j
.
at
(
"lastIndexes"
).
get_to
(
o
.
m_LastIndexes
);
o
.
m_LastIndexesIsSet
=
true
;
}
}
if
(
j
.
find
(
"indLength"
)
!=
j
.
end
())
{
j
.
at
(
"indLength"
).
get_to
(
o
.
m_IndLength
);
o
.
m_IndLengthIsSet
=
true
;
}
}
if
(
j
.
find
(
"difSign"
)
!=
j
.
end
())
{
j
.
at
(
"difSign"
).
get_to
(
o
.
m_DifSign
);
o
.
m_DifSignIsSet
=
true
;
}
}
}
SqnScheme
SequenceNumber
::
getSqnScheme
()
const
std
::
string
SequenceNumber
::
getSqnScheme
()
const
{
return
m_SqnScheme
;
}
void
SequenceNumber
::
setSqnScheme
(
SqnScheme
const
&
value
)
void
SequenceNumber
::
setSqnScheme
(
std
::
string
const
&
value
)
{
m_SqnScheme
=
value
;
m_SqnSchemeIsSet
=
true
;
...
...
src/model/SequenceNumber.h
View file @
5ba269dd
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
...
...
@@ -12,7 +12,7 @@
/*
* SequenceNumber.h
*
*
*
*/
#ifndef SequenceNumber_H_
...
...
@@ -32,7 +32,7 @@ namespace server {
namespace
model
{
/// <summary>
///
///
/// </summary>
class
SequenceNumber
{
...
...
@@ -46,35 +46,35 @@ public:
/// SequenceNumber members
/// <summary>
///
///
/// </summary>
SqnScheme
getSqnScheme
()
const
;
void
setSqnScheme
(
SqnScheme
const
&
value
);
std
::
string
getSqnScheme
()
const
;
void
setSqnScheme
(
std
::
string
const
&
value
);
bool
sqnSchemeIsSet
()
const
;
void
unsetSqnScheme
();
/// <summary>
///
///
/// </summary>
std
::
string
getSqn
()
const
;
void
setSqn
(
std
::
string
const
&
value
);
bool
sqnIsSet
()
const
;
void
unsetSqn
();
/// <summary>
///
///
/// </summary>
std
::
map
<
std
::
string
,
int32_t
>&
getLastIndexes
();
void
setLastIndexes
(
std
::
map
<
std
::
string
,
int32_t
>
const
value
);
bool
lastIndexesIsSet
()
const
;
void
unsetLastIndexes
();
/// <summary>
///
///
/// </summary>
int32_t
getIndLength
()
const
;
void
setIndLength
(
int32_t
const
value
);
bool
indLengthIsSet
()
const
;
void
unsetIndLength
();
/// <summary>
///
///
/// </summary>
Sign
getDifSign
()
const
;
void
setDifSign
(
Sign
const
&
value
);
...
...
@@ -84,7 +84,7 @@ public:
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
SequenceNumber
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
SequenceNumber
&
o
);
protected:
SqnScheme
m_SqnScheme
;
std
::
string
m_SqnScheme
;
bool
m_SqnSchemeIsSet
;
std
::
string
m_Sqn
;
bool
m_SqnIsSet
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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