tylerliu | 01d63ca | 2020-10-06 16:29:23 -0700 | [diff] [blame] | 1 | // |
| 2 | // Created by Tyler on 10/6/20. |
| 3 | // |
| 4 | |
| 5 | #ifndef NDNCERT_ASSIGNMENT_PARAM_HPP |
| 6 | #define NDNCERT_ASSIGNMENT_PARAM_HPP |
| 7 | |
| 8 | #include "assignment-funcs.hpp" |
| 9 | |
| 10 | namespace ndn { |
| 11 | namespace ndncert { |
| 12 | |
| 13 | /** |
| 14 | * assign names base on client probe parameter |
| 15 | */ |
| 16 | class AssignmentParam: public NameAssignmentFuncFactory{ |
| 17 | public: |
Zhiyi Zhang | 8683ec9 | 2020-10-07 18:18:35 -0700 | [diff] [blame] | 18 | AssignmentParam(const std::string& format = ""); |
tylerliu | 01d63ca | 2020-10-06 16:29:23 -0700 | [diff] [blame] | 19 | |
Zhiyi Zhang | 8683ec9 | 2020-10-07 18:18:35 -0700 | [diff] [blame] | 20 | std::vector<PartialName> |
| 21 | assignName(const std::vector<std::tuple<std::string, std::string>>& params) override; |
tylerliu | 01d63ca | 2020-10-06 16:29:23 -0700 | [diff] [blame] | 22 | }; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | |
| 27 | |
| 28 | #endif //NDNCERT_ASSIGNMENT_PARAM_HPP |