sudham / ticpp

Automatically exported from code.google.com/p/ticpp
0 stars 0 forks source link

Patch to enable CDATA, plus odds and ends #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Although tinyxml supports handling CDATA, there seems to have been no way to 
make use of it previously. The fix is pretty trivial; just a getter and setter 
to access the tinyxml CDATA getter and setter. 

Also included here are a couple of tweaks that I vaguely recall I added for 
performance reasons (in TiXmlElement::CopyTo and TiXmlAttributeSet::Add). 

Finally, there are two overloaded versions of ticpp::Base::FromString for 
floats and double which recognize "inf", "-inf" and "nan" and use the 
appropriate values from std::numeric_limits. Thee may not be suitable for 
inclusion in library, but since I had them I thought that I might as well share 
them. 

Original issue reported on code.google.com by cnwea...@gmail.com on 2 Jul 2010 at 6:30

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by rjmy...@gmail.com on 4 Jul 2010 at 10:34