channel: add origin NO
This commit is contained in:
parent
a03930515e
commit
3afa7fe345
@ -119,7 +119,8 @@ namespace imc
|
|||||||
// collect meta-data of channels according to env,
|
// collect meta-data of channels according to env,
|
||||||
// just everything valueable in here
|
// just everything valueable in here
|
||||||
std::string uuid_;
|
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 yname_, yunit_;
|
||||||
std::string xname_, xunit_;
|
std::string xname_, xunit_;
|
||||||
double xstepwidth_;
|
double xstepwidth_;
|
||||||
@ -214,6 +215,14 @@ namespace imc
|
|||||||
comment_ = blocks->at(chnenv_.CNuuid_).get_parameter(prms[8]);
|
comment_ = blocks->at(chnenv_.CNuuid_).get_parameter(prms[8]);
|
||||||
// group_index_ = std::stoi(blocks->at(chnenv_.CNuuid_).get_parameter(prms[2]));
|
// 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
|
// get info string
|
||||||
|
10
src/main.cpp
10
src/main.cpp
@ -170,12 +170,12 @@ int main(int argc, char* argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// list blocks
|
// // list blocks
|
||||||
for ( imc::block blk: imcraw.blocks() )
|
// for ( imc::block blk: imcraw.blocks() )
|
||||||
{
|
// {
|
||||||
// std::cout<<blk.get_key().get_info()<<"\n";
|
// 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<<"number of blocks: "<<imcraw.blocks().size()<<"\n";
|
||||||
std::cout<<"computational complexity: "<<imcraw.computational_complexity()
|
std::cout<<"computational complexity: "<<imcraw.computational_complexity()
|
||||||
<<"/"<<imcraw.buffer_size()<<"\n\n";
|
<<"/"<<imcraw.buffer_size()<<"\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user