View Single Post
  #1 (permalink)  
Old 02-20-2005
pi1ot pi1ot is offline
Registered User
 
Name: pi1ot
Organization: SINA.com
Project: WEB
 
Join Date: Feb 2005
Posts: 3
Arrow is there any way to use my own struct in slice?

such as:

struct my_own_struct{
int x;
string y;
my_another_class z;
};

i must define ice_my_own_struct and ice_my_another_class in slice and write two function to translate them in my code now:

my_client( my_own_struct m ){
ice_interface( my_to_ice(m) );
}

ice_interface( ice_my_own_struct i ){
my_server_code( ice_to_mine(i) );
}

is there any way to avoid these "excrescent" code?
thanks.
Reply With Quote