Menu

trying to split data across classes and have each class generate the sub-element for the class

2016-03-10
2016-03-10
  • Mark Simonton

    Mark Simonton - 2016-03-10

    I have multiple classes to hold parts of information, the classes are related but the information is easier to handle in smaller chunks I don't seem to be able to allocate the element in one member function and attach it to the XML document or root element and have it persist after the function generating the tinyxml2::XMLElement exits; even if I pass a pointer to a pointer to the document class from the containing class. I have a somewhat minimal example but it is a code::blocks project with 8 files; I will try to generate a minimal example in 1 file; are the XMLElements on the stack? or are they heap elements?

    Thanks, Mark.

     
  • Mark Simonton

    Mark Simonton - 2016-03-10

    Oh, it did work, but the printer element didn't reflect the change...interesting;

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.