add AdcDeviceNetClient class

This commit is contained in:
Timur A. Fatkhullin
2024-11-19 00:28:52 +03:00
parent f3a6aa3571
commit ae6fbf18ca
4 changed files with 276 additions and 31 deletions

View File

@@ -369,6 +369,17 @@ public:
return isKey(ACK_KEY_IDX);
}
// ACK KEY_NAME ...
bool isACK(std::string_view key) const
{
auto ats = attrs();
if (std::ranges::size(ats)) {
return isKey(ACK_KEY_IDX) && (key == *ats.begin());
} else {
return false;
}
}
bool isSET() const
{
return isKey(SET_KEY_IDX);