[ome-users] Inconsistency in C++ gateway interface

Mario Valle mvalle at cscs.ch
Tue Apr 21 13:51:05 BST 2009


I noticed a small inconsistency in the Gateway C++ object.

While getProjects(), getDatasets() and getImages() need a list of RLong values like:
      omero::api::LongList ids;
      ids.push_back(omero::rtypes::rlong(loginId));
      omero::api::ProjectList proj = gateway->getProjects(ids, false);

getPixels() instead needs a single value (obviously), but of type int (or long):
      omero::model::PixelsPtr pix = gateway->getPixels(selected_image_idx);

Why are not all the id values passed as int? Or all as Rlong? Or is there a fundamental 
difference when using LongLists instead of single values?
If you pass the wrong type, there is no compilation error, no runtime error, but nothing
is found (by both sets of functions). The real problem is this, otherwise the 
inconsistency is really minor.

Thanks for hearing!
			mario

-- 
Ing. Mario Valle
Data Analysis and Visualization Group            | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the ome-users mailing list