[xsde-users] non-default constructors

Jones Oliver Oliver.Jones at helvar.com
Fri Jan 29 13:01:57 EST 2016


Hi Boris,

Can you tell me if there is a way to generate the non-default constructors, i.e. ones that set the members of the class.  I can see in the documentation that you might have provision for this, but I can't see how to do it using the existing  command set.

Regards,

Ollie

This is an example of a class, in the documentation, that has a non-default constructor that sets its members.
5.1 Mapping for QName

namespace xml_schema
{
  class qname
  {
  public:
    enum error
    {
      error_none,
      error_no_memory
    };

    // The default constructor creates an uninitialized object.
    // Use modifiers to initialize it.
    //
    qname ();

    explicit
    qname (char* name);
    qname (char* prefix, char* name);





More information about the xsde-users mailing list