}
}
+bool
+HostReservationParser::isIdentifierParameter(const std::string& param_name) const {
+ return (getSupportedParameters(true).count(param_name) > 0);
+}
+
bool
HostReservationParser::isSupportedParameter(const std::string& param_name) const {
return (getSupportedParameters(false).count(param_name) > 0);
addHost(reservation_data);
}
-bool
-HostReservationParser4::isIdentifierParameter(const std::string& param_name) const {
- return (getSupportedParams4(true).count(param_name) > 0);
-}
-
const std::set<std::string>&
HostReservationParser4::getSupportedParameters(const bool identifiers_only) const {
return (getSupportedParams4(identifiers_only));
addHost(reservation_data);
}
-bool
-HostReservationParser6::isIdentifierParameter(const std::string& param_name) const {
- return (getSupportedParams6(true).count(param_name) > 0);
-}
-
const std::set<std::string>&
HostReservationParser6::getSupportedParameters(const bool identifiers_only) const {
return (getSupportedParams6(identifiers_only));
///
/// @return true if the parameter specifies host identifier, false
/// otherwise.
- virtual bool isIdentifierParameter(const std::string& param_name) const = 0;
+ virtual bool isIdentifierParameter(const std::string& param_name) const;
/// @brief Checks if the specified parameter is supported by the parser.
///
protected:
- /// @brief Checks if the specified parameter is a host identifier.
- ///
- /// @param param_name Parameter name.
- ///
- /// @return true if the parameter specifies host identifier, false
- /// otherwise.
- virtual bool isIdentifierParameter(const std::string& param_name) const;
-
/// @brief Returns set of the supported parameters for DHCPv4.
///
/// @param identifiers_only Indicates if the function should only
protected:
- /// @brief Checks if the specified parameter is a host identifier.
- ///
- /// @param param_name Parameter name.
- ///
- /// @return true if the parameter specifies host identifier, false
- /// otherwise.
- virtual bool isIdentifierParameter(const std::string& param_name) const;
-
/// @brief Returns set of the supported parameters for DHCPv6.
///
/// @param identifiers_only Indicates if the function should only