[xsd-users] Re: using contianers - please advice
Boris Kolpackov
boris at codesynthesis.com
Thu May 3 09:14:25 EDT 2007
Hi Uri,
Please send technical questions like this to the xsd-users mailing (CC'ed)
instead of directly to me. Note that I've already asked you to do so in my
previous email.
Uri Karagila <uri at hyperroll.com> writes:
> Boris,
>
> Following provided cxx-tree-manual.pdf (XML Schema C++/Tree Mapping User
> Manual, v1.2.5) sec. 2.8.3 (p. 31):
>
> "The sequence class template is defined in an implementation-specific
> namespace. It conforms
>
> to the sequence interface as defined by the ISO/ANSI Standard for C++
> (ISO/IEC 14882:1998,
>
> Section 23.1.1, "Sequences"). Practically, this means that you can treat
> such a sequence as if it
>
> was std::vector."
>
> The following code shows how one could use this mapping:
>
> ..
>
> ..
>
> // Setting a new container.
>
> //
>
> object::member::container n;
>
> n.push_back (1);
>
> o.member (n);
>
> ..
>
>
>
> I've written few code line in which:
>
> ..
>
> SourceList::source::container cont1; //set new container
>
>
>
> some how i'm not able to use my cont1 as std::vector.
You need to show us the code where you are not able to do so. The
above line simply creates an instance of the container without
adding any elements to it or setting it as a member of a tree.
>
>
>
> Where am I wrong?
>
>
>
> Please advice
>
>
>
> Thanks in Advance
>
> Uri
>
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070503/a2e9c8d5/attachment.pgp
More information about the xsd-users
mailing list