Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-NRF
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-NRF
Commits
463ea1a6
Commit
463ea1a6
authored
Dec 24, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup
parent
74d26e15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
src/api-server/impl/DiscNFInstancesStoreApiImpl.cpp
src/api-server/impl/DiscNFInstancesStoreApiImpl.cpp
+1
-0
src/nrf_app/nrf_search_result.cpp
src/nrf_app/nrf_search_result.cpp
+8
-0
src/nrf_app/nrf_search_result.hpp
src/nrf_app/nrf_search_result.hpp
+14
-9
No files found.
src/api-server/impl/DiscNFInstancesStoreApiImpl.cpp
View file @
463ea1a6
...
...
@@ -102,6 +102,7 @@ void DiscNFInstancesStoreApiImpl::search_nf_instances(
Logger
::
nrf_sbi
().
debug
(
"
\t
Requested NF instance id: %s"
,
requester_nf_instance_id
.
c_str
());
}
// TODO: other query parameters
int
http_code
=
0
;
ProblemDetails
problem_details
=
{};
...
...
src/nrf_app/nrf_search_result.cpp
View file @
463ea1a6
...
...
@@ -41,36 +41,44 @@ void nrf_search_result::set_search_id(const std::string &id) { search_id = id; }
//------------------------------------------------------------------------------
void
nrf_search_result
::
get_search_id
(
std
::
string
&
id
)
const
{
id
=
search_id
;
}
//------------------------------------------------------------------------------
std
::
string
nrf_search_result
::
get_search_id
()
const
{
return
search_id
;
}
//------------------------------------------------------------------------------
void
nrf_search_result
::
set_nf_instances
(
const
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
)
{
nf_instances
=
instances
;
}
//------------------------------------------------------------------------------
void
nrf_search_result
::
add_nf_instance
(
const
std
::
shared_ptr
<
nrf_profile
>
&
instance
)
{
nf_instances
.
push_back
(
instance
);
}
//------------------------------------------------------------------------------
void
nrf_search_result
::
get_nf_instances
(
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
)
const
{
instances
=
nf_instances
;
}
//------------------------------------------------------------------------------
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
nrf_search_result
::
get_nf_instances
()
const
{
return
nf_instances
;
}
//------------------------------------------------------------------------------
void
nrf_search_result
::
set_validity_period
(
const
uint64_t
&
p
)
{
validity_period
=
p
;
}
//------------------------------------------------------------------------------
void
nrf_search_result
::
get_validity_period
(
uint64_t
&
p
)
const
{
p
=
validity_period
;
}
//------------------------------------------------------------------------------
uint64_t
nrf_search_result
::
get_validity_period
()
const
{
return
validity_period
;
}
...
...
src/nrf_app/nrf_search_result.hpp
View file @
463ea1a6
...
...
@@ -41,11 +41,10 @@ using namespace std;
class
nrf_search_result
{
public:
nrf_search_result
()
{
nrf_search_result
()
{
};
nrf_search_result
(
nrf_search_result
const
&
)
=
delete
;
nrf_search_result
(
nrf_search_result
const
&
)
=
delete
;
virtual
~
nrf_search_result
()
{
Logger
::
nrf_app
().
debug
(
"Delete NRF Subscription instance..."
);
...
...
@@ -76,29 +75,35 @@ class nrf_search_result {
/*
* Set the nf instances
* @param [std::vector<std::shared_ptr<nrf_profile>> &]: instances: Array of nrf profile instances
* @param [std::vector<std::shared_ptr<nrf_profile>> &]: instances: Array of
* nrf profile instances
* @return void
*/
void
set_nf_instances
(
const
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
);
void
set_nf_instances
(
const
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
);
/*
* Add an nf instance to the list of nrf profile instances
* @param [const std::shared_ptr<nrf_profile> &]: instance: A nrf profile instance
* @param [const std::shared_ptr<nrf_profile> &]: instance: A nrf profile
* instance
* @return void
*/
void
add_nf_instance
(
const
std
::
shared_ptr
<
nrf_profile
>
&
instance
);
/*
* Get the nf instances
* @param [std::vector<std::shared_ptr<nrf_profile>> &]: instances: Store array of nrf profile instances
* @param [std::vector<std::shared_ptr<nrf_profile>> &]: instances: Store
* array of nrf profile instances
* @return void
*/
void
get_nf_instances
(
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
)
const
;
void
get_nf_instances
(
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
&
instances
)
const
;
/*
* Get the nf instances
* @param [void]
* @return std::vector<std::shared_ptr<nrf_profile>>: array of nrf profile instances
* @return std::vector<std::shared_ptr<nrf_profile>>: array of nrf profile
* instances
*/
std
::
vector
<
std
::
shared_ptr
<
nrf_profile
>>
get_nf_instances
()
const
;
...
...
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