Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-14-2007
Oscar.Acena Oscar.Acena is offline
Registered User
 
Name: Oscar Aceña
Organization: Universidad Castilla-La Mancha
Project: Wireless sensor networks
 
Join Date: May 2007
Location: Ciudad Real, Spain
Posts: 7
slice2cppe metadata

Hi,

I'm currently working with IceStorm in WSN. I use an IceStorm server on a big box, and I wish to try and port it with IceE to run into a small MIPS.

The main problem is when I try this:
slice2cppe -I. -I /usr/share/slice --ice IceStormInternal.ice

The slice2cppe says:
IceStormInternal.ice:25: warning: ignoring invalid metadata `cpp:class'

Does not support metadata the slice2cpp? The thing is that later, compiling, it now says:

./IceStormInternal.h:152: error: ‘EventDataPtr’ is not a member of ‘IceStorm’

It 's like it would be middle parsed, because It looks for the smart pointer of the class EventData, which not exists!! what happend?

By the way, has anyone compiled IceStorm as a service with IceE?

Thanks in advance.

Last edited by Oscar.Acena : 07-14-2007 at 03:31 PM.
Reply With Quote
  #2 (permalink)  
Old 07-14-2007
Oscar.Acena Oscar.Acena is offline
Registered User
 
Name: Oscar Aceña
Organization: Universidad Castilla-La Mancha
Project: Wireless sensor networks
 
Join Date: May 2007
Location: Ciudad Real, Spain
Posts: 7
slice2cppe metadata, a change

OK,

The thing is that metadata has changed from slice2cpp to slice2cppe.
In this case, you usually puts:

["cpp:class"]

in Ice where you want a mapping for a class. However, in Ice-E, you should put only:

["class"]

Or at least, I think so.
Reply With Quote
  #3 (permalink)  
Old 07-15-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
Sorry, you cannot compile the IceStorm service itself with IceE since, for reasons of size and efficiency IceE is missing several critical features used by the IceStorm service -- you can see a comparison at the following location: http://www.zeroc.com/icee/iceVsIceE.html.

The metadata you are encountering problems with relates to how slice classes are mapped. Since IceE doesn't support object-by-value (ie: slice classes) it also does not support the metadata directive in question.
Reply With Quote
  #4 (permalink)  
Old 07-15-2007
Oscar.Acena Oscar.Acena is offline
Registered User
 
Name: Oscar Aceña
Organization: Universidad Castilla-La Mancha
Project: Wireless sensor networks
 
Join Date: May 2007
Location: Ciudad Real, Spain
Posts: 7
What a pity!

Well, I see the metadata thing. Ok, is no problem.

And... do you thing i could write a very simple implementation of IceStorm service? As far as it keeps the interfaces, it will be ok, it's not?

Well, I'll do my best. Thanks a lot for your comment!
Saludos.
Reply With Quote
  #5 (permalink)  
Old 07-15-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
Its certainly possible to write a simple version with the IceStorm interface. However, its not a trivial undertaking. I would first try the existing IceStorm service on your device to find out whether the overhead is too high.
Reply With Quote
  #6 (permalink)  
Old 07-15-2007
Oscar.Acena Oscar.Acena is offline
Registered User
 
Name: Oscar Aceña
Organization: Universidad Castilla-La Mancha
Project: Wireless sensor networks
 
Join Date: May 2007
Location: Ciudad Real, Spain
Posts: 7
Ok, I'll do that

Ok.

I'll try first the existing IceStorm. I'll tell you how it progress :-)
Thanks a lot for your support.

Best regards.
Reply With Quote
  #7 (permalink)  
Old 07-16-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
Actually, I was mistaken about the purpose of the metadata -- this metadata is used to trigger an alternative mapping that maps slice structs to C++ reference counted classes. This was never ported to IceE. However, the main impediment to porting IceStorm to IceE is the lack of support for Blobject. Without this there is no practical way to unmarshal the request and forward it transparently.
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
Java global package metadata and builtin datatypes mefoster Bug Reports 1 05-11-2007 12:27 PM
Metadata directives bartley Help Center 1 02-03-2006 02:35 PM
package metadata directive - ClassCast Exception vsonnathi Bug Reports 1 09-28-2004 11:46 AM
Reference for Metadata tags Nis Baggesen Help Center 3 09-13-2004 09:04 AM
c++ metadata sylvain Help Center 5 08-06-2003 10:10 AM


All times are GMT -4. The time now is 11:52 PM.


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