Hi Tom,
On Fri, 10 Nov 2006 16:06:42 +0100, <tom_kuehnert@[EMAIL PROTECTED]
> wrote:
> ok...i will try it
> (but i am in Berlin for the weekend, so no success before monday :) )
hehe, me too ;-))
I had a look into the fine sources of Coins SoMField class and found the
readValues function.
This function does the parsing and uses the [ "first string", "2nd", ]
format.
> Even if it works, it will propably be the problem that I do not know
> when the string ends ( it comes by a tcp connection and is composed of
> multiple strings only if the sending rate is too high -> so i could not
> possibly know when to send the "last message" with the ']')
Adding multiple values to a SoMFString object is straight forwarded.
Use getNum to get the number of elements in the object so far.
Then call the setValues(int start, int number, SbString* values) method to
add an arbitrary number of strings to the object.
> If it doesnt work, I will have to change the class which does the .set
> (to a setValue(first_free_index,...)) but this will add another class
> to a project-folder where there are already enough cl***** to get
> lost...
>
> Thx for your time, Volker!
>
> Tom
>
HTH, have a nice weekend, cheers Volker
--
Volker Enderlein


|