Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-13-2006
sylvain sylvain is offline
Registered User
 
Name: Sylvain Fasel
Organization: university of Geneva
Project: quantum cryptographic systems
 
Join Date: Feb 2003
Location: Geneva (Switzerland)
Posts: 42
streaming function "write/readContext" for Ice::Context

Dear All,

While I am developing my project (in c++) using the Ice streaming functionalities, I came accross the following thing:

I would like to be able to write/read some internal Ice types, like Ice::Context, in a similar way to what is possible for basic types. For instance I would like to do:

out->writeByteSeq(mySeq);
out->writeContext(myCtx); //or ice_writeContext(out,myCtx);

However, the functions to stream these kind of Ice types are not present.

My solution was simply to define my own "context" type as a dictionary<string,string> in a slice file and use the --stream option of the slice2cpp compiler.

Of course this works perfectly, at least as long as Ice::Context remains a dictionary<string,string>.

Is there a more elegant way to achieve easy streaming of Ice::Context (or Ice::OperationMode e.g.)?

Thanks in advance.
__________________
Sylvain Fasel
Group of Applied Physics
University of Geneva
www.gapoptic.unige.ch
Research in applied quantum cryptography
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
Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? Jason Gao Help Center 4 10-26-2006 12:23 PM
Icepack registry "TimeOut" exception with heavy load eaglecn Help Center 1 05-26-2006 01:02 AM
"make test" failure on Ice 3.0.1 installation. SUSE 10.1. pchapin Help Center 4 05-22-2006 11:20 PM
"Invalid UTF8 string" when transer chinese chars between cpp server and csharp client raygo Help Center 8 03-21-2006 09:34 PM
Going from "in" to "out" param, using a class as a union catalin Help Center 1 04-05-2004 09:55 AM


All times are GMT -4. The time now is 12:14 AM.


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.