Very simple C/C++ XML Parser [duplicate] - c++

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What XML parser should I use in C++?
It is generally required to parse application settings from local XML file under Linux platform and nothing more.
Requirements:
1. Can be used for commercial product
2. Free of charge
3. Easy to install (1 header file will be great)
4. Easy to use
5. Very stable
6. Unicode support

I think expat does everything you want.

I use Apache's xerces-c. It never gave me problems and you can find some useful info on Google, like: Tuto1.
Also, it is free of charge and you can use it commercial products.

have a look at boost::property_tree http://www.boost.org/doc/libs/1_52_0/doc/html/property_tree.html

Related

Is there a way like man, info, perldoc etc to get help info about C++? [duplicate]

This question already has answers here:
Where are the man pages for C++? [closed]
(8 answers)
Closed 8 years ago.
I have some experience with Bash, Perl and R. I find it is very convenient to get help info with these three programming languages. However, when I start with C++, I fail to find such a help system. Did I miss something? Or, there is no such system at all?
Another problem puzzling me is C++ libraries. How to start to learn a new library? Is there a convenient way to get all the member functions for a new class? Or, do we have to read the header files to get the methods for the class?
Thanks!
If you have experience with bash, then you must be familiar with unix or linux systems, you can use man command like man 2 fwrite to find the standard c library manual for fwrite function.
However, for c-plus-plus, the manual is not inside the man directory by default (so far as I know).
You can download c-plus-plus manual from 'http://gcc.gnu.org/mirrors.html' to use manual for c++ standard library. Or try to use dash on Mac computer or Velocity on Windows platform instead. Besides, reading the manual from 'http://en.cppreference.com/w/' is my favorite way.

Equivalent to windows.h for mac [duplicate]

This question already has answers here:
Where can I get windows.h for Mac?
(3 answers)
Closed 4 months ago.
Is there any equivalent to windows.h for mac?
I've been googling it but I can't find anything.
I don't know if it matters but I am currently using Mountain Lion.
There is no direct equivalent. That is, no file for file substitute. It's a different platform after all. You will simply have to work with their API. And without knowing exactly what it is you want to do and what functionality you intend to use, it's hard to provide any additional information.
There is the Carbon API. Or better said, there was. Specifically since Mountain Lion, this API has been deprecated. The aforementioned link mentions some alternatives to deprecated functionality, though the Objective-C route might be a more easily manageable alternative.

Tool to generate call graphs for c/c++ code on windows platform? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Tools to get a pictorial function call graph of code
I have some c/c++ code . I want to know any tool that can be used to generate call graphs , giving information regarding caller,etc on windows platform.
Doxygen can create call graphs
http://www.doxygen.nl//manual/diagrams.html
You can try also CppDepend , it comes with a dependency graph with many features and possibilities, and you can use CQLinq to request your codebase and see the dependency graph for a subset of your codebase.

XML parsing in C++ [duplicate]

This question already has answers here:
What XML parser should I use in C++? [closed]
(6 answers)
Closed 3 years ago.
What's the best API I can use to do some simple XML read/writing? I'm using Visual Studios. Is there a standard one that I can use in the STD library? The sofwtare that I need it for maybe sold and can't be open source, so it will have to have a flexible license for commercial use.
EDIT: I am NOT using this for any SOAP, protocol or data-binding stuff, Im just using this to store information, as almost an alternative to a database (because in this instance it would be more efficient).
I love pugixml. It's fast, light weight, incredibly easy to use and embed in projects (I've used it in several at work, it's only ~3 files), and best of all, supports XPath 1.0 (which is awesome).
Edit: No, there isn't one in the standard library.
Edit Edit: About pugixml's license: it is distributed under the MIT license, which is about as permissive as you can get.
As far as I know, there's no standard library to read XML.
I found TinyXML a handy library. There's now a TinyXML 2 which I've not used.
I would recommand GSOAP. I know companies that use this in products they sell so licensing should not be an issue. It has features such as schema validation etc...
Microsoft offers an XML library called XmlLite.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms752838%28v=vs.85%29.aspx

Checking how many members is there in a class [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
C++ macro/metaprogram to determine number of members at compile time
is there a way to detect at compile time how many members class has?
I've looked the web but no results.
There are API's for static analysis tools that could do this.
Here at my work I use a product called understand 4 C++. It has a nifty C API, for which I wrote a managed C++/CLI wrapper API. That allows you to write tools using C# to target their API. Using this I have written tools that do things similar to what you want to do.
In your case, you could write a tool, get it to do what you want, and then call this tool as a post build event.
If you search this website for static analysis API's then you will find other useful hits.