start group - channel - component - buffer association

This commit is contained in:
2021-02-10 20:01:11 +01:00
parent 9bac0f1063
commit f4ecf48218
5 changed files with 138 additions and 5 deletions

View File

@@ -142,6 +142,22 @@ namespace imc
return parambuff;
}
// get single parameter as string
std::string get_parameter(parameter& param)
{
// check parameter w.r.t. to block
if ( param.begin() < begin_ || param.end() > end_ )
{
throw std::logic_error("inconsistent parameter offsets");
}
std::string prm("");
for ( unsigned long int i = param.begin()+1; i <= param.end(); i++ )
{
prm.push_back( (char)((*buffer_)[i]) );
}
return prm;
}
// get info string
std::string get_info(bool include_object = true, int width = 20)
{