From 3c0b3b67e7629287b7347e4d67a08408fb9f0784 Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Mon, 4 Feb 2019 12:31:30 +0100 Subject: [PATCH] refactoring: move addItem() declarations This is a move towards making single public and single private section in NaivePolicyDb. Change-Id: Ib300da409a4442b1578f3a48ae888c1982de24fa --- src/internal/naive_policy_db.hpp | 49 ++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/src/internal/naive_policy_db.hpp b/src/internal/naive_policy_db.hpp index ef06bd3..862985b 100755 --- a/src/internal/naive_policy_db.hpp +++ b/src/internal/naive_policy_db.hpp @@ -108,28 +108,6 @@ namespace ldp_xml_parser const PolicyTypeValue policy_type_value, const PolicyAccess*& policy) const; - /** Adds item to ownership policy - * \param[in] policy_type Policy type - * \param[in] policy_type_value Policy type value - * \param[in] item Item to add - */ - void addItem(const PolicyType policy_type, - const PolicyTypeValue policy_type_value, - ItemOwn* const item); - - /** Adds item to send/receive policy - * \param[in] policy_type Policy type - * \param[in] policy_type_value Policy type value - * \param[in] item Item to add - */ - void addItem(const PolicyType policy_type, - const PolicyTypeValue policy_type_value, - ItemSendReceive* const item); - - void addItem(const PolicyType policy_type, - const PolicyTypeValue policy_type_value, - ItemAccess* const item); - private: typedef std::vector VGid; @@ -195,6 +173,33 @@ namespace ldp_xml_parser const VGid *getGroups(uid_t uid, gid_t gid, const ItemType type) const; void initializeGroups(uid_t uid, gid_t gid); + + /** Adds item to ownership policy + * \param[in] policy_type Policy type + * \param[in] policy_type_value Policy type value + * \param[in] item Item to add + */ + void addItem(const PolicyType policy_type, + const PolicyTypeValue policy_type_value, + ItemOwn* const item); + + /** Adds item to send/receive policy + * \param[in] policy_type Policy type + * \param[in] policy_type_value Policy type value + * \param[in] item Item to add + */ + void addItem(const PolicyType policy_type, + const PolicyTypeValue policy_type_value, + ItemSendReceive* const item); + + /** Adds item to access policy + * \param[in] policy_type Policy type + * \param[in] policy_type_value Policy type value + * \param[in] item Item to add + */ + void addItem(const PolicyType policy_type, + const PolicyTypeValue policy_type_value, + ItemAccess* const item); }; } #endif -- 2.7.4