blob: 19b0618ac2bd0a23766c44ec74c8a89f17a7f2e3 [file] [log] [blame]
//
// Created by Tyler on 10/6/20.
//
#ifndef NDNCERT_ASSIGNMENT_HASH_HPP
#define NDNCERT_ASSIGNMENT_HASH_HPP
#include "assignment-funcs.hpp"
namespace ndn {
namespace ndncert {
/**
* assign names base on client probe parameter
*/
class AssignmentHash: public NameAssignmentFuncFactory{
public:
AssignmentHash();
NameAssignmentFunc getFunction(const std::string &factoryParam) override;
class HashAssignmentFunc {
public:
HashAssignmentFunc(std::list<std::string> paramList);
std::vector<PartialName>
operator() (const std::vector<std::tuple<std::string, std::string>> params);
private:
std::list<std::string> m_paramList;
};
};
}
}
#endif //NDNCERT_ASSIGNMENT_HASH_HPP