|
|
|
|||||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |