16 std::shared_ptr<AbstractNIC>
getNIC(
const std::string &referredName);
18 template<
typename T,
class = std::enable_if_t<std::is_base_of_v<AbstractNIC, T>>>
19 std::shared_ptr<T>
getTypedNIC(
const std::string &referredName) {
20 return std::dynamic_pointer_cast<T>(
getNIC(referredName));
26 static std::map<std::string, std::shared_ptr<AbstractNIC>> nicNameMap;