[xsde-users] Disable automatic deletion of char arrays.

Thomas Frenzel (TomSun) tftomsun at streamteam.de
Fri Oct 30 09:37:21 EDT 2009


Hi Boris,

i have a new question :) Is there a possibility to turn of the automatic deletion of char arrays and/or other aggregeted pointer based values when the generated class will be deleted? I mean, mostly this is exactly what i want to do, but sometimes i just want to pass a const char array to one of the generated class instances without copying it before. In these cases i have to copy data even if its not necessary.

I think an extension of the default constructor with an bool that is false by default would be nice.

public MyGeneratedClass(bool deleteAggregatesOnFinalize = false)
{
  ....
}

Regards,
Tom
  _____  

From: Boris Kolpackov [mailto:boris at codesynthesis.com]
To: Thomas Frenzel (TomSun) [mailto:tftomsun at streamteam.de]
Cc: xsde-users at codesynthesis.com
Sent: Wed, 28 Oct 2009 15:18:41 +0100
Subject: Re: Unicode support

Hi Thomas,
  
  Thomas Frenzel (TomSun) <tftomsun at streamteam.de> writes:
  
  > is there a possibility to generate the xsde with unicode support?
  
  The generated code supports Unicode by default. The text in the object
  model is encoded in UTF-8.
  
  
  > For example ther should be used the wchar_t* instead of char*?
  
  No this is not supported. If you need to access the text as wchar_t-
  based string then you will need to manually convert char/UTF-8 to 
  wchar_t/UTF-16.
  
  Boris
    


More information about the xsde-users mailing list