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
69a3d3a6
Commit
69a3d3a6
authored
Sep 23, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for json parser
parent
4d08cf67
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
25 deletions
+45
-25
src/api_server/model/PduSessionType.cpp
src/api_server/model/PduSessionType.cpp
+10
-4
src/api_server/model/PduSessionType.h
src/api_server/model/PduSessionType.h
+8
-3
src/api_server/model/PreemptionCapability.cpp
src/api_server/model/PreemptionCapability.cpp
+5
-3
src/api_server/model/PreemptionCapability.h
src/api_server/model/PreemptionCapability.h
+4
-3
src/api_server/model/PreemptionVulnerability.cpp
src/api_server/model/PreemptionVulnerability.cpp
+5
-3
src/api_server/model/PreemptionVulnerability.h
src/api_server/model/PreemptionVulnerability.h
+4
-3
src/api_server/model/SscMode.cpp
src/api_server/model/SscMode.cpp
+5
-3
src/api_server/model/SscMode.h
src/api_server/model/SscMode.h
+4
-3
No files found.
src/api_server/model/PduSessionType.cpp
View file @
69a3d3a6
...
...
@@ -43,10 +43,16 @@ void PduSessionType::validate() {
// TODO: implement validation
}
void
to_json
(
nlohmann
::
json
&
j
,
const
PduSessionType
&
o
)
{
j
=
nlohmann
::
json
();
void
PduSessionType
::
set_value
(
std
::
string
value
)
{
this
->
value
=
value
;
}
void
PduSessionType
::
get_value
(
std
::
string
&
value
)
const
{
value
=
this
->
value
;
}
std
::
string
PduSessionType
::
get_value
()
const
{
return
value
;
}
void
from_json
(
const
nlohmann
::
json
&
j
,
PduSessionType
&
o
)
{
}
void
to_json
(
nlohmann
::
json
&
j
,
const
PduSessionType
&
o
)
{
j
=
o
.
get_value
();
}
}
// namespace oai::udr::model
void
from_json
(
const
nlohmann
::
json
&
j
,
PduSessionType
&
o
)
{
o
.
set_value
(
j
.
get
<
std
::
string
>
());
}
}
// namespace oai::udr::model
src/api_server/model/PduSessionType.h
View file @
69a3d3a6
...
...
@@ -47,21 +47,26 @@ namespace oai::udr::model {
///
/// </summary>
class
PduSessionType
{
public:
public:
PduSessionType
();
virtual
~
PduSessionType
();
void
validate
();
void
set_value
(
std
::
string
value
);
void
get_value
(
std
::
string
&
value
)
const
;
std
::
string
get_value
()
const
;
/////////////////////////////////////////////
/// PduSessionType members
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
PduSessionType
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
PduSessionType
&
o
);
protected:
protected:
std
::
string
value
;
};
}
// namespace oai::udr::model
}
// namespace oai::udr::model
#endif
/* PduSessionType_H_ */
src/api_server/model/PreemptionCapability.cpp
View file @
69a3d3a6
...
...
@@ -44,9 +44,11 @@ void PreemptionCapability::validate() {
}
void
to_json
(
nlohmann
::
json
&
j
,
const
PreemptionCapability
&
o
)
{
j
=
nlohmann
::
json
();
j
=
o
.
get_value
();
}
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionCapability
&
o
)
{}
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionCapability
&
o
)
{
o
.
set_value
(
j
.
get
<
std
::
string
>
());
}
}
// namespace oai::udr::model
}
// namespace oai::udr::model
src/api_server/model/PreemptionCapability.h
View file @
69a3d3a6
...
...
@@ -47,7 +47,7 @@ namespace oai::udr::model {
///
/// </summary>
class
PreemptionCapability
{
public:
public:
PreemptionCapability
();
virtual
~
PreemptionCapability
();
...
...
@@ -59,9 +59,10 @@ public:
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
PreemptionCapability
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionCapability
&
o
);
protected:
protected:
std
::
string
value
;
};
}
// namespace oai::udr::model
}
// namespace oai::udr::model
#endif
/* PreemptionCapability_H_ */
src/api_server/model/PreemptionVulnerability.cpp
View file @
69a3d3a6
...
...
@@ -44,9 +44,11 @@ void PreemptionVulnerability::validate() {
}
void
to_json
(
nlohmann
::
json
&
j
,
const
PreemptionVulnerability
&
o
)
{
j
=
nlohmann
::
json
();
j
=
o
.
get_value
();
}
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionVulnerability
&
o
)
{}
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionVulnerability
&
o
)
{
o
.
set_value
(
j
.
get
<
std
::
string
>
());
}
}
// namespace oai::udr::model
}
// namespace oai::udr::model
src/api_server/model/PreemptionVulnerability.h
View file @
69a3d3a6
...
...
@@ -47,7 +47,7 @@ namespace oai::udr::model {
///
/// </summary>
class
PreemptionVulnerability
{
public:
public:
PreemptionVulnerability
();
virtual
~
PreemptionVulnerability
();
...
...
@@ -59,9 +59,10 @@ public:
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
PreemptionVulnerability
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
PreemptionVulnerability
&
o
);
protected:
protected:
std
::
string
value
;
};
}
// namespace oai::udr::model
}
// namespace oai::udr::model
#endif
/* PreemptionVulnerability_H_ */
src/api_server/model/SscMode.cpp
View file @
69a3d3a6
...
...
@@ -43,8 +43,10 @@ void SscMode::validate() {
// TODO: implement validation
}
void
to_json
(
nlohmann
::
json
&
j
,
const
SscMode
&
o
)
{
j
=
nlohmann
::
json
();
}
void
to_json
(
nlohmann
::
json
&
j
,
const
SscMode
&
o
)
{
j
=
o
.
get_value
();
}
void
from_json
(
const
nlohmann
::
json
&
j
,
SscMode
&
o
)
{}
void
from_json
(
const
nlohmann
::
json
&
j
,
SscMode
&
o
)
{
o
.
set_value
(
j
.
get
<
std
::
string
>
());
}
}
// namespace oai::udr::model
}
// namespace oai::udr::model
src/api_server/model/SscMode.h
View file @
69a3d3a6
...
...
@@ -47,7 +47,7 @@ namespace oai::udr::model {
///
/// </summary>
class
SscMode
{
public:
public:
SscMode
();
virtual
~
SscMode
();
...
...
@@ -59,9 +59,10 @@ public:
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
SscMode
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
SscMode
&
o
);
protected:
protected:
std
::
string
value
;
};
}
// namespace oai::udr::model
}
// namespace oai::udr::model
#endif
/* SscMode_H_ */
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