[xsde-users] Utilizing Inhertied String Classes

Jonathan Haws Jonathan.Haws at sdl.usu.edu
Wed May 23 09:47:36 EDT 2012


Borus, Ivan,
Thanks for the info. I am more of a C programmer, so C++ strings are a little foreign to me. Thanks for the tip. Having a constructor would be nice, but the assign method is just as easy.

Thanks!
Jonathan

Sent from my Verizon Wireless Phone


-----Original message-----
From: Boris Kolpackov <boris at codesynthesis.com>
To: Jonathan Haws <Jonathan.Haws at sdl.usu.edu>
Cc: "xsde-users at codesynthesis.com" <xsde-users at codesynthesis.com>
Sent: 2012 May, Wed, 23 08:31:09 GMT+00:00
Subject: Re: [xsde-users] Utilizing Inhertied String Classes

Hi Jonathan,

Ivan Le Lann <ivan.lelann at free.fr> writes:

> sen.ipaddr().assign("10.0.0.1");

Yes, Ivan's suggestion is probably the best way to do it currently.

The reason we don't generate any extra constructors for types like
your ipaddr is because it would require C++ exception support, which
is optional in XSD/e.

However, seeing that there is no reason this can't be done when C++
exceptions are enabled and also seeing that it is an often-requested
feature, we will add an option in the next release of XSD/e to generate
these "initialization" constructors, so that you will be able to write:

ipaddr ip ("10.0.0.1");

Boris



More information about the xsde-users mailing list