changes according to new naming scheme of the snippets-library

new naming scheme (delete "adclib_" prefixes)
This commit is contained in:
2026-09-18 12:11:42 +03:00
parent eb4fa72d4b
commit 271826ee4a
6 changed files with 130 additions and 134 deletions

View File

@@ -32,10 +32,10 @@ static constexpr std::array ADCLIB_NETMSG_VALID_KEYWORDS{ADCLIB_NETMSG_KEYWORD_A
ADCLIB_NETMSG_KEYWORD_CMD};
template <snplib::snplib_char_range_c CharRangeT = std::vector<char>>
class AdcNetworkMessage final : protected snplib::snplib_keyvalue_expr_t<CharRangeT>
template <snplib::char_range_c CharRangeT = std::vector<char>>
class AdcNetworkMessage final : protected snplib::keyvalue_expr_t<CharRangeT>
{
typedef snplib::snplib_keyvalue_expr_t<CharRangeT> base_t;
typedef snplib::keyvalue_expr_t<CharRangeT> base_t;
public:
using typename base_t::error_t;
@@ -72,7 +72,7 @@ public:
return std::ranges::equal(this->_key, ADCLIB_NETMSG_KEYWORD_GET);
}
error_t fromCharRange(snplib::snplib_input_char_range_c auto&& bytes)
error_t fromCharRange(snplib::input_char_range_c auto&& bytes)
requires(!std::same_as<CharRangeT, std::remove_cvref_t<decltype(bytes)>>)
{
// auto err = fromCharRange(
@@ -118,7 +118,7 @@ public:
return this->setKeyValue(ADCLIB_NETMSG_KEYWORD_ERR, err.value());
}
template <snplib::snplib_serializable_c ATTR_NAME_T, typename... ArgTs>
template <snplib::serializable_c ATTR_NAME_T, typename... ArgTs>
requires(sizeof...(ArgTs) > 0)
error_t createSET(ATTR_NAME_T&& attr_name, ArgTs&&... args)
{
@@ -139,7 +139,7 @@ public:
return err;
}
template <snplib::snplib_serializable_c ATTR_NAME_T, typename... ArgTs>
template <snplib::serializable_c ATTR_NAME_T, typename... ArgTs>
error_t createGET(ATTR_NAME_T&& attr_name, ArgTs&&... args)
{
this->_isValid = false;
@@ -161,7 +161,7 @@ public:
return err;
}
template <snplib::snplib_serializable_c CMD_NAME_T>
template <snplib::serializable_c CMD_NAME_T>
error_t createCMD(CMD_NAME_T&& cmd_name)
{
this->_isValid = false;