Commit 4cb42735 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

style(udr): applied CLANG-FORMAT to all source files


Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 6f7bae85

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -186,4 +186,4 @@ void AMF3GPPAccessRegistrationDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -57,14 +57,14 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AMF3GPPAccessRegistrationDocumentApi {
public:
public:
AMF3GPPAccessRegistrationDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AMF3GPPAccessRegistrationDocumentApi() {}
void init();
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void amf_context3gpp_handler(const Pistache::Rest::Request &request,
......@@ -89,10 +89,11 @@ class AMF3GPPAccessRegistrationDocumentApi {
/// <param name="patchItem"></param>
/// <param name="supportedFeatures">Features required to be supported by the
/// target NF (optional, default to &quot;&quot;)</param>
virtual void amf_context3gpp(
const std::string &ueId, const std::vector<PatchItem> &patchItem,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
virtual void
amf_context3gpp(const std::string &ueId,
const std::vector<PatchItem> &patchItem,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// To store the AMF context data of a UE using 3gpp access in the UDR
......@@ -102,10 +103,10 @@ class AMF3GPPAccessRegistrationDocumentApi {
/// </remarks>
/// <param name="ueId">UE id</param>
/// <param name="amf3GppAccessRegistration"> (optional)</param>
virtual void create_amf_context3gpp(
const std::string &ueId,
Amf3GppAccessRegistration &amf3GppAccessRegistration,
Pistache::Http::ResponseWriter &response) = 0;
virtual void
create_amf_context3gpp(const std::string &ueId,
Amf3GppAccessRegistration &amf3GppAccessRegistration,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// Retrieves the AMF context data of a UE using 3gpp access
......@@ -125,6 +126,6 @@ class AMF3GPPAccessRegistrationDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AMF3GPPAccessRegistrationDocumentApi_H_ */
......@@ -57,18 +57,18 @@ void AMFNon3GPPAccessRegistrationDocumentApi::setupRoutes() {
Routes::bind(
&AMFNon3GPPAccessRegistrationDocumentApi::amf_context_non3gpp_handler,
this));
Routes::Put(
*router,
base + "/subscription-data/:ueId/context-data/amf-non-3gpp-access",
Routes::bind(&AMFNon3GPPAccessRegistrationDocumentApi::
create_amf_context_non3gpp_handler,
this));
Routes::Get(
*router,
base + "/subscription-data/:ueId/context-data/amf-non-3gpp-access",
Routes::bind(&AMFNon3GPPAccessRegistrationDocumentApi::
query_amf_context_non3gpp_handler,
this));
Routes::Put(*router,
base +
"/subscription-data/:ueId/context-data/amf-non-3gpp-access",
Routes::bind(&AMFNon3GPPAccessRegistrationDocumentApi::
create_amf_context_non3gpp_handler,
this));
Routes::Get(*router,
base +
"/subscription-data/:ueId/context-data/amf-non-3gpp-access",
Routes::bind(&AMFNon3GPPAccessRegistrationDocumentApi::
query_amf_context_non3gpp_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
......@@ -188,4 +188,4 @@ void AMFNon3GPPAccessRegistrationDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -58,7 +58,7 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AMFNon3GPPAccessRegistrationDocumentApi {
public:
public:
AMFNon3GPPAccessRegistrationDocumentApi(
std::shared_ptr<Pistache::Rest::Router>);
virtual ~AMFNon3GPPAccessRegistrationDocumentApi() {}
......@@ -66,17 +66,17 @@ class AMFNon3GPPAccessRegistrationDocumentApi {
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void amf_context_non3gpp_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void create_amf_context_non3gpp_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void query_amf_context_non3gpp_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
create_amf_context_non3gpp_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
query_amf_context_non3gpp_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void amf_non3_gpp_access_registration_document_api_default_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
......@@ -93,10 +93,11 @@ class AMFNon3GPPAccessRegistrationDocumentApi {
/// <param name="patchItem"></param>
/// <param name="supportedFeatures">Features required to be supported by the
/// target NF (optional, default to &quot;&quot;)</param>
virtual void amf_context_non3gpp(
const std::string &ueId, const std::vector<PatchItem> &patchItem,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
virtual void
amf_context_non3gpp(const std::string &ueId,
const std::vector<PatchItem> &patchItem,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// To store the AMF context data of a UE using non-3gpp access in the UDR
......@@ -129,6 +130,6 @@ class AMFNon3GPPAccessRegistrationDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AMFNon3GPPAccessRegistrationDocumentApi_H_ */
......@@ -191,4 +191,4 @@ void AccessAndMobilityDataApi::access_and_mobility_data_api_default_handler(
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -54,14 +54,14 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AccessAndMobilityDataApi {
public:
public:
AccessAndMobilityDataApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AccessAndMobilityDataApi() {}
void init();
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void create_or_replace_access_and_mobility_data_handler(
......@@ -102,8 +102,9 @@ class AccessAndMobilityDataApi {
///
/// </remarks>
/// <param name="ueId">UE id</param>
virtual void delete_access_and_mobility_data(
const std::string &ueId, Pistache::Http::ResponseWriter &response) = 0;
virtual void
delete_access_and_mobility_data(const std::string &ueId,
Pistache::Http::ResponseWriter &response) = 0;
/// <summary>
/// Retrieves the access and mobility exposure data for a UE
......@@ -132,6 +133,6 @@ class AccessAndMobilityDataApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AccessAndMobilityDataApi_H_ */
......@@ -93,4 +93,4 @@ void AccessAndMobilityPolicyDataDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -54,7 +54,7 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AccessAndMobilityPolicyDataDocumentApi {
public:
public:
AccessAndMobilityPolicyDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router>);
virtual ~AccessAndMobilityPolicyDataDocumentApi() {}
......@@ -62,7 +62,7 @@ class AccessAndMobilityPolicyDataDocumentApi {
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void read_access_and_mobility_policy_data_handler(
......@@ -85,6 +85,6 @@ class AccessAndMobilityPolicyDataDocumentApi {
const std::string &ueId, Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AccessAndMobilityPolicyDataDocumentApi_H_ */
......@@ -121,4 +121,4 @@ void AccessAndMobilitySubscriptionDataDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -53,7 +53,7 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AccessAndMobilitySubscriptionDataDocumentApi {
public:
public:
AccessAndMobilitySubscriptionDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router>);
virtual ~AccessAndMobilitySubscriptionDataDocumentApi() {}
......@@ -61,7 +61,7 @@ class AccessAndMobilitySubscriptionDataDocumentApi {
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void query_am_data_handler(const Pistache::Rest::Request &request,
......@@ -97,6 +97,6 @@ class AccessAndMobilitySubscriptionDataDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AccessAndMobilitySubscriptionDataDocumentApi_H_ */
......@@ -52,9 +52,8 @@ void AmfSubscriptionInfoDocumentApi::setupRoutes() {
Routes::Patch(
*router,
base +
"/subscription-data/:ueId/context-data/ee-subscriptions/:subsId/"
"amf-subscriptions",
base + "/subscription-data/:ueId/context-data/ee-subscriptions/:subsId/"
"amf-subscriptions",
Routes::bind(
&AmfSubscriptionInfoDocumentApi::modify_amf_subscription_info_handler,
this));
......@@ -112,4 +111,4 @@ void AmfSubscriptionInfoDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -56,19 +56,19 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AmfSubscriptionInfoDocumentApi {
public:
public:
AmfSubscriptionInfoDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AmfSubscriptionInfoDocumentApi() {}
void init();
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void modify_amf_subscription_info_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
modify_amf_subscription_info_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void amf_subscription_info_document_api_default_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
......@@ -93,6 +93,6 @@ class AmfSubscriptionInfoDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AmfSubscriptionInfoDocumentApi_H_ */
......@@ -132,4 +132,4 @@ void ApplicationDataSubscriptionsCollectionApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -53,7 +53,7 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class ApplicationDataSubscriptionsCollectionApi {
public:
public:
ApplicationDataSubscriptionsCollectionApi(
std::shared_ptr<Pistache::Rest::Router>);
virtual ~ApplicationDataSubscriptionsCollectionApi() {}
......@@ -61,7 +61,7 @@ class ApplicationDataSubscriptionsCollectionApi {
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void create_individual_application_data_subscription_handler(
......@@ -100,6 +100,6 @@ class ApplicationDataSubscriptionsCollectionApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* ApplicationDataSubscriptionsCollectionApi_H_ */
......@@ -146,4 +146,4 @@ void AuthenticationSoRDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -53,19 +53,19 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AuthenticationSoRDocumentApi {
public:
public:
AuthenticationSoRDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationSoRDocumentApi() {}
void init();
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void create_authentication_so_r_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
create_authentication_so_r_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void query_auth_so_r_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void authentication_so_r_document_api_default_handler(
......@@ -97,12 +97,12 @@ class AuthenticationSoRDocumentApi {
/// <param name="ueId">UE id</param>
/// <param name="supportedFeatures">Supported Features (optional, default to
/// &quot;&quot;)</param>
virtual void query_auth_so_r(
const std::string &ueId,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
virtual void
query_auth_so_r(const std::string &ueId,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AuthenticationSoRDocumentApi_H_ */
......@@ -178,4 +178,4 @@ void AuthenticationStatusDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -53,26 +53,26 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AuthenticationStatusDocumentApi {
public:
public:
AuthenticationStatusDocumentApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationStatusDocumentApi() {}
void init();
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void create_authentication_status_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
create_authentication_status_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void delete_authentication_status_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void query_authentication_status_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
delete_authentication_status_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void
query_authentication_status_handler(const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response);
void authentication_status_document_api_default_handler(
const Pistache::Rest::Request &request,
......@@ -88,11 +88,13 @@ class AuthenticationStatusDocumentApi {
/// </remarks>
/// <param name="ueId">UE id</param>
/// <param name="authEvent"> (optional)</param>
virtual void create_authentication_status(
const std::string &ueId, const AuthEvent &authEvent,
Pistache::Http::ResponseWriter &response) = 0;
virtual void delete_authentication_status(
const std::string &ueId, Pistache::Http::ResponseWriter &response) = 0;
virtual void
create_authentication_status(const std::string &ueId,
const AuthEvent &authEvent,
Pistache::Http::ResponseWriter &response) = 0;
virtual void
delete_authentication_status(const std::string &ueId,
Pistache::Http::ResponseWriter &response) = 0;
virtual void query_authentication_status(
const std::string &ueId,
const Pistache::Optional<std::vector<std::string>> &fields,
......@@ -100,6 +102,6 @@ class AuthenticationStatusDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AuthenticationStatusDocumentApi_H_ */
......@@ -52,16 +52,14 @@ void AuthenticationSubscriptionDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Get(*router,
base +
"/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
base + "/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
Routes::bind(&AuthenticationSubscriptionDocumentApi::
read_authentication_subscription_handler,
this));
Routes::Patch(*router,
base +
"/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
base + "/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
Routes::bind(&AuthenticationSubscriptionDocumentApi::
modify_authentication_subscription_handler,
this));
......@@ -152,4 +150,4 @@ void AuthenticationSubscriptionDocumentApi::
"The requested method does not exist");
}
} // namespace oai::udr::api
} // namespace oai::udr::api
......@@ -56,7 +56,7 @@ namespace oai::udr::api {
using namespace oai::udr::model;
class AuthenticationSubscriptionDocumentApi {
public:
public:
AuthenticationSubscriptionDocumentApi(
std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationSubscriptionDocumentApi() {}
......@@ -64,7 +64,7 @@ class AuthenticationSubscriptionDocumentApi {
const std::string base = "/nudr-dr/v2";
private:
private:
void setupRoutes();
void modify_authentication_subscription_handler(
......@@ -99,6 +99,6 @@ class AuthenticationSubscriptionDocumentApi {
Pistache::Http::ResponseWriter &response) = 0;
};
} // namespace oai::udr::api
} // namespace oai::udr::api
#endif /* AuthenticationSubscriptionDocumentApi_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment