Archived

This forum has been archived. Please start a new discussion on GitHub.

Proxy servant problem

Hi,
I've this slice class definition:

class GPSData{
float fLat;
float fLon;
float fVel;
string sData;
string sOra;
float getLat();
void setLat(float value);
float getLon();
void setLon(float value);
float getVel();
void setVel(float value);
string getData();
void setData(string value);
string getOra();
void setOra(string value);
};

I want use this class as a out parameter of a method:

idempotent int getGPSData (out GPSData *gps).

Using slice2cppe compiler I have the following method implementation:

virtual ::Ice::Int getGPSData(::HiveNet::GPSDataPrx&,
const Ice::Current&);

I'm trying to publish the servant using the example in the post
http://www.zeroc.com/forums/help-center/2530-problem-addwithuuid-while-implementing-facets.html

but I have compiler error on the following instruction
DisplayPrx disp = DisplayPrx::checkedCast(printer,"Display");

It seems that checkedCast isn't a method of DisplayPrx or checkedCast hasn't a prototype with 2 parameter.

Can somebody help me,
Thanks
Pepi.

Comments

  • matthew
    matthew NL, Canada
    Facets are supported with IceE so this should work. What is Display? This is not part of the slice you have given. What is the exact code that is failing?

    BTW, this GPSData class will perform extremely poorly since this design means a remote object invocation for each attribute. It would be much better to bundle the entire thing in a struct and send that over the wire.