You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to know more about provided API read the :doc:`query interface <query_interface>`
45
-
document or the :doc:`API documentation <apidocs/api>`
18
+
You can use pip to install pygccxml::
46
19
47
-
Type traits
48
-
-----------
49
-
`pygccxml` provides a lot of functionality to analyze C++ types and relationship
50
-
between them. For more information please refer to the :doc:`design <design>` document or
51
-
the :doc:`API documentation <apidocs/api>`. A few examples:
20
+
pip install pygccxml
52
21
53
-
* ``is_convertible(from, to)``
22
+
To install from source, you can use the usual procedure::
54
23
55
-
returns ``True`` if there is a conversion from type ``from`` to type ``to``,
56
-
otherwise ``False``
24
+
python setup.py install
57
25
58
-
* ``is_unary_operator(oper)``
59
-
60
-
returns ``True`` if ``oper`` describes an unary operator
61
-
62
-
63
-
Declaration dependencies
64
-
------------------------
65
-
You can query a declaration, about it dependencies - declarations it depends on.
66
-
This is a very powerful and useful feature. `Py++ <http://sourceforge.net/projects/pygccxml/files/pyplusplus/>`_, for example, uses this functionality to check that user creates Python
67
-
bindings for all relevant declarations.
68
-
69
-
Caching
70
-
-------
71
-
Consider the following situation: you have to parse the same set of files every
72
-
day. There are 2 possible ways to complete the task:
26
+
Examples
27
+
========
73
28
74
-
* create a header file that includes all files you need to parse
29
+
The :doc:`examples <examples>` are a good way to learn how to use `pygccxml`.
75
30
76
-
* parse each file separately and then join the results
31
+
`pygccxml` provides a powerful API. If you want to know more about the provided API
32
+
read the :doc:`query interface <query_interface>` document or the
33
+
:doc:`API documentation <apidocs/api>`.
77
34
78
-
The difference between these approaches is the caching algorithm used in the
79
-
second case. `pygccxml` supports both of them. Actually `pygccxml` supports
80
-
more caching strategies, read the API documentation for more information.
35
+
Contributing
36
+
============
81
37
82
-
Binary files parser
83
-
-------------------
84
-
`pygccxml` contains a functionality which allows to extract different information
85
-
from binary files (`.map`, `.dll`, `.so`) and integrate it with the existing
0 commit comments