[xsd-users] Help with regex for typedef traits types

Alejandro Claro alejandro.claro at gmail.com
Fri Dec 14 09:13:52 EST 2012


Thank you Boris,

I wil try changing the --type-regex.
I'm able to change the methods name with it but I it does not change the
typedef. Let me check and change the regular expression.

Alejandro.


On Fri, Dec 14, 2012 at 7:08 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Alejandro,
>
> Alejandro Claro <alejandro.claro at gmail.com> writes:
>
> > Anybody knows if there is a way to change the name of the typedef
> generate
> > by XSDCXX? What I want is to remove underscores.
> >
> > This and example:
> >
> > typedef ::Saes::Configuration::Serialization::XmlSchemasNecessaryList
> > Xml_necessaryType;
> >
> > typedef ::xsd::cxx::tree::traits< Xml_necessaryType, char >
> > Xml_necessaryTraits;
> >
> > I want to get XmlNecessaryType and XmlNecessaryTraits typedefs.
>
> Those are passed through the type regex (--type-regex). For *Type,
> the last component will be ',type', for *Traits -- ',traits',
> etc. See the NAMING CONVENTION section the XSD compiler command
> line manual (man pages).
>
> Boris
>



-- 
"Imagination is more important than knowledge. For knowledge is limited to
all we now know and understand, while imagination embraces the entire
world, and all there ever will be to know and understand. "
-  Albert Einstein.


More information about the xsd-users mailing list