Hi everyone!
I am trying for the first time to write "proper" object oriented c++ (ANSI) code.
Up until now everything was made easy to me using visual studio and working with mfc or .net which both handle a lot of the "dirty" stuff...
To the point : I want to build a class that all it's member variables are initialized by parsing an xml file (seperate file for each object).
To parse xml files i use libxml2 library http://xmlsoft.org/.
I have already made a function to parse the xml files and store the data to my variables and this is going to be a member function of my class.
Now how should i design my class for better functionality - portabiliy?
Should i call the xml parse function inside the constructor of my class or leave the constructor "clean" and call the function outside class declaration?
Is there anything i should consider before using the one way or the other?
Thanks in advance.