channel: add origin NO

This commit is contained in:
Mario Fink 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

View File

@ -170,12 +170,12 @@ int main(int argc, char* argv[])
return 1;
}
// list blocks
for ( imc::block blk: imcraw.blocks() )
{
// // list blocks
// for ( imc::block blk: imcraw.blocks() )
// {
// std::cout<<blk.get_key().get_info()<<"\n";
std::cout<<blk.get_info()<<"\n";
}
// std::cout<<blk.get_info()<<"\n";
// }
std::cout<<"number of blocks: "<<imcraw.blocks().size()<<"\n";
std::cout<<"computational complexity: "<<imcraw.computational_complexity()
<<"/"<<imcraw.buffer_size()<<"\n\n";