Esempio n. 1
0
Int main()
{
  MetaInfoInterface info;

  //insert meta data
  info.setMetaValue("color", String("#ff0000"));
  info.setMetaValue("id", 112131415);

  //access id by index
  UInt id_index = info.metaRegistry().getIndex("id");
  cout << "id   : " << (UInt)(info.getMetaValue(id_index)) << endl;
  //access color by name
  cout << "color: " << (String)(info.getMetaValue("color")) << endl;

  return 0;
} //end of main
 bool MapAlignmentTransformer::storeOriginalRT_(MetaInfoInterface& meta_info,
                                                double original_rt)
 {
   if (meta_info.metaValueExists("original_RT")) return false;
   meta_info.setMetaValue("original_RT", original_rt);
   return true;
 }