Connecting Tech Pros Worldwide Help | Site Map

Flatten a dynamic array

  #1  
Old July 22nd, 2005, 11:18 AM
Gerrit Hulleman
Guest
 
Posts: n/a
Is there a standard call to flatten a dynamic array and visa versa? It must
be a readable string.

For a plugin that can only communicate with points to unsigned char I need
to transfer information and construct a dynamic array from it.

Gerrit Hulleman


  #2  
Old July 22nd, 2005, 11:18 AM
Karl Heinz Buchegger
Guest
 
Posts: n/a

re: Flatten a dynamic array


Gerrit Hulleman wrote:[color=blue]
>
> Is there a standard call to flatten a dynamic array and visa versa? It must
> be a readable string.
>
> For a plugin that can only communicate with points to unsigned char I need
> to transfer information and construct a dynamic array from it.
>
> Gerrit Hulleman[/color]

You do pretty much the same thing as you do when writing to a text file.
But instead of a file stream you use a stringstream.

--
Karl Heinz Buchegger
kbuchegg@gascad.at
  #3  
Old July 22nd, 2005, 11:18 AM
Michiel Salters
Guest
 
Posts: n/a

re: Flatten a dynamic array


"Gerrit Hulleman" <hulleman@lupus-delta.tmfweb.nl> wrote in message news:<408f8ed0$0$574$e4fe514c@news.xs4all.nl>...[color=blue]
> Is there a standard call to flatten a dynamic array and visa versa? It must
> be a readable string.
>
> For a plugin that can only communicate with points to unsigned char I need
> to transfer information and construct a dynamic array from it.
>
> Gerrit Hulleman[/color]

What is a dynamic array, and what does it mean to flatten it? These
aren't common C++ terms. Perhaps "serialization" would help you with
google.

Regards,
Closed Thread