Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-27-2007
pepi pepi is offline
Registered User
 
Name: Antonio Pepiciello
Organization: Merlino Technology
Project: Mobile Devices
 
Join Date: Jul 2007
Posts: 8
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
Problem with "addWithUUID", while implementing the facets

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.
Reply With Quote
  #2 (permalink)  
Old 07-27-2007
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
proxy acquisition problem shimrod Help Center 9 05-06-2007 09:35 PM
Problem about proxy hlnpro Help Center 6 03-08-2007 09:28 AM
a problem about servant locator rwxybh Help Center 14 01-01-2006 06:51 AM
obtaining a proxy for "this" in a servant vukicevic Help Center 1 12-02-2003 04:54 PM


All times are GMT -4. The time now is 11:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.