channel: add origin NO

This commit is contained in:
2021-02-11 17:21:39 +01:00
parent a03930515e
commit 3afa7fe345
2 changed files with 16 additions and 7 deletions

View File

@@ -119,7 +119,8 @@ namespace imc
// collect meta-data of channels according to env,
// just everything valueable in here
std::string uuid_;
std::string name_, comment_, origin_, text_;
std::string name_, comment_;
std::string origin_, origin_comment_, text_;
std::string yname_, yunit_;
std::string xname_, xunit_;
double xstepwidth_;
@@ -214,6 +215,14 @@ namespace imc
comment_ = blocks->at(chnenv_.CNuuid_).get_parameter(prms[8]);
// group_index_ = std::stoi(blocks->at(chnenv_.CNuuid_).get_parameter(prms[2]));
}
// extract associated NO data
if ( blocks->count(chnenv_.NOuuid_) == 1 )
{
prms = blocks->at(chnenv_.NOuuid_).get_parameters();
origin_ = blocks->at(chnenv_.NOuuid_).get_parameter(prms[4]);
origin_comment_ = blocks->at(chnenv_.NOuuid_).get_parameter(prms[6]);
}
}
// get info string