[xsd-users] Adding custom code to getter functions of all types.
KRAUSE Matthis (AREVA)
matthis.krause at areva.com
Thu Aug 28 08:57:48 EDT 2014
Hello,
I am currently playing around with C++/Tree mapping in a project and have a question:
I would like to be able to generate a log which contains information about which values from an xml file/object model have been accessed and which have not.
Would it be possible to customize the default behavior in such a way to allow for this information to be captured?
I already looked into generating every type from the schema file as a base class which inherits from a custom class but I don't know if and how I would be able to customize the "getter" functions this way.
Ideally I would still like to access values normally, meaning that if I have a value "<Apple>...", I want to access it via "rootpointer.apple()" (if it is not an optional value).
Can you maybe point me into the right direction?
Regards,
Matthis
More information about the xsd-users
mailing list