Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-12-2007
zhi zhi is offline
Registered User
 
Name: Zhi Quan Lee
Organization: University of Auckland
Project: Dynamic Reconfiguration with Correctness Assurance
 
Join Date: Nov 2006
Location: Auckland
Posts: 32
Slice Types from An external Library

Hi,

I am working with an external Java library and would like to use objects from the library in my Ice application. I understand that in order to use these objects, I have to specify them within my Slice descriptor. How do I define these types as they are not part of ICE?

Say the "Organ" type is from the library is called "bodyparts.jar".
Code:
module Health {
    class Person {
        Organ heart;
        Organ kidney;    
    }
};
__________________
Zhi Quan Lee
University of Auckland
Department of Electrical and Computer Engineering
http://se.auckland.ac.nz

Project: An Integrated Automated Framework for Managing Dynamic Reconfiguration

Supervised by Dr. Ian Warren and Dr. Jing Sun.

With respect to their paper: http://csdl2.computer.org/persagen/D...09/ASE.2006.12

Homepage:
http://zhi-lee.com
Reply With Quote
  #2 (permalink)  
Old 01-12-2007
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
Hi,

You can't re-use the Java type in Slice. You need to define a Slice type for the Organ type (and you'll have to convert to and from the Java type).

Cheers,
Benoit.
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
Linking Problems: Unresolved external symbol Metadragonfire Help Center 2 06-26-2006 09:16 PM
how to invoke an external shell script in ice? ewiniar Help Center 2 04-21-2006 04:28 AM
Using types defined by other libraries in slice. Genia4 Help Center 3 10-17-2005 08:34 PM
How to use Slice defined Types in another definition Venkat Seeth Help Center 4 02-22-2005 01:24 PM
Problems with Thread library galbe Help Center 3 11-25-2003 11:25 AM


All times are GMT -4. The time now is 09:34 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.