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

Mario Valle mvalle at cscs.ch
Thu Apr 9 16:21:21 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() 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 Rlong?
If you pass the wrong type, there is no compilation error, no runtime error, but nothing 
is found.

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