Hi:
You can CacheableVector for this. And then pass this in following PdxWriter 
api..
 virtual PdxWriterPtr writeObject(const char* fieldName, CacheablePtr value) = 
0;
See if this helps.
Thanks.HItesh

      From: CREMARENCO Cosmin <[email protected]>
 To: "[email protected]" <[email protected]> 
Cc: GIRARD-REYDET Vincent <[email protected]> 
 Sent: Tuesday, August 4, 2015 7:09 AM
 Subject: Serializing collections in PDX
   
 <!--#yiv7313703450 _filtered #yiv7313703450 {font-family:Calibri;panose-1:2 15 
5 2 2 2 4 3 2 4;}#yiv7313703450 #yiv7313703450 p.yiv7313703450MsoNormal, 
#yiv7313703450 li.yiv7313703450MsoNormal, #yiv7313703450 
div.yiv7313703450MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", 
"sans-serif";}#yiv7313703450 a:link, #yiv7313703450 
span.yiv7313703450MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv7313703450 a:visited, #yiv7313703450 
span.yiv7313703450MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv7313703450 
span.yiv7313703450EmailStyle17 {font-family:"Calibri", 
"sans-serif";color:windowtext;}#yiv7313703450 .yiv7313703450MsoChpDefault 
{font-family:"Calibri", "sans-serif";} _filtered #yiv7313703450 {margin:70.85pt 
70.85pt 70.85pt 70.85pt;}#yiv7313703450 div.yiv7313703450WordSection1 
{}-->Hello,    Sorry for cross-posting, this was also sent to dev (btw, the 
mailing list address for “user” doesn’t appear on the homepage).    I’m using 
PDX as a portable serialization format between Java and C++. While in C++ I’m 
trying to serialize nested collections (say 
std::vector<std::vector<std::string> > ). How can I do that with PDX? The 
PdxWriter API says I’m only allowed flat arrays of types (and small number of 
types at that). I can of course write recursively components of the collection, 
but I’m forced to write “metadata” like the size of the collection and the 
PdxWriter methods need a field name every time. These metadata fields will have 
given names but will that not hinder indexing and the user view of the PDX 
fields in the stream? What would you recommend in this case?    Thanks!    
Cosmin    *******************************This e-mail contains information for 
the intended recipient only. It may contain proprietary material or 
confidential information. If you are not the intended recipient you are not 
authorised to distribute, copy or use this e-mail or any attachment to it. 
Murex cannot guarantee that it is virus free and accepts no responsibility for 
any loss or damage arising from its use. If you have received this e-mail in 
error please notify immediately the sender and delete the original email 
received, any attachments and all copies from your system.

  

Reply via email to