]> granicus.if.org Git - graphviz/commit
add a new cgraph++ library with a very basic AGraph C++ class
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 3 Apr 2021 22:24:40 +0000 (00:24 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Aug 2021 04:54:12 +0000 (06:54 +0200)
commit928692205aeca70d9b3a4d4ccea8285ff68f9b5c
treef97d38b49ccc3351ccb27bb6a2a754be1289eadb
parent27eac092be44646df103d759285b04e3e9e2b92f
add a new cgraph++ library with a very basic AGraph C++ class

The AGraph class is an RAII-class that handles the lifetime of the
underlying Agraph_t C data structure. It currently supports
construction from DOT source, move construction and move assignment,
but not copy construction or copy assignment since the underlying C
data structure cannot be easily copied. It also supports retrieving a
non-owning pointer to the underlying Agraph_t.

The new C++ API is optional and can be enabled with the CMake option
"with_cxx_api".

Towards https://gitlab.com/graphviz/graphviz/-/issues/2001.
CMakeLists.txt
lib/CMakeLists.txt
lib/cgraph++/AGraph.cpp [new file with mode: 0644]
lib/cgraph++/AGraph.h [new file with mode: 0644]
lib/cgraph++/CMakeLists.txt [new file with mode: 0644]