Huge data in C++ program during compile time
<p>I have around 30 XML files, which my C++ process (at run time) should parse and make some installation.</p>

<p>I felt, instead of using XML at runtime, why can't I write a script which will encode the XML files into my own structure and generate a C++ program which should be compiled and built?</p>

<p>What I mean is, my script should populate the encoded structure as a variable assignment in C++ program.</p>

<p>Something like</p>

<pre><code>class generatedCode
{
private:
   unsigned char = ox11, ox22....
};
</code></pre>

<p>Then my C++ process will decode this and do installation instead of XML parsing.</p>

<p>My whole intention is the bring all the XML info by some means into C++ process memory.</p>

<p>Can someone please suggest, is this a good way? Do suggest any other ways of doing it?</p>
