blob: 7c6a377b5362554de04b71e300807402c9f26b27 [file] [log] [blame]
tylerliu01d63ca2020-10-06 16:29:23 -07001//
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
10namespace ndn {
11namespace ndncert {
12
13/**
14 * assign names base on client probe parameter
15 */
16class AssignmentParam: public NameAssignmentFuncFactory{
17public:
18 AssignmentParam();
19
20 NameAssignmentFunc getFunction(const std::string &factoryParam) override;
21
22 class ParamAssignmentFunc {
23 public:
24 ParamAssignmentFunc(std::list<std::string> paramList);
25
26 std::vector<PartialName>
27 operator() (const std::vector<std::tuple<std::string, std::string>> params);
28 private:
29 std::list<std::string> m_paramList;
30 };
31
32};
33}
34}
35
36
37
38#endif //NDNCERT_ASSIGNMENT_PARAM_HPP