From 54982071a99484488207ad3bd5e9391a15bffe02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gehring?= Date: Mon, 1 Jun 2015 07:57:07 -0700 Subject: CommonAPI-D-Bus 3.1.1 --- .cproject | 152 ++ .gitignore | 65 +- .project | 33 + AUTHORS | 2 +- CMakeLists.txt | 330 ++++ CommonAPI-DBus-uninstalled.pc.in | 13 - CommonAPI-DBus.pc.in | 11 - CommonAPI-DBus.sln | 17 +- CommonAPI-DBus.vcxproj | 140 +- INSTALL | 68 + Makefile.am | 448 ----- README | 294 ---- UnitTests.vcxproj | 148 +- aminclude.am | 168 -- cmake/CommonAPI-DBusConfig.cmake.in | 13 + cmake/CommonAPI-DBusConfigVersion.cmake.in | 12 + commonapi-dbus.spec.in | 127 ++ configure.ac | 131 -- ...Message-add-support-for-custom-marshaling.patch | 267 --- docx/01_mainpage.dox | 31 +- doxygen.cfg | 1794 -------------------- doxygen.in | 1778 +++++++++++++++++++ eclipse-code-style-formatter.xml | 166 -- include/CommonAPI/DBus/DBusAddress.hpp | 53 + include/CommonAPI/DBus/DBusAddressTranslator.hpp | 61 + include/CommonAPI/DBus/DBusAttribute.hpp | 156 ++ include/CommonAPI/DBus/DBusClientId.hpp | 48 + include/CommonAPI/DBus/DBusConfig.hpp | 24 + include/CommonAPI/DBus/DBusConnection.hpp | 246 +++ include/CommonAPI/DBus/DBusDaemonProxy.hpp | 94 + include/CommonAPI/DBus/DBusDeployment.hpp | 37 + include/CommonAPI/DBus/DBusError.hpp | 45 + include/CommonAPI/DBus/DBusEvent.hpp | 91 + include/CommonAPI/DBus/DBusFactory.hpp | 114 ++ .../CommonAPI/DBus/DBusFreedesktopAttribute.hpp | 451 +++++ .../DBus/DBusFreedesktopPropertiesStub.hpp | 59 + .../DBus/DBusFreedesktopStubAdapterHelper.hpp | 194 +++ include/CommonAPI/DBus/DBusFreedesktopVariant.hpp | 74 + include/CommonAPI/DBus/DBusFunctionalHash.hpp | 81 + include/CommonAPI/DBus/DBusHelper.hpp | 55 + include/CommonAPI/DBus/DBusInputStream.hpp | 426 +++++ .../DBusInstanceAvailabilityStatusChangedEvent.hpp | 135 ++ include/CommonAPI/DBus/DBusInterfaceHandler.hpp | 31 + include/CommonAPI/DBus/DBusMainLoopContext.hpp | 87 + include/CommonAPI/DBus/DBusMessage.hpp | 101 ++ include/CommonAPI/DBus/DBusMultiEvent.hpp | 118 ++ include/CommonAPI/DBus/DBusObjectManager.hpp | 69 + include/CommonAPI/DBus/DBusObjectManagerStub.hpp | 125 ++ include/CommonAPI/DBus/DBusOutputStream.hpp | 398 +++++ include/CommonAPI/DBus/DBusProxy.hpp | 84 + .../DBus/DBusProxyAsyncCallbackHandler.hpp | 78 + include/CommonAPI/DBus/DBusProxyBase.hpp | 72 + include/CommonAPI/DBus/DBusProxyConnection.hpp | 127 ++ include/CommonAPI/DBus/DBusProxyHelper.hpp | 258 +++ include/CommonAPI/DBus/DBusProxyManager.hpp | 72 + include/CommonAPI/DBus/DBusSelectiveEvent.hpp | 56 + .../CommonAPI/DBus/DBusSerializableArguments.hpp | 30 + include/CommonAPI/DBus/DBusServiceRegistry.hpp | 315 ++++ include/CommonAPI/DBus/DBusStubAdapter.hpp | 59 + include/CommonAPI/DBus/DBusStubAdapterHelper.hpp | 674 ++++++++ include/CommonAPI/DBus/DBusTypeOutputStream.hpp | 153 ++ include/CommonAPI/DBus/DBusTypes.hpp | 37 + include/CommonAPI/DBus/DBusUtils.hpp | 37 + include/murmurhash/MurmurHash3.h | 37 + include/pugixml/pugiconfig.hpp | 69 + include/pugixml/pugixml.hpp | 1265 ++++++++++++++ m4/ax_cxx_compile_stdcxx_11.m4 | 107 -- m4/ax_prog_doxygen.m4 | 532 ------ src/CommonAPI/DBus/DBusAddress.cpp | 102 ++ src/CommonAPI/DBus/DBusAddressTranslator.cpp | 370 ++-- src/CommonAPI/DBus/DBusAddressTranslator.h | 84 - src/CommonAPI/DBus/DBusAttribute.h | 549 ------ src/CommonAPI/DBus/DBusClientId.cpp | 23 +- src/CommonAPI/DBus/DBusClientId.h | 48 - src/CommonAPI/DBus/DBusConfiguration.cpp | 264 --- src/CommonAPI/DBus/DBusConfiguration.h | 74 - src/CommonAPI/DBus/DBusConnection.cpp | 615 ++++--- src/CommonAPI/DBus/DBusConnection.h | 242 --- src/CommonAPI/DBus/DBusConnectionBusType.h | 26 - src/CommonAPI/DBus/DBusDaemonProxy.cpp | 102 +- src/CommonAPI/DBus/DBusDaemonProxy.h | 101 -- src/CommonAPI/DBus/DBusDeployment.cpp | 14 + src/CommonAPI/DBus/DBusError.cpp | 16 +- src/CommonAPI/DBus/DBusError.h | 45 - src/CommonAPI/DBus/DBusEvent.h | 110 -- src/CommonAPI/DBus/DBusFactory.cpp | 459 +++-- src/CommonAPI/DBus/DBusFactory.h | 93 - .../DBus/DBusFreedesktopPropertiesStub.cpp | 128 +- src/CommonAPI/DBus/DBusFreedesktopPropertiesStub.h | 60 - src/CommonAPI/DBus/DBusFunctionalHash.cpp | 17 +- src/CommonAPI/DBus/DBusFunctionalHash.h | 80 - src/CommonAPI/DBus/DBusHelper.h | 42 - src/CommonAPI/DBus/DBusInputStream.cpp | 369 +--- src/CommonAPI/DBus/DBusInputStream.h | 233 --- .../DBusInstanceAvailabilityStatusChangedEvent.h | 140 -- src/CommonAPI/DBus/DBusInterfaceHandler.h | 32 - src/CommonAPI/DBus/DBusLegacyVariant.h | 138 -- src/CommonAPI/DBus/DBusMainLoopContext.cpp | 54 +- src/CommonAPI/DBus/DBusMainLoopContext.h | 92 - src/CommonAPI/DBus/DBusMessage.cpp | 312 ++-- src/CommonAPI/DBus/DBusMessage.h | 117 -- src/CommonAPI/DBus/DBusMultiEvent.h | 121 -- src/CommonAPI/DBus/DBusObjectManager.cpp | 76 +- src/CommonAPI/DBus/DBusObjectManager.h | 72 - src/CommonAPI/DBus/DBusObjectManagerStub.cpp | 50 +- src/CommonAPI/DBus/DBusObjectManagerStub.h | 127 -- src/CommonAPI/DBus/DBusOutputStream.cpp | 374 +--- src/CommonAPI/DBus/DBusOutputStream.h | 351 ---- src/CommonAPI/DBus/DBusProxy.cpp | 83 +- src/CommonAPI/DBus/DBusProxy.h | 106 -- src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h | 79 - src/CommonAPI/DBus/DBusProxyBase.cpp | 56 +- src/CommonAPI/DBus/DBusProxyBase.h | 75 - src/CommonAPI/DBus/DBusProxyConnection.h | 135 -- src/CommonAPI/DBus/DBusProxyHelper.h | 283 --- src/CommonAPI/DBus/DBusProxyManager.cpp | 237 +-- src/CommonAPI/DBus/DBusProxyManager.h | 74 - src/CommonAPI/DBus/DBusRuntime.cpp | 86 - src/CommonAPI/DBus/DBusRuntime.h | 39 - src/CommonAPI/DBus/DBusSelectiveEvent.h | 101 -- src/CommonAPI/DBus/DBusSerializableArguments.h | 66 - src/CommonAPI/DBus/DBusServicePublisher.cpp | 155 -- src/CommonAPI/DBus/DBusServicePublisher.h | 61 - src/CommonAPI/DBus/DBusServiceRegistry.cpp | 287 ++-- src/CommonAPI/DBus/DBusServiceRegistry.h | 319 ---- src/CommonAPI/DBus/DBusStubAdapter.cpp | 91 +- src/CommonAPI/DBus/DBusStubAdapter.h | 86 - src/CommonAPI/DBus/DBusStubAdapterHelper.h | 838 --------- src/CommonAPI/DBus/DBusUtils.h | 39 - .../capi-dbus-add-send-with-reply-set-notify.patch | 201 +++ ...i-dbus-add-support-for-custom-marshalling.patch | 217 +++ src/murmurhash/MurmurHash3.cpp | 2 +- src/murmurhash/MurmurHash3.h | 37 - src/pugixml/pugiconfig.hpp | 69 - src/pugixml/pugixml.cpp | 2 +- src/pugixml/pugixml.hpp | 1265 -------------- src/test/CMakeLists.txt | 469 +++++ src/test/DBusAddressTranslatorTest.cpp | 489 ++++-- src/test/DBusBroadcastTest.cpp | 242 ++- src/test/DBusClientIdTest.cpp | 20 +- src/test/DBusCommunicationTest.cpp | 224 ++- src/test/DBusConnectionTest.cpp | 256 +-- src/test/DBusDaemonProxyTest.cpp | 33 +- src/test/DBusFactoryTest.cpp | 105 +- src/test/DBusFreedesktopPropertiesTest.cpp | 90 +- src/test/DBusInputStreamTest.cpp | 190 ++- src/test/DBusLoadTest.cpp | 111 +- src/test/DBusMainLoopIntegrationTest.cpp | 201 +-- src/test/DBusManagedTest.cpp | 197 +-- src/test/DBusMultipleConnectionTest.cpp | 52 +- src/test/DBusNameCacheTest.cpp | 30 - src/test/DBusObjectManagerStubTest.cpp | 64 +- src/test/DBusOutputStreamTest.cpp | 358 ++-- src/test/DBusPolymorphicTest.cpp | 159 +- src/test/DBusProxyTest.cpp | 195 +-- src/test/DBusRuntimeTest.cpp | 55 +- src/test/DBusSerializableStructTest.cpp | 79 - src/test/DBusSerializableStructTest.h | 68 - src/test/DBusServicePublisherTest.cpp | 82 +- src/test/DBusServiceRegistryTest.cpp | 107 +- src/test/DBusStubAdapterTest.cpp | 34 +- src/test/DBusTestUtils.h | 86 - src/test/DBusTestUtils.hpp | 88 + src/test/DBusTypeStreamTest.cpp | 40 +- src/test/DBusVariantOutputStreamTest.cpp | 114 +- src/test/DBusVariantTest.cpp | 21 +- src/test/DemoMainLoop.h | 381 ----- src/test/DemoMainLoop.hpp | 380 +++++ src/test/README.txt | 12 + src/test/commonapi-dbus.ini | 41 + src/test/commonapi/tests/DerivedTypeCollection.cpp | 227 +-- src/test/commonapi/tests/DerivedTypeCollection.h | 476 ------ src/test/commonapi/tests/DerivedTypeCollection.hpp | 354 ++++ src/test/commonapi/tests/ExtendedInterface.h | 60 - .../commonapi/tests/ExtendedInterfaceDBusProxy.cpp | 78 - .../commonapi/tests/ExtendedInterfaceDBusProxy.h | 60 - .../tests/ExtendedInterfaceDBusStubAdapter.cpp | 286 ---- .../tests/ExtendedInterfaceDBusStubAdapter.h | 243 --- src/test/commonapi/tests/ExtendedInterfaceProxy.h | 187 -- .../commonapi/tests/ExtendedInterfaceProxyBase.h | 47 - src/test/commonapi/tests/ExtendedInterfaceStub.h | 96 -- .../tests/ExtendedInterfaceStubDefault.cpp | 48 - .../commonapi/tests/ExtendedInterfaceStubDefault.h | 65 - .../commonapi/tests/PredefinedTypeCollection.h | 66 - .../commonapi/tests/PredefinedTypeCollection.hpp | 64 + .../tests/TestFreedesktopDerivedInterface.h | 60 - .../TestFreedesktopDerivedInterfaceDBusProxy.cpp | 63 - .../TestFreedesktopDerivedInterfaceDBusProxy.h | 61 - ...tFreedesktopDerivedInterfaceDBusStubAdapter.cpp | 245 --- ...estFreedesktopDerivedInterfaceDBusStubAdapter.h | 180 -- .../tests/TestFreedesktopDerivedInterfaceProxy.h | 199 --- .../TestFreedesktopDerivedInterfaceProxyBase.h | 44 - .../tests/TestFreedesktopDerivedInterfaceStub.h | 102 -- .../TestFreedesktopDerivedInterfaceStubDefault.cpp | 88 - .../TestFreedesktopDerivedInterfaceStubDefault.h | 74 - .../commonapi/tests/TestFreedesktopInterface.h | 59 - .../tests/TestFreedesktopInterfaceDBusProxy.cpp | 68 - .../tests/TestFreedesktopInterfaceDBusProxy.h | 66 - .../TestFreedesktopInterfaceDBusStubAdapter.cpp | 219 --- .../TestFreedesktopInterfaceDBusStubAdapter.h | 137 -- .../tests/TestFreedesktopInterfaceProxy.h | 280 --- .../tests/TestFreedesktopInterfaceProxyBase.h | 52 - .../commonapi/tests/TestFreedesktopInterfaceStub.h | 127 -- .../tests/TestFreedesktopInterfaceStubDefault.cpp | 211 --- .../tests/TestFreedesktopInterfaceStubDefault.h | 104 -- src/test/commonapi/tests/TestInterface.h | 59 - .../commonapi/tests/TestInterfaceDBusProxy.cpp | 245 --- src/test/commonapi/tests/TestInterfaceDBusProxy.h | 91 - .../tests/TestInterfaceDBusStubAdapter.cpp | 469 ----- .../commonapi/tests/TestInterfaceDBusStubAdapter.h | 214 --- src/test/commonapi/tests/TestInterfaceProxy.h | 531 ------ src/test/commonapi/tests/TestInterfaceProxyBase.h | 92 - src/test/commonapi/tests/TestInterfaceStub.h | 197 --- .../commonapi/tests/TestInterfaceStubDefault.cpp | 285 ---- .../commonapi/tests/TestInterfaceStubDefault.h | 137 -- src/test/commonapi/tests/managed/BranchInterface.h | 91 - .../tests/managed/BranchInterfaceDBusProxy.cpp | 74 - .../tests/managed/BranchInterfaceDBusProxy.h | 61 - .../managed/BranchInterfaceDBusStubAdapter.cpp | 125 -- .../tests/managed/BranchInterfaceDBusStubAdapter.h | 112 -- .../commonapi/tests/managed/BranchInterfaceProxy.h | 184 -- .../tests/managed/BranchInterfaceProxyBase.h | 48 - .../commonapi/tests/managed/BranchInterfaceStub.h | 97 -- .../tests/managed/BranchInterfaceStubDefault.cpp | 48 - .../tests/managed/BranchInterfaceStubDefault.h | 66 - src/test/commonapi/tests/managed/LeafInterface.h | 91 - .../tests/managed/LeafInterfaceDBusProxy.cpp | 74 - .../tests/managed/LeafInterfaceDBusProxy.h | 61 - .../tests/managed/LeafInterfaceDBusStubAdapter.cpp | 125 -- .../tests/managed/LeafInterfaceDBusStubAdapter.h | 112 -- .../commonapi/tests/managed/LeafInterfaceProxy.h | 184 -- .../tests/managed/LeafInterfaceProxyBase.h | 48 - .../commonapi/tests/managed/LeafInterfaceStub.h | 97 -- .../tests/managed/LeafInterfaceStubDefault.cpp | 48 - .../tests/managed/LeafInterfaceStubDefault.h | 66 - src/test/commonapi/tests/managed/RootInterface.h | 92 - .../tests/managed/RootInterfaceDBusProxy.cpp | 82 - .../tests/managed/RootInterfaceDBusProxy.h | 66 - .../tests/managed/RootInterfaceDBusStubAdapter.cpp | 253 --- .../tests/managed/RootInterfaceDBusStubAdapter.h | 120 -- .../commonapi/tests/managed/RootInterfaceProxy.h | 194 --- .../tests/managed/RootInterfaceProxyBase.h | 53 - .../commonapi/tests/managed/RootInterfaceStub.h | 111 -- .../tests/managed/RootInterfaceStubDefault.cpp | 81 - .../tests/managed/RootInterfaceStubDefault.h | 75 - src/test/commonapi/tests/managed/SecondRoot.h | 62 - .../tests/managed/SecondRootDBusProxy.cpp | 58 - .../commonapi/tests/managed/SecondRootDBusProxy.h | 62 - .../tests/managed/SecondRootDBusStubAdapter.cpp | 178 -- .../tests/managed/SecondRootDBusStubAdapter.h | 111 -- src/test/commonapi/tests/managed/SecondRootProxy.h | 159 -- .../commonapi/tests/managed/SecondRootProxyBase.h | 45 - src/test/commonapi/tests/managed/SecondRootStub.h | 101 -- .../tests/managed/SecondRootStubDefault.cpp | 57 - .../tests/managed/SecondRootStubDefault.h | 68 - .../DBusDynamicLoadingBasicTest.cpp | 108 +- .../DBusDynamicLoadingDefinitions.h | 20 +- .../DBusDynamicLoadingMixedValidityTest.cpp | 13 +- .../DBusDynamicLoadingMultipleBindingsTest.cpp | 2 + .../DBusDynamicLoadingMultipleDefinitionTest.cpp | 11 +- .../DBusDynamicLoadingNoValidityTest.cpp | 12 +- .../fakeTestBinding/FakeBinding.h | 2 +- src/test/fake/legacy/service/LegacyInterface.h | 61 - .../legacy/service/LegacyInterfaceDBusProxy.cpp | 107 -- .../fake/legacy/service/LegacyInterfaceDBusProxy.h | 65 - .../service/LegacyInterfaceDBusStubAdapter.cpp | 141 -- .../service/LegacyInterfaceDBusStubAdapter.h | 122 -- .../fake/legacy/service/LegacyInterfaceProxy.h | 241 --- .../fake/legacy/service/LegacyInterfaceProxyBase.h | 54 - src/test/fake/legacy/service/LegacyInterfaceStub.h | 101 -- .../legacy/service/LegacyInterfaceStubDefault.cpp | 64 - .../legacy/service/LegacyInterfaceStubDefault.h | 72 - src/test/fakeLegacyService.fidl | 5 + src/test/fakeLegacyService/fakeLegacyService.py | 6 +- .../fakeLegacyService/sendToFakeLegacyService.py | 6 +- src/test/leaf.fidl | 8 +- src/test/root.fidl | 8 +- .../commonapi/tests/DerivedTypeCollection.cpp | 76 + .../commonapi/tests/DerivedTypeCollection.hpp | 375 ++++ .../commonapi/tests/PredefinedTypeCollection.hpp | 64 + .../v1_0/commonapi/tests/ExtendedInterface.hpp | 54 + .../commonapi/tests/ExtendedInterfaceDBusProxy.cpp | 69 + .../commonapi/tests/ExtendedInterfaceDBusProxy.hpp | 61 + .../tests/ExtendedInterfaceDBusStubAdapter.cpp | 256 +++ .../tests/ExtendedInterfaceDBusStubAdapter.hpp | 223 +++ .../commonapi/tests/ExtendedInterfaceProxy.hpp | 157 ++ .../commonapi/tests/ExtendedInterfaceProxyBase.hpp | 50 + .../v1_0/commonapi/tests/ExtendedInterfaceStub.hpp | 108 ++ .../tests/ExtendedInterfaceStubDefault.cpp | 47 + .../tests/ExtendedInterfaceStubDefault.hpp | 67 + .../TestFreedesktopDerivedInterfaceDBusProxy.cpp | 51 + .../TestFreedesktopDerivedInterfaceDBusProxy.hpp | 66 + ...tFreedesktopDerivedInterfaceDBusStubAdapter.cpp | 215 +++ ...tFreedesktopDerivedInterfaceDBusStubAdapter.hpp | 161 ++ .../tests/TestFreedesktopInterfaceDBusProxy.cpp | 62 + .../tests/TestFreedesktopInterfaceDBusProxy.hpp | 74 + .../TestFreedesktopInterfaceDBusStubAdapter.cpp | 196 +++ .../TestFreedesktopInterfaceDBusStubAdapter.hpp | 129 ++ .../src-gen/v1_0/commonapi/tests/TestInterface.hpp | 52 + .../commonapi/tests/TestInterfaceDBusProxy.cpp | 266 +++ .../commonapi/tests/TestInterfaceDBusProxy.hpp | 92 + .../tests/TestInterfaceDBusStubAdapter.cpp | 436 +++++ .../tests/TestInterfaceDBusStubAdapter.hpp | 205 +++ .../v1_0/commonapi/tests/TestInterfaceProxy.hpp | 501 ++++++ .../commonapi/tests/TestInterfaceProxyBase.hpp | 98 ++ .../v1_0/commonapi/tests/TestInterfaceStub.hpp | 212 +++ .../commonapi/tests/TestInterfaceStubDefault.cpp | 268 +++ .../commonapi/tests/TestInterfaceStubDefault.hpp | 122 ++ .../commonapi/tests/managed/BranchInterface.cpp | 26 + .../commonapi/tests/managed/BranchInterface.hpp | 64 + .../tests/managed/BranchInterfaceDBusProxy.cpp | 71 + .../tests/managed/BranchInterfaceDBusProxy.hpp | 62 + .../managed/BranchInterfaceDBusStubAdapter.cpp | 102 ++ .../managed/BranchInterfaceDBusStubAdapter.hpp | 103 ++ .../tests/managed/BranchInterfaceProxy.hpp | 154 ++ .../tests/managed/BranchInterfaceProxyBase.hpp | 51 + .../tests/managed/BranchInterfaceStub.hpp | 106 ++ .../tests/managed/BranchInterfaceStubDefault.cpp | 51 + .../tests/managed/BranchInterfaceStubDefault.hpp | 67 + .../v1_0/commonapi/tests/managed/LeafInterface.cpp | 26 + .../v1_0/commonapi/tests/managed/LeafInterface.hpp | 64 + .../tests/managed/LeafInterfaceDBusProxy.cpp | 71 + .../tests/managed/LeafInterfaceDBusProxy.hpp | 62 + .../tests/managed/LeafInterfaceDBusStubAdapter.cpp | 102 ++ .../tests/managed/LeafInterfaceDBusStubAdapter.hpp | 103 ++ .../commonapi/tests/managed/LeafInterfaceProxy.hpp | 154 ++ .../tests/managed/LeafInterfaceProxyBase.hpp | 51 + .../commonapi/tests/managed/LeafInterfaceStub.hpp | 106 ++ .../tests/managed/LeafInterfaceStubDefault.cpp | 51 + .../tests/managed/LeafInterfaceStubDefault.hpp | 67 + .../v1_0/commonapi/tests/managed/RootInterface.cpp | 26 + .../v1_0/commonapi/tests/managed/RootInterface.hpp | 65 + .../tests/managed/RootInterfaceDBusProxy.cpp | 79 + .../tests/managed/RootInterfaceDBusProxy.hpp | 67 + .../tests/managed/RootInterfaceDBusStubAdapter.cpp | 222 +++ .../tests/managed/RootInterfaceDBusStubAdapter.hpp | 113 ++ .../commonapi/tests/managed/RootInterfaceProxy.hpp | 164 ++ .../tests/managed/RootInterfaceProxyBase.hpp | 56 + .../commonapi/tests/managed/RootInterfaceStub.hpp | 120 ++ .../tests/managed/RootInterfaceStubDefault.cpp | 92 + .../tests/managed/RootInterfaceStubDefault.hpp | 76 + .../v1_0/commonapi/tests/managed/SecondRoot.hpp | 55 + .../tests/managed/SecondRootDBusProxy.cpp | 52 + .../tests/managed/SecondRootDBusProxy.hpp | 63 + .../tests/managed/SecondRootDBusStubAdapter.cpp | 151 ++ .../tests/managed/SecondRootDBusStubAdapter.hpp | 104 ++ .../commonapi/tests/managed/SecondRootProxy.hpp | 129 ++ .../tests/managed/SecondRootProxyBase.hpp | 48 + .../commonapi/tests/managed/SecondRootStub.hpp | 109 ++ .../tests/managed/SecondRootStubDefault.cpp | 65 + .../tests/managed/SecondRootStubDefault.hpp | 71 + .../v1_0/fake/legacy/service/LegacyInterface.hpp | 54 + .../legacy/service/LegacyInterfaceDBusProxy.cpp | 110 ++ .../legacy/service/LegacyInterfaceDBusProxy.hpp | 66 + .../service/LegacyInterfaceDBusStubAdapter.cpp | 118 ++ .../service/LegacyInterfaceDBusStubAdapter.hpp | 113 ++ .../fake/legacy/service/LegacyInterfaceProxy.hpp | 211 +++ .../legacy/service/LegacyInterfaceProxyBase.hpp | 57 + .../fake/legacy/service/LegacyInterfaceStub.hpp | 112 ++ .../legacy/service/LegacyInterfaceStubDefault.cpp | 60 + .../legacy/service/LegacyInterfaceStubDefault.hpp | 69 + src/test/test-derived-types.fidl | 8 +- src/test/test-freedesktop-interface.fdepl | 9 +- src/test/test-freedesktop-interface.fidl | 8 +- src/test/test-interface-proxy.fidl | 8 +- src/test/test-predefined-types.fidl | 8 +- 366 files changed, 24374 insertions(+), 27403 deletions(-) create mode 100644 .cproject create mode 100644 .project create mode 100644 CMakeLists.txt delete mode 100644 CommonAPI-DBus-uninstalled.pc.in delete mode 100644 CommonAPI-DBus.pc.in create mode 100644 INSTALL delete mode 100644 Makefile.am delete mode 100644 README delete mode 100644 aminclude.am create mode 100644 cmake/CommonAPI-DBusConfig.cmake.in create mode 100644 cmake/CommonAPI-DBusConfigVersion.cmake.in create mode 100644 commonapi-dbus.spec.in delete mode 100644 configure.ac delete mode 100644 dbus-DBusMessage-add-support-for-custom-marshaling.patch delete mode 100644 doxygen.cfg create mode 100644 doxygen.in delete mode 100644 eclipse-code-style-formatter.xml create mode 100644 include/CommonAPI/DBus/DBusAddress.hpp create mode 100644 include/CommonAPI/DBus/DBusAddressTranslator.hpp create mode 100644 include/CommonAPI/DBus/DBusAttribute.hpp create mode 100644 include/CommonAPI/DBus/DBusClientId.hpp create mode 100644 include/CommonAPI/DBus/DBusConfig.hpp create mode 100644 include/CommonAPI/DBus/DBusConnection.hpp create mode 100644 include/CommonAPI/DBus/DBusDaemonProxy.hpp create mode 100644 include/CommonAPI/DBus/DBusDeployment.hpp create mode 100644 include/CommonAPI/DBus/DBusError.hpp create mode 100644 include/CommonAPI/DBus/DBusEvent.hpp create mode 100644 include/CommonAPI/DBus/DBusFactory.hpp create mode 100644 include/CommonAPI/DBus/DBusFreedesktopAttribute.hpp create mode 100644 include/CommonAPI/DBus/DBusFreedesktopPropertiesStub.hpp create mode 100644 include/CommonAPI/DBus/DBusFreedesktopStubAdapterHelper.hpp create mode 100644 include/CommonAPI/DBus/DBusFreedesktopVariant.hpp create mode 100644 include/CommonAPI/DBus/DBusFunctionalHash.hpp create mode 100644 include/CommonAPI/DBus/DBusHelper.hpp create mode 100644 include/CommonAPI/DBus/DBusInputStream.hpp create mode 100644 include/CommonAPI/DBus/DBusInstanceAvailabilityStatusChangedEvent.hpp create mode 100644 include/CommonAPI/DBus/DBusInterfaceHandler.hpp create mode 100644 include/CommonAPI/DBus/DBusMainLoopContext.hpp create mode 100644 include/CommonAPI/DBus/DBusMessage.hpp create mode 100644 include/CommonAPI/DBus/DBusMultiEvent.hpp create mode 100644 include/CommonAPI/DBus/DBusObjectManager.hpp create mode 100644 include/CommonAPI/DBus/DBusObjectManagerStub.hpp create mode 100644 include/CommonAPI/DBus/DBusOutputStream.hpp create mode 100644 include/CommonAPI/DBus/DBusProxy.hpp create mode 100644 include/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp create mode 100644 include/CommonAPI/DBus/DBusProxyBase.hpp create mode 100644 include/CommonAPI/DBus/DBusProxyConnection.hpp create mode 100644 include/CommonAPI/DBus/DBusProxyHelper.hpp create mode 100644 include/CommonAPI/DBus/DBusProxyManager.hpp create mode 100644 include/CommonAPI/DBus/DBusSelectiveEvent.hpp create mode 100644 include/CommonAPI/DBus/DBusSerializableArguments.hpp create mode 100644 include/CommonAPI/DBus/DBusServiceRegistry.hpp create mode 100644 include/CommonAPI/DBus/DBusStubAdapter.hpp create mode 100644 include/CommonAPI/DBus/DBusStubAdapterHelper.hpp create mode 100644 include/CommonAPI/DBus/DBusTypeOutputStream.hpp create mode 100644 include/CommonAPI/DBus/DBusTypes.hpp create mode 100644 include/CommonAPI/DBus/DBusUtils.hpp create mode 100644 include/murmurhash/MurmurHash3.h create mode 100644 include/pugixml/pugiconfig.hpp create mode 100644 include/pugixml/pugixml.hpp delete mode 100644 m4/ax_cxx_compile_stdcxx_11.m4 delete mode 100644 m4/ax_prog_doxygen.m4 create mode 100644 src/CommonAPI/DBus/DBusAddress.cpp delete mode 100644 src/CommonAPI/DBus/DBusAddressTranslator.h delete mode 100644 src/CommonAPI/DBus/DBusAttribute.h delete mode 100644 src/CommonAPI/DBus/DBusClientId.h delete mode 100644 src/CommonAPI/DBus/DBusConfiguration.cpp delete mode 100644 src/CommonAPI/DBus/DBusConfiguration.h delete mode 100644 src/CommonAPI/DBus/DBusConnection.h delete mode 100644 src/CommonAPI/DBus/DBusConnectionBusType.h delete mode 100644 src/CommonAPI/DBus/DBusDaemonProxy.h create mode 100644 src/CommonAPI/DBus/DBusDeployment.cpp delete mode 100644 src/CommonAPI/DBus/DBusError.h delete mode 100644 src/CommonAPI/DBus/DBusEvent.h delete mode 100644 src/CommonAPI/DBus/DBusFactory.h delete mode 100644 src/CommonAPI/DBus/DBusFreedesktopPropertiesStub.h delete mode 100644 src/CommonAPI/DBus/DBusFunctionalHash.h delete mode 100644 src/CommonAPI/DBus/DBusHelper.h delete mode 100644 src/CommonAPI/DBus/DBusInputStream.h delete mode 100644 src/CommonAPI/DBus/DBusInstanceAvailabilityStatusChangedEvent.h delete mode 100644 src/CommonAPI/DBus/DBusInterfaceHandler.h delete mode 100644 src/CommonAPI/DBus/DBusLegacyVariant.h delete mode 100644 src/CommonAPI/DBus/DBusMainLoopContext.h delete mode 100644 src/CommonAPI/DBus/DBusMessage.h delete mode 100644 src/CommonAPI/DBus/DBusMultiEvent.h delete mode 100644 src/CommonAPI/DBus/DBusObjectManager.h delete mode 100644 src/CommonAPI/DBus/DBusObjectManagerStub.h delete mode 100644 src/CommonAPI/DBus/DBusOutputStream.h delete mode 100644 src/CommonAPI/DBus/DBusProxy.h delete mode 100644 src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h delete mode 100644 src/CommonAPI/DBus/DBusProxyBase.h delete mode 100644 src/CommonAPI/DBus/DBusProxyConnection.h delete mode 100644 src/CommonAPI/DBus/DBusProxyHelper.h delete mode 100644 src/CommonAPI/DBus/DBusProxyManager.h delete mode 100644 src/CommonAPI/DBus/DBusRuntime.cpp delete mode 100644 src/CommonAPI/DBus/DBusRuntime.h delete mode 100644 src/CommonAPI/DBus/DBusSelectiveEvent.h delete mode 100644 src/CommonAPI/DBus/DBusSerializableArguments.h delete mode 100644 src/CommonAPI/DBus/DBusServicePublisher.cpp delete mode 100644 src/CommonAPI/DBus/DBusServicePublisher.h delete mode 100644 src/CommonAPI/DBus/DBusServiceRegistry.h delete mode 100644 src/CommonAPI/DBus/DBusStubAdapter.h delete mode 100644 src/CommonAPI/DBus/DBusStubAdapterHelper.h delete mode 100644 src/CommonAPI/DBus/DBusUtils.h create mode 100644 src/dbus-patches/capi-dbus-add-send-with-reply-set-notify.patch create mode 100644 src/dbus-patches/capi-dbus-add-support-for-custom-marshalling.patch delete mode 100644 src/murmurhash/MurmurHash3.h delete mode 100644 src/pugixml/pugiconfig.hpp delete mode 100644 src/pugixml/pugixml.hpp create mode 100644 src/test/CMakeLists.txt delete mode 100644 src/test/DBusNameCacheTest.cpp delete mode 100644 src/test/DBusSerializableStructTest.cpp delete mode 100644 src/test/DBusSerializableStructTest.h delete mode 100644 src/test/DBusTestUtils.h create mode 100644 src/test/DBusTestUtils.hpp delete mode 100644 src/test/DemoMainLoop.h create mode 100644 src/test/DemoMainLoop.hpp create mode 100644 src/test/README.txt create mode 100644 src/test/commonapi-dbus.ini delete mode 100644 src/test/commonapi/tests/DerivedTypeCollection.h create mode 100644 src/test/commonapi/tests/DerivedTypeCollection.hpp delete mode 100644 src/test/commonapi/tests/ExtendedInterface.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceStub.h delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/ExtendedInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/PredefinedTypeCollection.h create mode 100644 src/test/commonapi/tests/PredefinedTypeCollection.hpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterface.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceStub.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopDerivedInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterface.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceStub.h delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/TestFreedesktopInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/TestInterface.h delete mode 100644 src/test/commonapi/tests/TestInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/TestInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/TestInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/TestInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/TestInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/TestInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/TestInterfaceStub.h delete mode 100644 src/test/commonapi/tests/TestInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/TestInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterface.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceStub.h delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/managed/BranchInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterface.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceStub.h delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/managed/LeafInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/managed/RootInterface.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceDBusProxy.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceProxy.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceProxyBase.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceStub.h delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceStubDefault.cpp delete mode 100644 src/test/commonapi/tests/managed/RootInterfaceStubDefault.h delete mode 100644 src/test/commonapi/tests/managed/SecondRoot.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootDBusProxy.cpp delete mode 100644 src/test/commonapi/tests/managed/SecondRootDBusProxy.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp delete mode 100644 src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootProxy.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootProxyBase.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootStub.h delete mode 100644 src/test/commonapi/tests/managed/SecondRootStubDefault.cpp delete mode 100644 src/test/commonapi/tests/managed/SecondRootStubDefault.h delete mode 100644 src/test/fake/legacy/service/LegacyInterface.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceDBusProxy.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceDBusStubAdapter.cpp delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceDBusStubAdapter.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceProxy.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceProxyBase.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceStub.h delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceStubDefault.cpp delete mode 100644 src/test/fake/legacy/service/LegacyInterfaceStubDefault.h create mode 100644 src/test/src-gen/commonapi/tests/DerivedTypeCollection.cpp create mode 100644 src/test/src-gen/commonapi/tests/DerivedTypeCollection.hpp create mode 100644 src/test/src-gen/commonapi/tests/PredefinedTypeCollection.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterface.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/ExtendedInterfaceStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterface.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/TestInterfaceStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterface.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterface.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/BranchInterfaceStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterface.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterface.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/LeafInterfaceStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterface.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterface.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/RootInterfaceStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRoot.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootProxy.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootStub.hpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/commonapi/tests/managed/SecondRootStubDefault.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterface.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceDBusProxy.cpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceDBusProxy.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceDBusStubAdapter.cpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceDBusStubAdapter.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceProxy.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceProxyBase.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceStub.hpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceStubDefault.cpp create mode 100644 src/test/src-gen/v1_0/fake/legacy/service/LegacyInterfaceStubDefault.hpp diff --git a/.cproject b/.cproject new file mode 100644 index 0000000..df73099 --- /dev/null +++ b/.cproject @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cmake + -E chdir build/ cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=debug -D USE_INSTALLED_COMMONAPI=OFF ../ + + true + false + true + + + + diff --git a/.gitignore b/.gitignore index e2057f2..42ca389 100644 --- a/.gitignore +++ b/.gitignore @@ -1,63 +1,2 @@ -.deps -.dirstamp -.libs -*.gz -*.la -*.lo -*.log -*.o -*.trs -*~ -/.autotools -/.cproject -/.project -/.settings -/*.pc -/Makefile -/Makefile.in -/aclocal.m4 -/autom4te.cache -/build-aux -/config.log -/config.status -/configure -/doc -/libtool -/m4/libtool.m4 -/m4/lt*.m4 - -/DBusBroadcastTest -/DBusFreedesktopPropertiesTest -/DBusLoadTest -/DBusBenchmarkingTest -/DBusCommunicationTest -/DBusDaemonProxyTest -/DBusFactoryTest -/DBusInputStreamTest -/DBusMultipleConnectionTest -/DBusOutputStreamTest -/DBusProxyTest -/DBusRuntimeTest -/DBusTypeStreamTest -/DBusVariantOutputStreamTest -/DBusVariantTest -/DBusAddressTranslatorTest -/DBusServiceRegistryTest -/DBusClientIdTest -/DBusConnectionTest -/DBusMainLoopIntegrationTest -/DBusServicePublisherTest -/DBusDynamicLoadingMixedValidityTest -/DBusDynamicLoadingMultipleDefinitionTest -/DBusDynamicLoadingWithConfigTest -/DBusDynamicLoadingBasicTest -/DBusDynamicLoadingMultipleBindingsTest -/DBusDynamicLoadingNoValidityTest -/DBusObjectManagerStubTest -/DBusClientIdTest -/DBusSelectiveBroadcastTest -/DBusManagedTest -/DBusPolymorphicTest -/DBusBroadcastTest -/DBusFreedesktopPropertiesTest -/DBusLoadTest +/build/* +.settings/* \ No newline at end of file diff --git a/.project b/.project new file mode 100644 index 0000000..3a8657b --- /dev/null +++ b/.project @@ -0,0 +1,33 @@ + + + CommonAPI-D-Bus + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/AUTHORS b/AUTHORS index 2708c9d..632e479 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1 @@ -BMW Group \ No newline at end of file +Bayerische Motoren Werke Aktiengesellschaft (BMW AG) \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d23844a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,330 @@ +# Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +cmake_minimum_required (VERSION 2.8.1) + +PROJECT(libcommonapi-dbus) + +# version of CommonAPI-DBus +SET( LIBCOMMONAPI_DBUS_MAJOR_VERSION 3 ) +SET( LIBCOMMONAPI_DBUS_MINOR_VERSION 1 ) +SET( LIBCOMMONAPI_DBUS_PATCH_VERSION 1 ) + +message(STATUS "Project name: ${PROJECT_NAME}") + +set(COMPONENT_VERSION ${LIBCOMMONAPI_DBUS_MAJOR_VERSION}.${LIBCOMMONAPI_DBUS_MINOR_VERSION}.${LIBCOMMONAPI_DBUS_PATCH_VERSION}) +set(COMMONAPI_API_HEADER_VERSION ${LIBCOMMONAPI_DBUS_MAJOR_VERSION}.${LIBCOMMONAPI_DBUS_MINOR_VERSION}) # used in *.cmake.in + +SET(PACKAGE_VERSION "${COMPONENT_VERSION}") # used in *.cmake.in + +set(GTEST_ROOT "n/a" CACHE STRING "Path to root folder of googletest. Must be set for building the tests.") + +# OS +set(DL_LIBRARY "") +if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(DL_LIBRARY "dl") +endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + +############################################################################## + +# define standard installation path in case CMAKE_INSTALL_PREFIX is not set +if ("${CMAKE_INSTALL_PREFIX}" STREQUAL "") + SET(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +message(STATUS "CMAKE_INSTALL_PREFIX set to: ${CMAKE_INSTALL_PREFIX}") + +# create the commandline variables: +OPTION(BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON ) +message(STATUS "BUILD_SHARED_LIBS is set to value: ${BUILD_SHARED_LIBS}") + +OPTION(USE_INSTALLED_COMMONAPI "Set to OFF to use the local (build tree) version of CommonAPI" ON) +message(STATUS "USE_INSTALLED_COMMONAPI is set to value: ${USE_INSTALLED_COMMONAPI}") + +SET(RPM_PACKAGE_VERSION "r0" CACHE STRING "rpm packet version") # used in e.g. commonapi-dbus.spec.in + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING + "Choose the type of build, options are: Debug Release." FORCE) +endif(NOT CMAKE_BUILD_TYPE) + +set(CMAKE_BUILD_TYPE_FOR_SPEC_IN "") # used in *.cmake.in +string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_FOR_SPEC_IN) + +SET(BUILD_SERVER_COMMONAPI_INSTALL_PATH "na" CACHE STRING "CommonAPI install path on the build server") + +# Offer the user the choice of overriding the installation directories +set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries") +set(INSTALL_INCLUDE_DIR include/CommonAPI-${COMMONAPI_API_HEADER_VERSION} CACHE PATH "Installation directory for header files") +if(WIN32 AND NOT CYGWIN) + set(DEF_INSTALL_CMAKE_DIR cmake) +else() + set(DEF_INSTALL_CMAKE_DIR lib/cmake/CommonAPI-DBus-${COMPONENT_VERSION}) +endif() +set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files") + +# Make relative paths absolute (needed later on) +foreach(p LIB INCLUDE CMAKE) + set(var INSTALL_${p}_DIR) + if(NOT IS_ABSOLUTE "${${var}}") + set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}") + endif() +endforeach() + +message(STATUS "RPM packet version set to ${RPM_PACKAGE_VERSION}") + +SET(MAX_LOG_LEVEL "DEBUG" CACHE STRING "maximum log level") +message(STATUS "MAX_LOG_LEVEL is set to value: ${MAX_LOG_LEVEL}") + +##################### RPM CONFIG ######################## +SET( LICENSE "MPLv2" ) +######################################################### + +add_definitions( -DCOMMONAPI_DBUS_VERSION_MAJOR=${LIBCOMMONAPI_DBUS_MAJOR_VERSION} ) +add_definitions( -DCOMMONAPI_DBUS_VERSION_MINOR=${LIBCOMMONAPI_DBUS_MINOR_VERSION} ) + +message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") + +############################################################################## +# add COMMONAPI install path to cmake find root path + +if(NOT "${BUILD_SERVER_COMMONAPI_INSTALL_PATH}" STREQUAL "na") + set( CMAKE_FIND_ROOT_PATH ${BUILD_SERVER_COMMONAPI_INSTALL_PATH};${CMAKE_FIND_ROOT_PATH} ) +endif(NOT "${BUILD_SERVER_COMMONAPI_INSTALL_PATH}" STREQUAL "na") +message(STATUS "CMAKE_FIND_ROOT_PATH: ${CMAKE_FIND_ROOT_PATH}") + +FIND_PACKAGE(PkgConfig) +FIND_PACKAGE(Threads REQUIRED) +if ("${USE_INSTALLED_COMMONAPI}" STREQUAL "ON") + FIND_PACKAGE(CommonAPI 3.1.1 REQUIRED CONFIG NO_CMAKE_PACKAGE_REGISTRY) +else() + FIND_PACKAGE(CommonAPI 3.1.1 REQUIRED CONFIG NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH) +endif() + +message(STATUS "CommonAPI_CONSIDERED_CONFIGS: ${CommonAPI_CONSIDERED_CONFIGS}") +message(STATUS "COMMONAPI_INCLUDE_DIRS: ${COMMONAPI_INCLUDE_DIRS}") +message(STATUS "CommonAPI Version: ${CommonAPI_VERSION}") + +############################################################################### +# find DBus by using the 'pkg-config' tool +if (MSVC) + #Not beautiful, but it works + if (DBus_DIR) + if (DBus_BUILD_DIR) + set(DBus_INCLUDE_DIRS "${DBus_DIR};${DBus_BUILD_DIR};") + else () + message (FATAL_ERROR "DBus_BUILD_DIR not set! Cannot continue.") + endif () + else() + message (FATAL_ERROR "DBus_DIR not set! Cannot continue.") + endif () +else() + pkg_check_modules(DBus REQUIRED dbus-1>=1.4) +endif() + +############################################################################## + +# CommonAPI-DBus build section + +if (MSVC) +# Visual C++ is not always sure whether he is really C++ +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS -DCOMMONAPI_INTERNAL_COMPILATION -DCOMMONAPI_DLL_COMPILATION /EHsc /wd\\\"4503\\\"") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -DCOMMONAPI_INTERNAL_COMPILATION -DCOMMONAPI_DLL_COMPILATION /wd\\\"4503\\\"") +else() +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -DCOMMONAPI_INTERNAL_COMPILATION -D_GLIBCXX_USE_NANOSLEEP") +endif() + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCOMMONAPI_LOGLEVEL=COMMONAPI_LOGLEVEL_${MAX_LOG_LEVEL}") + +message(STATUS "Compiler options: ${CMAKE_CXX_FLAGS}") + +include_directories( + include + ${COMMONAPI_INCLUDE_DIRS} + ${DBus_INCLUDE_DIRS} +) + +# DBus source files +file(GLOB CAPIDB_SRCS "src/CommonAPI/DBus/*.cpp") + +# pugixml source files +file(GLOB PUGIXML_SRCS "src/pugixml/*.cpp") + +# murmurhash source files +file(GLOB MMHASH_SRCS "src/murmurhash/*.cpp") + +# CommonAPI-DBus library +add_library(CommonAPI-DBus ${CAPIDB_SRCS} ${PUGIXML_SRCS} ${MMHASH_SRCS}) + +if(MSVC) +#workaround since pkg-config on windows doesn't work easily +target_link_libraries(CommonAPI-DBus CommonAPI debug ${DBus_BUILD_DIR}/bin/Debug/dbus-1d.lib optimized ${DBus_BUILD_DIR}/bin/Release/dbus-1.lib) +else() +target_link_libraries(CommonAPI-DBus CommonAPI dbus-1) +endif() + +set_target_properties(CommonAPI-DBus PROPERTIES VERSION ${LIBCOMMONAPI_DBUS_MAJOR_VERSION}.${LIBCOMMONAPI_DBUS_MINOR_VERSION}.${LIBCOMMONAPI_DBUS_PATCH_VERSION} SOVERSION ${LIBCOMMONAPI_DBUS_MAJOR_VERSION} LINKER_LANGUAGE C) + +############################################################################## + +# configure files + +CONFIGURE_FILE(commonapi-dbus.spec.in commonapi-dbus.spec) + +############################################################################## +# installing files + +# for installation of CommonAPI header files +file (GLOB_RECURSE CommonAPI-DBus_INCLUDE_INSTALL_FILES "include/CommonAPI/DBus/*.hpp") +set_target_properties (CommonAPI-DBus PROPERTIES PUBLIC_HEADER "${CommonAPI-DBus_INCLUDE_INSTALL_FILES}") + +# install CommonAPI-DBus library including headers +install(TARGETS CommonAPI-DBus + EXPORT CommonAPI-DBusTargets + LIBRARY DESTINATION ${INSTALL_LIB_DIR} + ARCHIVE DESTINATION ${INSTALL_LIB_DIR} + PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/CommonAPI/DBus" +) + +# install pugixml header files +install(FILES include/pugixml/pugiconfig.hpp DESTINATION ${INSTALL_INCLUDE_DIR}/pugixml) +install(FILES include/pugixml/pugixml.hpp DESTINATION ${INSTALL_INCLUDE_DIR}/pugixml) + +############################################################################## +# exporting, configuring and installing of cmake files + +# Add all targets to the build-tree export set +export(TARGETS CommonAPI-DBus + FILE "${PROJECT_BINARY_DIR}/CommonAPI-DBusTargets.cmake") + +# Export the package for use from the build-tree +# (this registers the build-tree with a global CMake-registry) +export(PACKAGE CommonAPI-DBus) + +# Create the CommonAPI-DBusConfig.cmake and CommonAPI-DBusConfigVersion files ... +file(RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}" "${INSTALL_INCLUDE_DIR}") + +# ... for the build tree +set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include") +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CommonAPI-DBusConfig.cmake.in + "${PROJECT_BINARY_DIR}/CommonAPI-DBusConfig.cmake" @ONLY) + +# ... for the install tree +set(CONF_INCLUDE_DIRS "\${COMMONAPI_DBUS_CMAKE_DIR}/${REL_INCLUDE_DIR}") +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CommonAPI-DBusConfig.cmake.in + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CommonAPI-DBusConfig.cmake" @ONLY) + +# ... for both +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CommonAPI-DBusConfigVersion.cmake.in + "${PROJECT_BINARY_DIR}/CommonAPI-DBusConfigVersion.cmake" @ONLY) + +# Install the CommonAPI-DBusConfig.cmake and CommonAPI-DBusConfigVersion.cmake +install(FILES + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CommonAPI-DBusConfig.cmake" + "${PROJECT_BINARY_DIR}/CommonAPI-DBusConfigVersion.cmake" + DESTINATION "${INSTALL_CMAKE_DIR}") + +# Install the export set for use with the install-tree +install(EXPORT CommonAPI-DBusTargets DESTINATION + "${INSTALL_CMAKE_DIR}") + +############################################################################## +# maintainer-clean +add_custom_target(maintainer-clean COMMAND rm -rf *) + +############################################################################## +# dist +add_custom_target(dist + COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && git archive --format=tar.gz ${COMPONENT_VERSION} -o CommonAPI${COMPONENT_VERSION}.tar.gz +) + +############################################################################## +# build documentation +FIND_PACKAGE(Doxygen) +FIND_PROGRAM(ASCIIDOC_PATH asciidoc) +if (NOT DOXYGEN_FOUND) + message(STATUS "Doxygen is not installed. Documentation can not be built.") +else() + # set configuration variables for doxygen.in + set(PROJECT "GENIVI IPC Common API DBus C++") + set(DOCDIR doc) + set(SRCDIR .) + set(GENERATE_HTML YES) + set(GENERATE_HTMLHELP NO) + set(GENERATE_CHI NO) + set(GENERATE_LATEX NO) + set(GENERATE_PDF NO) + set(GENERATE_RTF NO) + set(GENERATE_MAN NO) + set(GENERATE_XML NO) + + configure_file(doxygen.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY) + + add_custom_target(doc) + + add_custom_target(doxygen-doc + COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile + SOURCES ${PROJECT_BINARY_DIR}/Doxyfile) + + add_dependencies(doc doxygen-doc) + + if ("${ASCIIDOC_PATH}" STREQUAL "ASCIIDOC_PATH-NOTFOUND") + message(STATUS "asciidoc is not installed. Readme can not be built.") + else() + message(STATUS "asciidoc found") + add_custom_command(TARGET doc + POST_BUILD + COMMAND asciidoc + -a version=${PACKAGE_VERSION} + -b html + -o doc/html/README.html + ${PROJECT_BINARY_DIR}/../README) + endif() +endif() + +############################################################################## +# Test section +############################################################################## + +############################################################################## +# google test + +# check for set environment variable +if(${GTEST_ROOT} STREQUAL "n/a") + message(STATUS "GTEST_ROOT is not defined. For building the tests environment variable + GTEST_ROOT has to be defined. Tests can not be built.") + # early exit + return() # test can not be build -> make commands build_tests and check are not available +else() + message(STATUS "GTEST_ROOT is set. gtest root path set to ${GTEST_ROOT}") +endif() + +# build google test as static library (always) -> therefore deactivate BUILD_SHARED_LIBS in case it is active +set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 0) +if ("${BUILD_SHARED_LIBS}" STREQUAL "ON") + set(BUILD_SHARED_LIBS OFF) + set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 1) +endif() +add_subdirectory(${GTEST_ROOT} ${CMAKE_CURRENT_BINARY_DIR}/gtest EXCLUDE_FROM_ALL) +if ("${BUILD_SHARED_LIBS_AUTOMATIC_OFF}" STREQUAL "1") + set(BUILD_SHARED_LIBS ON) + set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 0) +endif() + +############################################################################## +# build tests + +enable_testing() + +add_custom_target(build_tests) + +set(CMAKE_CTEST_COMMAND ctest -V) +add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) + +add_dependencies(check build_tests) + +############################################################################## +# add test directory + +add_subdirectory( src/test EXCLUDE_FROM_ALL ) diff --git a/CommonAPI-DBus-uninstalled.pc.in b/CommonAPI-DBus-uninstalled.pc.in deleted file mode 100644 index 17b4cc8..0000000 --- a/CommonAPI-DBus-uninstalled.pc.in +++ /dev/null @@ -1,13 +0,0 @@ -abs_top_builddir=@abs_top_builddir@ -abs_top_srcdir=@abs_top_srcdir@ -prefix=${abs_top_srcdir} -exec_prefix=${prefix} -includedir=${prefix}/src -libdir=${exec_prefix}/.libs - -Name: Common API C++ D-Bus Middleware -Description: GENIVI Common API C++ D-Bus Middleware (uninstalled copy) -Version: @PACKAGE_VERSION@ -Requires: CommonAPI dbus-1 -Libs: -Wl,--whole-archive ${abs_top_builddir}/libCommonAPI-DBus.la -Wl,--no-whole-archive -Cflags: -I${abs_top_srcdir}/src \ No newline at end of file diff --git a/CommonAPI-DBus.pc.in b/CommonAPI-DBus.pc.in deleted file mode 100644 index c7cba59..0000000 --- a/CommonAPI-DBus.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: Common API C++ D-Bus Middleware -Description: GENIVI Common API C++ D-Bus Middleware -Version: @PACKAGE_VERSION@ -Requires: CommonAPI dbus-1 -Libs: -L${libdir} -Wl,--no-as-needed -lCommonAPI-DBus -Wl,--as-needed -Cflags: -I${includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@ \ No newline at end of file diff --git a/CommonAPI-DBus.sln b/CommonAPI-DBus.sln index 19e7547..d48b6fc 100644 --- a/CommonAPI-DBus.sln +++ b/CommonAPI-DBus.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2013 for Windows Desktop -VisualStudioVersion = 12.0.21005.1 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CommonAPI-DBus", "CommonAPI-DBus.vcxproj", "{D3B0744D-2A3E-4C36-9AA0-534D6BD5A44C}" EndProject @@ -10,6 +10,19 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UnitTests", "UnitTests.vcxp {D3B0744D-2A3E-4C36-9AA0-534D6BD5A44C} = {D3B0744D-2A3E-4C36-9AA0-534D6BD5A44C} EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Temp", "Temp", "{04DC3156-3D34-4F00-9A14-77D360BA3384}" + ProjectSection(SolutionItems) = preProject + src\test\DBusInputStreamTest.cpp = src\test\DBusInputStreamTest.cpp + src\test\DBusMainLoopIntegrationTest.cpp = src\test\DBusMainLoopIntegrationTest.cpp + src\test\DBusManagedTest.cpp = src\test\DBusManagedTest.cpp + src\test\DBusObjectManagerStubTest.cpp = src\test\DBusObjectManagerStubTest.cpp + src\test\DBusRuntimeTest.cpp = src\test\DBusRuntimeTest.cpp + src\test\DBusServiceRegistryTest.cpp = src\test\DBusServiceRegistryTest.cpp + src\test\DBusStubAdapterTest.cpp = src\test\DBusStubAdapterTest.cpp + src\test\DBusTypeStreamTest.cpp = src\test\DBusTypeStreamTest.cpp + src\test\DBusVariantOutputStreamTest.cpp = src\test\DBusVariantOutputStreamTest.cpp + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 diff --git a/CommonAPI-DBus.vcxproj b/CommonAPI-DBus.vcxproj index 8fb18c3..6ee29b5 100644 --- a/CommonAPI-DBus.vcxproj +++ b/CommonAPI-DBus.vcxproj @@ -10,6 +10,76 @@ Win32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {D3B0744D-2A3E-4C36-9AA0-534D6BD5A44C} CommonAPIDBus @@ -50,7 +120,7 @@ MultiThreadedDebugDLL OldStyle 4996;%(DisableSpecificWarnings) - $(COMMONAPI_DIR)\src;$(DBUS_BUILD_DIR);$(DBUS_DIR);$(SolutionDir)\src;%(AdditionalIncludeDirectories) + include;$(DBUS_BUILD_DIR);$(DBUS_DIR);$(COMMONAPI_DIR)\include;%(AdditionalIncludeDirectories) false @@ -78,74 +148,6 @@ true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..4ef692b --- /dev/null +++ b/INSTALL @@ -0,0 +1,68 @@ += IPC CommonAPI D-Bus C++ + +:doctitle: IPC CommonAPI C++ +:version: + +== Copyright +Copyright (C) 2015, Bayerische Motoren Werke Aktiengesellschaft (BMW AG). +Copyright (C) 2015, GENIVI Alliance, Inc. + +This file is part of GENIVI Project IPC Common API C++. + +Contributions are licensed to the GENIVI Alliance under one or more Contribution License Agreements or MPL 2.0. + +== License +This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. + +== Version +{version} + +== CommonAPI D-Bus C++ User Guide +The user guide can be found in the documentation directory of the CommonAPI-D-Bus-Tools project. + +== Further information +Source code and latest news can be found at http://projects.genivi.org/commonapi/. + +== Build Instructions for Linux + +=== Patching libdbus + +CommonAPI-D-Bus needs some api functions of libdbus which are not available in actual libdbus versions. For these additional api functions it is necessary to patch the required libdbus version with the patches in the directory src/dbus-patches. Use autotools to build libdbus. + +---- +$ wget http://dbus.freedesktop.org/releases/dbus/dbus-.tar.gz +$ tar -xzf dbus-.tar.gz +$ cd dbus- +$ patch -p1 < .patch +$ ./configure --prefix=/usr/local +$ make -C dbus +$ sudo make -C dbus install +$ sudo make install-pkgconfigDATA +---- + +You can change the installation directory by the prefix option or you can let it uninstalled (skip the +make install+ commands). + +=== Build CommonAPI-D-Bus Runtime + +In order to build the CommonAPI-D-Bus Runtime library the pkgconfig files of the patched libdbus library must be added to the +PKG_CONFIG_PATH+. + +For example, if the patched libdbus library is available in /usr/local, set the +PKG_CONFIG_PATH+ variable as follows: + +---- +$ export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +---- + +Now use CMake to build the CommonAPI D-Bus runtime library. We assume that your source directory is +common-api-dbus-runtime+: + +---- +$ cd common-api-dbus-runtime +$ mkdir build +$ cd build +$ cmake -D USE_INSTALLED_COMMONAPI=ON -D CMAKE_INSTALL_PREFIX=/usr/local .. +$ make +$ make install +---- + +You can change the installation directory by the CMake variable +CMAKE_INSTALL_PREFIX+ or you can let it uninstalled (skip the +make install+ command). If you want to use the uninstalled version of CommonAPI set the CMake variable USE_INSTALLED_COMMONAPI to OFF. + +For further build instructions (build for windows, build documentation, tests etc.) please refer to the CommonAPI D-Bus tutorial. \ No newline at end of file diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 66e8f1c..0000000 --- a/Makefile.am +++ /dev/null @@ -1,448 +0,0 @@ -ACLOCAL_AMFLAGS = -I m4 - -EXTRA_DIST = LICENSE LICENSE_dbus_patch LICENSE_MurmurHash -MOSTLYCLEANFILES = - -# Library interface (not package version!) -LIBCOMMONAPI_DBUS_CURRENT=3 -LIBCOMMONAPI_DBUS_REVISION=1 -LIBCOMMONAPI_DBUS_AGE=0 - -AM_CPPFLAGS = \ - -include $(top_builddir)/build-aux/config.h \ - -I$(top_srcdir)/src \ - -I$(top_srcdir)/src/test \ - ${COMMONAPI_CFLAGS} \ - ${DBUS_CFLAGS} \ - -DCOMMONAPI_INTERNAL_COMPILATION \ - -DCOMMONAPI_DBUS_VERSION_MAJOR=${LIBCOMMONAPI_DBUS_CURRENT} \ - -DCOMMONAPI_DBUS_VERSION_MINOR=${LIBCOMMONAPI_DBUS_REVISION} - - -AM_LDFLAGS = \ - ${COMMONAPI_LIBS} \ - ${DBUS_LIBS} - -noinst_LTLIBRARIES = -lib_LTLIBRARIES = - -# ------------------------------------------------------------------------------ -noinst_LTLIBRARIES += libmurmurhash-internal.la - -libmurmurhash_internal_la_SOURCES = \ - src/murmurhash/MurmurHash3.h \ - src/murmurhash/MurmurHash3.cpp - -# ------------------------------------------------------------------------------ -noinst_LTLIBRARIES += libpugixml-internal.la - -libpugixml_internal_la_SOURCES = \ - src/pugixml/pugiconfig.hpp \ - src/pugixml/pugixml.cpp \ - src/pugixml/pugixml.hpp -# ------------------------------------------------------------------------------ -lib_LTLIBRARIES += libCommonAPI-DBus.la - -libCommonAPI_DBus_la_SOURCES = \ - src/CommonAPI/DBus/DBusAddressTranslator.cpp \ - src/CommonAPI/DBus/DBusClientId.cpp \ - src/CommonAPI/DBus/DBusConfiguration.cpp \ - src/CommonAPI/DBus/DBusConnection.cpp \ - src/CommonAPI/DBus/DBusDaemonProxy.cpp \ - src/CommonAPI/DBus/DBusError.cpp \ - src/CommonAPI/DBus/DBusFreedesktopPropertiesStub.cpp \ - src/CommonAPI/DBus/DBusFunctionalHash.cpp \ - src/CommonAPI/DBus/DBusInputStream.cpp \ - src/CommonAPI/DBus/DBusMainLoopContext.cpp \ - src/CommonAPI/DBus/DBusMessage.cpp \ - src/CommonAPI/DBus/DBusObjectManager.cpp \ - src/CommonAPI/DBus/DBusObjectManagerStub.cpp \ - src/CommonAPI/DBus/DBusOutputStream.cpp \ - src/CommonAPI/DBus/DBusProxyBase.cpp \ - src/CommonAPI/DBus/DBusProxy.cpp \ - src/CommonAPI/DBus/DBusProxyManager.cpp \ - src/CommonAPI/DBus/DBusFactory.cpp \ - src/CommonAPI/DBus/DBusRuntime.cpp \ - src/CommonAPI/DBus/DBusServicePublisher.cpp \ - src/CommonAPI/DBus/DBusServiceRegistry.cpp \ - src/CommonAPI/DBus/DBusStubAdapter.cpp - -libCommonAPI_DBus_la_LIBADD = \ - libmurmurhash-internal.la \ - libpugixml-internal.la \ - ${COMMONAPI_LIBS} -libCommonAPI_DBus_la_LDFLAGS = \ - ${AM_LDFLAGS} \ - -version-info ${LIBCOMMONAPI_DBUS_CURRENT}:${LIBCOMMONAPI_DBUS_REVISION}:${LIBCOMMONAPI_DBUS_AGE} - -CommonAPI_DBus_pugi_includedir=$(includedir)/CommonAPI-${COMMONAPI_API_HEADER_VERSION}/pugixml -CommonAPI_DBus_pugi_include_HEADERS = \ - src/pugixml/pugixml.hpp \ - src/pugixml/pugiconfig.hpp - -CommonAPI_DBus_includedir=$(includedir)/CommonAPI-${COMMONAPI_API_HEADER_VERSION}/CommonAPI/DBus -CommonAPI_DBus_include_HEADERS = \ - src/CommonAPI/DBus/DBusAddressTranslator.h \ - src/CommonAPI/DBus/DBusAttribute.h \ - src/CommonAPI/DBus/DBusClientId.h \ - src/CommonAPI/DBus/DBusConfiguration.h \ - src/CommonAPI/DBus/DBusConnection.h \ - src/CommonAPI/DBus/DBusConnectionBusType.h \ - src/CommonAPI/DBus/DBusDaemonProxy.h \ - src/CommonAPI/DBus/DBusError.h \ - src/CommonAPI/DBus/DBusEvent.h \ - src/CommonAPI/DBus/DBusFreedesktopPropertiesStub.h \ - src/CommonAPI/DBus/DBusFunctionalHash.h \ - src/CommonAPI/DBus/DBusHelper.h \ - src/CommonAPI/DBus/DBusInputStream.h \ - src/CommonAPI/DBus/DBusInstanceAvailabilityStatusChangedEvent.h \ - src/CommonAPI/DBus/DBusInterfaceHandler.h \ - src/CommonAPI/DBus/DBusMainLoopContext.h \ - src/CommonAPI/DBus/DBusMessage.h \ - src/CommonAPI/DBus/DBusMultiEvent.h \ - src/CommonAPI/DBus/DBusObjectManager.h \ - src/CommonAPI/DBus/DBusObjectManagerStub.h \ - src/CommonAPI/DBus/DBusOutputStream.h \ - src/CommonAPI/DBus/DBusProxyBase.h \ - src/CommonAPI/DBus/DBusProxy.h \ - src/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.h \ - src/CommonAPI/DBus/DBusProxyConnection.h \ - src/CommonAPI/DBus/DBusProxyManager.h \ - src/CommonAPI/DBus/DBusFactory.h \ - src/CommonAPI/DBus/DBusProxyHelper.h \ - src/CommonAPI/DBus/DBusRuntime.h \ - src/CommonAPI/DBus/DBusSelectiveEvent.h \ - src/CommonAPI/DBus/DBusSerializableArguments.h \ - src/CommonAPI/DBus/DBusServicePublisher.h \ - src/CommonAPI/DBus/DBusServiceRegistry.h \ - src/CommonAPI/DBus/DBusStubAdapter.h \ - src/CommonAPI/DBus/DBusStubAdapterHelper.h \ - src/CommonAPI/DBus/DBusUtils.h \ - src/CommonAPI/DBus/DBusLegacyVariant.h - -pkgconfigdir = ${libdir}/pkgconfig -pkgconfig_DATA = CommonAPI-DBus.pc - -# ------------------------------------------------------------------------------ -if ENABLE_TESTS - -lib_LTLIBRARIES += libCommonAPI-Fake.la - -libCommonAPI_Fake_la_SOURCES = \ - src/test/dbusDynamicLoadingTests/fakeTestBinding/FakeBinding.cpp - -libCommonAPI_Fake_la_LIBADD = \ - ${COMMONAPI_LIBS} -libCommonAPI_Fake_la_LDFLAGS = \ - ${AM_LDFLAGS} \ - -version-info 1:0:0 - -CommonAPI_Fake_includedir=$(includedir)/CommonAPI-${COMMONAPI_API_HEADER_VERSION}/CommonAPI/Fake -CommonAPI_Fake_include_HEADERS = \ - src/test/dbusDynamicLoadingTests/fakeTestBinding/FakeBinding.h - -TestInterfaceSources = \ - src/test/commonapi/tests/DerivedTypeCollection.cpp \ - src/test/commonapi/tests/TestInterfaceStubDefault.cpp - -TestInterfaceDBusSources = \ - ${TestInterfaceSources} \ - src/test/commonapi/tests/TestInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/TestInterfaceDBusStubAdapter.cpp \ - src/test/fake/legacy/service/LegacyInterfaceDBusProxy.cpp - -FreedesktopPropertiesDBusSources = \ - ${TestInterfaceSources} \ - src/test/commonapi/tests/TestFreedesktopInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/TestFreedesktopInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/TestFreedesktopInterfaceStubDefault.cpp \ - src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/TestFreedesktopDerivedInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/TestFreedesktopDerivedInterfaceStubDefault.cpp - -ManagedSources = \ - src/test/commonapi/tests/managed/LeafInterfaceStubDefault.cpp \ - src/test/commonapi/tests/managed/BranchInterfaceStubDefault.cpp \ - src/test/commonapi/tests/managed/RootInterfaceStubDefault.cpp \ - src/test/commonapi/tests/managed/SecondRootStubDefault.cpp - -ManagedDBusSources = \ - ${ManagedSources} \ - src/test/commonapi/tests/managed/RootInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/managed/RootInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/managed/LeafInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/managed/LeafInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/managed/BranchInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/managed/BranchInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/managed/SecondRootDBusProxy.cpp \ - src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.cpp - -ExtendedInterfaceSources = \ - src/test/commonapi/tests/ExtendedInterfaceDBusProxy.cpp \ - src/test/commonapi/tests/ExtendedInterfaceDBusStubAdapter.cpp \ - src/test/commonapi/tests/ExtendedInterfaceStubDefault.cpp - -lib_LTLIBRARIES += libDBusGen-TestInterface.la -libDBusGen_TestInterface_la_SOURCES = \ - ${TestInterfaceDBusSources} -libDBusGen_TestInterface_la_LIBADD = \ - ${COMMONAPI_LIBS} -libDBusGen_TestInterface_la_LDFLAGS = \ - ${AM_LDFLAGS} - -lib_LTLIBRARIES += libSomeOtherNameForGeneratedDBus.la -libSomeOtherNameForGeneratedDBus_la_SOURCES = \ - ${TestInterfaceDBusSources} -libSomeOtherNameForGeneratedDBus_la_LIBADD = \ - ${COMMONAPI_LIBS} -libSomeOtherNameForGeneratedDBus_la_LDFLAGS = \ - ${AM_LDFLAGS} - - -DYNAMIC_LOADING_TEST_SET = \ - DBusDynamicLoadingBasicTest \ - DBusDynamicLoadingMixedValidityTest \ - DBusDynamicLoadingNoValidityTest \ - DBusDynamicLoadingMultipleDefinitionTest \ - DBusDynamicLoadingMultipleBindingsTest - -check_PROGRAMS = \ - DBusManagedTest \ - DBusObjectManagerStubTest \ - DBusRuntimeTest \ - ${DYNAMIC_LOADING_TEST_SET} \ - DBusMainLoopIntegrationTest \ - DBusConnectionTest \ - DBusServiceRegistryTest \ - DBusProxyTest \ - DBusAddressTranslatorTest \ - DBusInputStreamTest \ - DBusOutputStreamTest \ - DBusFactoryTest \ - DBusVariantTest \ - DBusTypeStreamTest \ - DBusVariantOutputStreamTest \ - DBusDaemonProxyTest \ - DBusCommunicationTest \ - DBusMultipleConnectionTest \ - DBusServicePublisherTest \ - DBusClientIdTest \ - DBusBroadcastTest \ - DBusPolymorphicTest \ - DBusLoadTest \ - DBusFreedesktopPropertiesTest - -noinst_PROGRAMS = ${check_PROGRAMS} -TESTS = ${check_PROGRAMS} - -LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS = ${GTEST_LIBS} ${LDADD} -LDADD_FOR_GTEST = libCommonAPI-DBus.la ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusManagedTest_SOURCES = \ - src/test/DBusManagedTest.cpp \ - ${ManagedDBusSources} -DBusManagedTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} ${GLIB_CFLAGS} -DBusManagedTest_CXXFLAGS = ${GTEST_CXXFLAGS} ${GLIB_CFLAGS} -DBusManagedTest_LDADD = ${LDADD_FOR_GTEST} ${GLIB_LIBS} - -DBusObjectManagerStubTest_SOURCES = src/test/DBusObjectManagerStubTest.cpp -DBusObjectManagerStubTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusObjectManagerStubTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusObjectManagerStubTest_LDADD = ${LDADD_FOR_GTEST} - -DBusMainLoopIntegrationTest_SOURCES = \ - src/test/DBusMainLoopIntegrationTest.cpp \ - ${TestInterfaceDBusSources} -DBusMainLoopIntegrationTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} ${GLIB_CFLAGS} -DBusMainLoopIntegrationTest_CXXFLAGS = ${GTEST_CXXFLAGS} ${GLIB_CFLAGS} -DBusMainLoopIntegrationTest_LDADD = ${LDADD_FOR_GTEST} ${GLIB_LIBS} - -DBusServiceRegistryTest_SOURCES = \ - src/test/DBusServiceRegistryTest.cpp \ - ${TestInterfaceDBusSources} -DBusServiceRegistryTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusServiceRegistryTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusServiceRegistryTest_LDADD = ${LDADD_FOR_GTEST} - -DBusAddressTranslatorTest_SOURCES = \ - src/test/DBusAddressTranslatorTest.cpp \ - ${TestInterfaceDBusSources} -DBusAddressTranslatorTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusAddressTranslatorTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusAddressTranslatorTest_LDADD = ${LDADD_FOR_GTEST} - -DBusConnectionTest_SOURCES = src/test/DBusConnectionTest.cpp -DBusConnectionTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusConnectionTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusConnectionTest_LDADD = ${LDADD_FOR_GTEST} - -DBusTypeStreamTest_SOURCES = src/test/DBusTypeStreamTest.cpp -DBusTypeStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusTypeStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusTypeStreamTest_LDADD = ${LDADD_FOR_GTEST} - -DBusVariantOutputStreamTest_SOURCES = src/test/DBusVariantOutputStreamTest.cpp -DBusVariantOutputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusVariantOutputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusVariantOutputStreamTest_LDADD = ${LDADD_FOR_GTEST} - -DBusCommunicationTest_SOURCES = \ - src/test/DBusCommunicationTest.cpp \ - ${TestInterfaceDBusSources} -DBusCommunicationTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusCommunicationTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusCommunicationTest_LDADD = ${LDADD_FOR_GTEST} - -DBusDaemonProxyTest_SOURCES = src/test/DBusDaemonProxyTest.cpp -DBusDaemonProxyTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDaemonProxyTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDaemonProxyTest_LDADD = ${LDADD_FOR_GTEST} - -DBusInputStreamTest_SOURCES = \ - src/test/DBusInputStreamTest.cpp \ - ${TestInterfaceDBusSources} -DBusInputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusInputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusInputStreamTest_LDADD = ${LDADD_FOR_GTEST} - -DBusOutputStreamTest_SOURCES = \ - src/test/DBusOutputStreamTest.cpp \ - ${TestInterfaceDBusSources} -DBusOutputStreamTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusOutputStreamTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusOutputStreamTest_LDADD = ${LDADD_FOR_GTEST} - -DBusFactoryTest_SOURCES = \ - src/test/DBusFactoryTest.cpp \ - ${TestInterfaceDBusSources} -DBusFactoryTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusFactoryTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusFactoryTest_LDADD = ${LDADD_FOR_GTEST} - -DBusMultipleConnectionTest_SOURCES = \ - src/test/DBusMultipleConnectionTest.cpp \ - ${TestInterfaceDBusSources} -DBusMultipleConnectionTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusMultipleConnectionTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusMultipleConnectionTest_LDADD = ${LDADD_FOR_GTEST} - -DBusProxyTest_SOURCES = \ - src/test/DBusProxyTest.cpp \ - ${TestInterfaceDBusSources} \ - ${ExtendedInterfaceSources} -DBusProxyTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusProxyTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusProxyTest_LDADD = ${LDADD_FOR_GTEST} - -DBusFreedesktopPropertiesTest_SOURCES = \ - src/test/DBusFreedesktopPropertiesTest.cpp \ - ${FreedesktopPropertiesDBusSources} -DBusFreedesktopPropertiesTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusFreedesktopPropertiesTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusFreedesktopPropertiesTest_LDADD = ${LDADD_FOR_GTEST} - -DBusServicePublisherTest_SOURCES = \ - src/test/DBusServicePublisherTest.cpp \ - ${TestInterfaceDBusSources} -DBusServicePublisherTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusServicePublisherTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusServicePublisherTest_LDADD = ${LDADD_FOR_GTEST} - -DBusVariantTest_SOURCES = src/test/DBusVariantTest.cpp -DBusVariantTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusVariantTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusVariantTest_LDADD = ${LDADD_FOR_GTEST} - -DBusRuntimeTest_SOURCES = src/test/DBusRuntimeTest.cpp -DBusRuntimeTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusRuntimeTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusRuntimeTest_LDADD = ${LDADD_FOR_GTEST} - -DBusDynamicLoadingBasicTest_SOURCES = \ - ${TestInterfaceSources} \ - src/test/dbusDynamicLoadingTests/DBusDynamicLoadingBasicTest.cpp -DBusDynamicLoadingBasicTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDynamicLoadingBasicTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDynamicLoadingBasicTest_LDADD = ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusDynamicLoadingMultipleDefinitionTest_SOURCES = \ - ${TestInterfaceSources} \ - src/test/dbusDynamicLoadingTests/DBusDynamicLoadingMultipleDefinitionTest.cpp -DBusDynamicLoadingMultipleDefinitionTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDynamicLoadingMultipleDefinitionTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDynamicLoadingMultipleDefinitionTest_LDADD = ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusDynamicLoadingMultipleBindingsTest_SOURCES = \ - ${TestInterfaceSources} \ - src/test/dbusDynamicLoadingTests/DBusDynamicLoadingMultipleBindingsTest.cpp -DBusDynamicLoadingMultipleBindingsTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDynamicLoadingMultipleBindingsTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDynamicLoadingMultipleBindingsTest_LDADD = ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusDynamicLoadingMixedValidityTest_SOURCES = \ - ${TestInterfaceSources} \ - src/test/dbusDynamicLoadingTests/DBusDynamicLoadingMixedValidityTest.cpp -DBusDynamicLoadingMixedValidityTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDynamicLoadingMixedValidityTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDynamicLoadingMixedValidityTest_LDADD = ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusDynamicLoadingNoValidityTest_SOURCES = \ - ${TestInterfaceSources} \ - src/test/dbusDynamicLoadingTests/DBusDynamicLoadingNoValidityTest.cpp -DBusDynamicLoadingNoValidityTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusDynamicLoadingNoValidityTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusDynamicLoadingNoValidityTest_LDADD = ${LDADD_FOR_GTEST_WITHOUT_LIBCOMMON_API_DBUS} - -DBusClientIdTest_SOURCES = \ - src/test/DBusClientIdTest.cpp -DBusClientIdTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusClientIdTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusClientIdTest_LDADD = ${LDADD_FOR_GTEST} - -DBusBroadcastTest_SOURCES = \ - ${TestInterfaceDBusSources} \ - src/test/DBusBroadcastTest.cpp -DBusBroadcastTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusBroadcastTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusBroadcastTest_LDADD = ${LDADD_FOR_GTEST} - -DBusPolymorphicTest_SOURCES = \ - ${TestInterfaceDBusSources} \ - src/test/DBusPolymorphicTest.cpp -DBusPolymorphicTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusPolymorphicTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusPolymorphicTest_LDADD = ${LDADD_FOR_GTEST} - -DBusLoadTest_SOURCES = \ - src/test/DBusLoadTest.cpp \ - ${TestInterfaceDBusSources} -DBusLoadTest_CPPFLAGS = ${AM_CPPFLAGS} ${GTEST_CPPFLAGS} -DBusLoadTest_CXXFLAGS = ${GTEST_CXXFLAGS} -DBusLoadTest_LDADD = ${LDADD_FOR_GTEST} - -endif - - -# ------------------------------------------------------------------------------ -# Doxygen -include $(top_srcdir)/aminclude.am -EXTRA_DIST += doxygen.cfg dbus-DBusMessage-add-support-for-custom-marshaling.patch -MOSTLYCLEANFILES += ${DX_CLEANFILES} - -# ------------------------------------------------------------------------------ -MAINTAINERCLEANFILES = \ - Makefile.in \ - aclocal.m4 \ - configure - -clean-local: - -rm -rf src-gen - -maintainer-clean-local: - -rm -rf build-aux - -rm -f config.h.in* - -rm -f m4/libtool*.m4 - -rm -f m4/lt*.m4 - -doc: doxygen-doc - asciidoc -b html -o doc/html/README.html README diff --git a/README b/README deleted file mode 100644 index 293c1cb..0000000 --- a/README +++ /dev/null @@ -1,294 +0,0 @@ -IPC CommonAPI C++ D-Bus ------------------------ -:Author: Juergen Gehring - juergen.gehring@bmw.de, Manfred Bathelt - manfred.bathelt@bmw.de -:doctitle: IPC CommonAPI C++ D-Bus -:version: - -Copyright -+++++++++ -Copyright (C) 2014, BMW AG. -Copyright (C) 2014, GENIVI Alliance, Inc. - -This file is part of GENIVI Project IPC Common API C++ D-Bus. - -Contributions are licensed to the GENIVI Alliance under one or more Contribution License Agreements or MPL 2.0. - -License -+++++++ -This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. - -The files MurmurHash3.h, MurmurHash3.cpp, pugiconfig.hpp, pugixml.cpp and pugixml.hpp are subject to the terms of the MIT License (MIT). If a copy of the MIT was not distributed with this file, you can obtain one at http://opensource.org/licenses/MIT. - -Version -+++++++ -{version} - -Further information -+++++++++++++++++++ -Source code and latest news can be found at http://projects.genivi.org/commonapi/. - -Common API Overview -~~~~~~~~~~~~~~~~~~~ - -Common API C++ and its mechanism specific bindings (e.g. Common API D-Bus) provide a set of libraries and tools to work with -RPC communication in a way independent of which mechanism is used. It currently consists of four sub-projects: - -*CommonAPI* - This is the base C++ library, which provides the application interface for users and can load runtime bindings such as DBus. - -*CommonAPI-Tools* - The Eclipse based tools for CommonAPI. This is essentially the code generator for the generation of C++ code from Franca IDL. - -*CommonAPI-D-Bus* - This is the D-Bus binding C++ library, which provides the necessary code to communicate over D-Bus. This is invisible to the application code, and simply needs to be linked against. - -*CommonAPI-D-Bus-Tools* - The eclipse based tools for CommonAPI D-Bus. This is the code generator for Franca IDL to Common API D-Bus C++ code. - -Build Instructions -~~~~~~~~~~~~~~~~~~~ - -Linux -+++++ - -To build this package the CommonAPI library and a version of libdbus patched with the marshaling patch must be available through PkgConfig. Instructions for making a patched version of libdbus available in /usr/local: - ----- -# wget http://dbus.freedesktop.org/releases/dbus/dbus-1.4.16.tar.gz - -# tar -xzf dbus-1.4.16.tar.gz - -# cd dbus-1.4.16 - -# patch -p1 < /path/to/dbus-DBusMessage-add-support-for-custom-marshaling.patch - -# ./configure --prefix=/usr/local - -# make -C dbus - -# sudo make -C dbus install -# sudo make install-pkgconfigDATA ----- - -The path to CommonAPI and patched libdbus pkgconfig files must be added to the +PKG_CONFIG_PATH+ for the entire build process. - -For example, if CommonAPI and patched dbus are available in /usr/local, set the +PKG_CONFIG_PATH+ variable as follows: - ----- -# export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" ----- - -Now use Autotools to build this package with the above requirements available through Pkgconfig: - ----- -# autoreconf -i -# ./configure -# make -# sudo make install (or alternative install process, eg. checkinstall on debian-based distributions, such as Ubuntu) ----- - -Building and executing the Unit Tests: - ----- -# export GTEST_CONFIG=/path/to/gtest-1.6.0/scripts/gtest-config -# autoreconf -i -# ./configure -# make check ----- - -In order to execute the unit tests, the test framework "Google Test" (available at https://code.google.com/p/googletest/) needs to be available on your system. Google Test comes with a subfolder called "scripts", there you will find a file called "gtest-config". The path to this script has to be set via the environment variable GTEST_CONFIG. After having done so, CommonAPI and CommonAPI-D-Bus can be built and the make command "check" can be executed. - -"make check" builds and executes all tests. As the tests are developed as regression tests, the test output is limited to "OK" and "ERROR" for each test performed. - -Windows -+++++++ - -To build the Windows version of the dbus following steps have to be done: - -- Download dbus from http://www.freedesktop.org/wiki/Software/dbus/ e.g. dbus-1.8.0.tar.gz and unpack the archive into a directory -- For building the dbus CMake is needed. Download CMake from http://cmake.org/cmake/resources/software.html. The result of the download is e.g. cmake-2.8.12.2-win32-x86.zip. Unpack the archive into a directory. -- For building the dbus +expat+ is needed. +Expat+ can be downloaded from http://expat.sourceforge.net/ e.g. Download expat-win32bin-2.1.0.exe from http://sourceforge.net/projects/expat/files/expat_win32/2.1.0/. Install expat. -- Now the dbus patch is needed. Download the patch from http://gnuwin32.sourceforge.net/packages/patch.htm e.g. patch-2.5.9-7-setup.exe and install the patch. -- Install the CommonAPI dbus patch e.g. \patch.exe -p1 < \dbus-DBusMessage-add-support-for-custom-marshaling.patch. -* Build dbus via the CMake command line tool: -** Open the developer command line for VS2013 -** Change into root directory of the unpacked dbus archive e.g. dbus-1.8.0 -** Create a new directory dbus-build-dir e.g. mkdir dbus-build-dir -** Change into this new created directory e.g. cd dbus-build-dir -** Create the Visual Studio files for building the dbus: - ----- -cmake -DEXPAT_INCLUDE_DIR="\Source\lib" - -DEXPAT_LIBRARY="\Bin\libexpat.lib" -G "Visual Studio 12" \cmake ----- - -e.g. C:\Work\cmake-2.8.12.2-win32-x86\bin\cmake.exe - -DEXPAT_INCLUDE_DIR="C:\Program Files (x86)\Expat 2.1.0\Source\lib" - -DEXPAT_LIBRARY="C:\Program Files (x86)\Expat 2.1.0\Bin\libexpat.lib" - -G "Visual Studio 12" C:\Work\dbus-1.8.0\cmake - -The Visual Studio files are created in the directory dbus-build-dir. Open the solution dbus.sln and build all projects. Info for dbus-1.8.0: In file printf.c the #include "test-utils.h" must be changed to #include "test/test-utils.h". - -To build now the Windows version with Visual Studio 2013, you can use the solution file CommonAPI-DBus.sln. It is configured to build CommonAPI-DBus as a static library. - -Before opening the solution file CommonAPI-DBus.sln the following environment variables must be set: - -* DBUS_DIR: directory containing the patched DBus sources e.g. \dbus-1.8.0 -* DBUS_BUILD_DIR: directory containing the build DBus e.g. \dbus-1.8.0\dbus-build-dir -* COMMONAPI_DIR: directory containing the CommonAPI e.g. \ascgit017.CommonAPI - -To run the tests, you need to add the location of your built dbus-1d.dll or dbus-1.dll (depending on Debug or Release built) to the PATH environment variable. - -[NOTE] -For building the tests the environment variable GTEST must be set (see README of CommonAPI). -Furthermore the files DemoPoll.h and DemoPoll.cpp are needed (part of gnulib). - -Linking -~~~~~~~ - -Against CommonAPI -+++++++++++++++++ - -CommonAPI-D-Bus requires successful activation of all static initialization code on library load. Therefore it is necessary to activate certain linker flags to ensure this is always the case. These are specified in the pkg-config files, but are also listed here. In case of dynamic linking (.so) --no-as-needed must be specified for the CommonAPI-D-Bus library: ----- --Wl,--no-as-needed -lCommonAPI-DBus -Wl,--as-needed ----- - -In case of static linking --whole-archive must be specified: ----- --Wl,--whole-archive libCommonAPI-DBus.a -Wl,--no-whole-archive ----- - -Generated Proxies and Stubs -+++++++++++++++++++++++++++ - -Generated proxies and stubs also require successful activation of all static initialization code on load. If they are provided in either a static or dynamic library to the application they must also be linked wrapped in the flags described above. - -For linking the proxies and stubs on Windows notice the following information: - -* In case an error C4996 occurs disable this warning via the project settings. -* Following code must be added to the file containing the call _CommonAPI::Runtime::load()_: -** #define COMMONAPI_INTERNAL_COMPILATION -** #include - -After loading of the runtime (std::shared_ptr runtime = CommonAPI::Runtime::load();) the following code must be added: - ----- -// access the middlewareInfo in order to get a call to DBusRuntime. This forces the windows linker not to remove DBusRuntime from resulting binary -std::cout << "Middleware Name: " << CommonAPI::DBus::DBusRuntime::middlewareInfo_.middlewareName_ << std::endl; ----- - -Configuring CommonAPI -~~~~~~~~~~~~~~~~~~~~~ - -Well known name -+++++++++++++++ - -The well known name that may be used to identify and dynamically load the D-Bus middleware binding is "DBus". - - -Defining D-Bus Service Parameters -+++++++++++++++++++++++++++++++++ - -Normally, a CommonAPI address, format - ----- -:: ----- - -is mapped to a D-Bus address the following way: - ----- -# D-Bus Interface Name = ServiceID -# D-Bus Connection Name = InstanceID -# D-Bus Object Path = InstanceID with a preceding '/' and all '.' replaced with '/' ----- -For Domain, only the value "local" is allowed in this context, and it has no influence on the associated D-Bus service address values. - -In case a proxy or a service should not use the default mapping, it is possible to define config files that use the CommonAPI Address as a key in order to map any combination of D-Bus address values to it. The config files can be defined locally per binary, globally per binary or globally for all binaries. - -If more than one config file is defined and a CommonAPI address is defined more than once across several config files, the locally defined values override the global ones. If a CommonAPI address is defined more than once within a single file, the first definition found will be the only definition used. - -[NOTE] -Only one managing interface can be defined per D-Bus object path! - -CommonAPI D-Bus Config files have to be named this way: - ----- -# Binary local: "_dbus.conf", e.g. "/usr/bin/myBinary_dbus.conf" if the binary is "/usr/bin/myBinary" -# Binary global: "/etc/CommonApiDBus/_dbus.conf", e.g. "/etc/CommonApiDBus/myBinary_dbus.conf" -# Global: "/etc/CommonApiDBus/dbusAddresses.conf" ----- - -Each config file may have an arbitrary number of entries of the following format, with each entry being separated from the others by a newline: - ----- -[] -dbus_connection= -dbus_object= -dbus_interface= -dbus_predefined= ----- - -All "dbus_*"-values are optional. For each such omitted value the default value as described above will be used. For "dbus_predefined", the default value is "false". - -"dbus_predefined" should be used if the associated service of a proxy is a legacy service that does not provide the "org.freedesktop.DBus.ObjectManager" interface. - -* If "dbus_predefined" is set to "false" (which is default), a proxy will try to verify the existence of the specific interface at the specific connection name and object path, using the "org.freedesktop.DBus.ObjectManager" interface, before it is marked as available. -* If "dbus_predefined" is set to "true", a proxy is marked as available as soon as the connection name of the associated - service is visible. No further checks will be performed. - -Defining D-Bus Factory Parameters -+++++++++++++++++++++++++++++++++ - -If a section in a config file starts with "factory$", it defines a factory configuration, which can be referred to at factory creation. The name of the factory configuration follows the $ sign. - ----- -[factory$] -dbus_bustype= ----- - -All "dbus_*"-values are optional. For each such omitted value the default value as described below will be used. - -# dbus_bustype may be set to "session" or "system" for communication on the user's session bus or on the system wide bus. The default value is "session" - -Remarks on Windows Version -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Restrictions -++++++++++++ - -* Calling disconnect and later connect on the same DBusConnection somehow damages the libdbus connection. On Linux implementation this all works fine. -* The DBusLoadTest revealed that a number of more than about 50 proxies slows down the dbus communication significantly. That's why we run the DBusLoadTest on windows with just 50 instead of 100 proxies. - -Working on the code & contribution -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -- First get the code from the git: ----- -git clone ----- - -- Get an overview of all branches: ----- -git branch ----- - -- Switch to the branch you want to work on (master is the feature branch) and verify that it has switched (* changed) ----- -git checkout -git branch ----- - -- Best practice is to create a local branch based on the current branch: ----- -git branch working_branch ----- - -Start working, best practice is to commit smaller, compilable pieces during the development process that makes it easier to handle later on. - -- If you want to commit you changes, send them to the author, you can create a patch like this: ----- -git format-patch working_branch ----- - -This creates a set of patches that are published via the mailing list. The patches will be discussed and then merged & uploaded on the git by the maintainer. - -Patches can be accepted under MPL 2.0 (see section License). Please be sure that the signed-off-by is set correctly. For more, check out http://gerrit.googlecode.com/svn/documentation/2.0/user-signedoffby.html - diff --git a/UnitTests.vcxproj b/UnitTests.vcxproj index 9ba7a45..aa02c8a 100644 --- a/UnitTests.vcxproj +++ b/UnitTests.vcxproj @@ -10,17 +10,83 @@ Win32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37,89 +103,20 @@ + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {A437B05C-A664-493D-B60A-822A3A7A1CED} @@ -163,17 +160,18 @@ NotUsing Level3 Disabled - $(DBUS_DIR);$(DBUS_BUILD_DIR);$(SolutionDir)\src;$(SolutionDir)\src\test;$(COMMONAPI_DIR)\src;$(GTEST)\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) - ENABLE_ATTRIBUTE_EXTENSIONS;WIN32;COMMONAPI_INTERNAL_COMPILATION;_DEBUG;%(PreprocessorDefinitions) + $(DBUS_DIR);$(DBUS_BUILD_DIR);$(SolutionDir)\include;$(SolutionDir)\src\test;$(COMMONAPI_DIR)\include;$(GTEST)\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + ENABLE_ATTRIBUTE_EXTENSIONS;WIN32;COMMONAPI_INTERNAL_COMPILATION;_DEBUG;__EXCEPTIONS;%(PreprocessorDefinitions) true - true + false OldStyle false + EnableFastChecks Console true - $(DBUS_BUILD_DIR)\bin\Debug;$(GTEST)\msvc\gtest-md\Debug;$(COMMONAPI_DIR)\Debug;$(SolutionDir)\Debug;$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + $(DBUS_BUILD_DIR)\bin\Debug;$(GTEST)\msvc\gtest-md\Debug;C:\CommonAPI\CommonAPI\Debug;$(SolutionDir)\Debug;$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) CommonAPId.lib;CommonAPI-DBusd.lib;gtestd.lib;gtest_main-mdd.lib;dbus-1d.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/aminclude.am b/aminclude.am deleted file mode 100644 index 7dfed8d..0000000 --- a/aminclude.am +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright (c) 2009 Oren Ben-Kiki -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. -# -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html -# =========================================================================== -# - -## --------------------------------- ## -## Format-independent Doxygen rules. ## -## --------------------------------- ## - -if DX_COND_doc - -## ------------------------------- ## -## Rules specific for HTML output. ## -## ------------------------------- ## - -if DX_COND_html - -DX_CLEAN_HTML = @DX_DOCDIR@/html - -endif # DX_COND_html - -## ------------------------------ ## -## Rules specific for CHM output. ## -## ------------------------------ ## - -if DX_COND_chm - -DX_CLEAN_CHM = @DX_DOCDIR@/chm - -if DX_COND_chi - -DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi - -endif # DX_COND_chi - -endif # DX_COND_chm - -## ------------------------------ ## -## Rules specific for MAN output. ## -## ------------------------------ ## - -if DX_COND_man - -DX_CLEAN_MAN = @DX_DOCDIR@/man - -endif # DX_COND_man - -## ------------------------------ ## -## Rules specific for RTF output. ## -## ------------------------------ ## - -if DX_COND_rtf - -DX_CLEAN_RTF = @DX_DOCDIR@/rtf - -endif # DX_COND_rtf - -## ------------------------------ ## -## Rules specific for XML output. ## -## ------------------------------ ## - -if DX_COND_xml - -DX_CLEAN_XML = @DX_DOCDIR@/xml - -endif # DX_COND_xml - -## ----------------------------- ## -## Rules specific for PS output. ## -## ----------------------------- ## - -if DX_COND_ps - -DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps - -DX_PS_GOAL = doxygen-ps - -doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps - -@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag - cd @DX_DOCDIR@/latex; \ - rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ - $(DX_LATEX) refman.tex; \ - $(MAKEINDEX_PATH) refman.idx; \ - $(DX_LATEX) refman.tex; \ - countdown=5; \ - while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ - refman.log > /dev/null 2>&1 \ - && test $$countdown -gt 0; do \ - $(DX_LATEX) refman.tex; \ - countdown=`expr $$countdown - 1`; \ - done; \ - $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi - -endif # DX_COND_ps - -## ------------------------------ ## -## Rules specific for PDF output. ## -## ------------------------------ ## - -if DX_COND_pdf - -DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf - -DX_PDF_GOAL = doxygen-pdf - -doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf - -@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag - cd @DX_DOCDIR@/latex; \ - rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ - $(DX_PDFLATEX) refman.tex; \ - $(DX_MAKEINDEX) refman.idx; \ - $(DX_PDFLATEX) refman.tex; \ - countdown=5; \ - while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ - refman.log > /dev/null 2>&1 \ - && test $$countdown -gt 0; do \ - $(DX_PDFLATEX) refman.tex; \ - countdown=`expr $$countdown - 1`; \ - done; \ - mv refman.pdf ../@PACKAGE@.pdf - -endif # DX_COND_pdf - -## ------------------------------------------------- ## -## Rules specific for LaTeX (shared for PS and PDF). ## -## ------------------------------------------------- ## - -if DX_COND_latex - -DX_CLEAN_LATEX = @DX_DOCDIR@/latex - -endif # DX_COND_latex - -.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) - -.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag - -doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) - rm -rf @DX_DOCDIR@ - $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) - -DX_CLEANFILES = \ - @DX_DOCDIR@/@PACKAGE@.tag \ - -r \ - $(DX_CLEAN_HTML) \ - $(DX_CLEAN_CHM) \ - $(DX_CLEAN_CHI) \ - $(DX_CLEAN_MAN) \ - $(DX_CLEAN_RTF) \ - $(DX_CLEAN_XML) \ - $(DX_CLEAN_PS) \ - $(DX_CLEAN_PDF) \ - $(DX_CLEAN_LATEX) - -endif # DX_COND_doc \ No newline at end of file diff --git a/cmake/CommonAPI-DBusConfig.cmake.in b/cmake/CommonAPI-DBusConfig.cmake.in new file mode 100644 index 0000000..9f1f8ca --- /dev/null +++ b/cmake/CommonAPI-DBusConfig.cmake.in @@ -0,0 +1,13 @@ +# - Config file for the CommonAPI-DBus package +# It defines the following variables +# COMMONAPI_DBUS_INCLUDE_DIRS - include directories for CommonAPI-DBus + +# Compute paths +get_filename_component(COMMONAPI_DBUS_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +set(COMMONAPI_DBUS_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@") + +# Our library dependencies (contains definitions for IMPORTED targets) +include("${COMMONAPI_DBUS_CMAKE_DIR}/CommonAPI-DBusTargets.cmake") + +set(COMMONAPI_DBUS_VERSION @PACKAGE_VERSION@) +set(COMMONAPI_DBUS_VERSION_STRING "@PACKAGE_VERSION@") diff --git a/cmake/CommonAPI-DBusConfigVersion.cmake.in b/cmake/CommonAPI-DBusConfigVersion.cmake.in new file mode 100644 index 0000000..8377282 --- /dev/null +++ b/cmake/CommonAPI-DBusConfigVersion.cmake.in @@ -0,0 +1,12 @@ +set(PACKAGE_VERSION "@PACKAGE_VERSION@") + +set(PACKAGE_VERSION_COMPATIBLE FALSE) + +string(REPLACE "." "\\." ESCAPED_API_HEADER_VERSION "@COMMONAPI_API_HEADER_VERSION@") +if("${PACKAGE_FIND_VERSION}" MATCHES "^@ESCAPED_API_HEADER_VERSION@($|\\.)") + set(PACKAGE_VERSION_COMPATIBLE TRUE) +endif() + +if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) +endif() diff --git a/commonapi-dbus.spec.in b/commonapi-dbus.spec.in new file mode 100644 index 0000000..051996c --- /dev/null +++ b/commonapi-dbus.spec.in @@ -0,0 +1,127 @@ +Name: @PROJECT_NAME@ +Version: @COMPONENT_VERSION@ +Release: @RPM_PACKAGE_VERSION@ +Summary: CommonAPI-DBus +Group: libs +License: @LICENSE@ +Vendor: BMW Group +URL: http://www.bmw.de +Source: @PROJECT_NAME@-@COMPONENT_VERSION@.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +#Requires: libcommonapi + +%description +CAPI-DBus for IPC + +%package dev +Summary: CommonAPI-DBus header files +Group: Development/Libraries +Requires: libcommonapi-dbus3 + +%package staticdev +Summary: CommonAPI-DBus header files +Group: Development/Libraries +Requires: libcommonapi-dbus3 + + +%description dev +CAPI-DBus headers for IPC development + +%prep +mkdir -p %{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI +%setup + + + +%build +mkdir -p build +cd build +cmake .. +make + +%install +rm -rf $RPM_BUILD_ROOT +cd build +cmake .. +make install DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir -p %{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_libdir}/libCommonAPI-DBus.so.@LIBCOMMONAPI_DBUS_MAJOR_VERSION@ +%{_libdir}/libCommonAPI-DBus.so.@LIBCOMMONAPI_DBUS_MAJOR_VERSION@.@LIBCOMMONAPI_DBUS_MINOR_VERSION@.@LIBCOMMONAPI_DBUS_PATCH_VERSION@ +%{_libdir}/libCommonAPI-DBus.so + +%files staticdev +#%{_libdir}/libCommonAPI-DBus.la + +%files dev +%defattr(-,root,root,-) +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusAddress.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusAddressTranslator.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusAttribute.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusClientId.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusConfig.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusConnection.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusDaemonProxy.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusDeployment.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusError.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusEvent.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFactory.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFreedesktopAttribute.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFreedesktopPropertiesStub.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFreedesktopStubAdapterHelper.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFreedesktopVariant.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusFunctionalHash.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusHelper.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusInputStream.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusInstanceAvailabilityStatusChangedEvent.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusInterfaceHandler.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusMainLoopContext.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusMessage.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusMultiEvent.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusObjectManager.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusObjectManagerStub.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusOutputStream.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxy.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxyAsyncCallbackHandler.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxyBase.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxyConnection.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxyHelper.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusProxyManager.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusSelectiveEvent.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusSerializableArguments.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusServiceRegistry.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusStubAdapter.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusStubAdapterHelper.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusTypeOutputStream.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusTypes.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/DBus/DBusUtils.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/pugixml +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/pugixml/pugiconfig.hpp +%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/pugixml/pugixml.hpp +%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPI-DBusConfig.cmake +%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPI-DBusConfigVersion.cmake +%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPI-DBusTargets.cmake +%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPI-DBusTargets-@CMAKE_BUILD_TYPE_FOR_SPEC_IN@.cmake + +%changelog dev +* Mon Mar 23 2015 Markus Freutsmiedl @GENIVI_PROJECT_VERSION@ +- LIB_MAJOR_VERSION changed to LIBCOMMONAPI_MAJOR_VERSION +- LIB_MINOR_VERSION changed to LIBCOMMONAPI_MINOR_VERSION +- LIB_PATCH_VERSION changed to LIBCOMMONAPI_PATCH_VERSION +- files dev reworked + +%changelog dev +* Wed Sep 3 2014 Markus Freutsmiedl @GENIVI_PROJECT_VERSION@ +- files dev reworked + +%changelog dev +* Tue Jun 03 2014 Markus Freutsmiedl @GENIVI_PROJECT_VERSION@ +- Initial version diff --git a/configure.ac b/configure.ac deleted file mode 100644 index d655176..0000000 --- a/configure.ac +++ /dev/null @@ -1,131 +0,0 @@ -AC_PREREQ([2.61]) -AC_INIT([GENIVI IPC Common API DBus C++], - [2.1.6], - [], - [CommonAPI-DBus]) - -AC_USE_SYSTEM_EXTENSIONS - -AC_CONFIG_MACRO_DIR([m4]) -m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) -AC_CONFIG_AUX_DIR([build-aux]) -AC_CONFIG_HEADERS([build-aux/config.h]) -AC_CONFIG_FILES([ - Makefile - CommonAPI-DBus.pc - CommonAPI-DBus-uninstalled.pc]) - -AC_CANONICAL_SYSTEM - -AM_INIT_AUTOMAKE([foreign 1.11 silent-rules subdir-objects color-tests -Wall -Werror]) -AM_SILENT_RULES -AM_MAINTAINER_MODE - -COMMONAPI_API_HEADER_VERSION="2.1" -AC_SUBST(COMMONAPI_API_HEADER_VERSION) - -AC_ARG_WITH([loose-version-check], [AS_HELP_STRING([--with-loose-version-check], [if loose-version-check is set the CommonAPI will only be checked for major and minor version])], - [LOOSE_VERSION_CHECK=1], []) - -AS_IF([test -z "${CXXFLAGS}"], [CXXFLAGS='-O0'], []) - -AC_PROG_CXX -AC_LANG([C++]) -AX_CXX_COMPILE_STDCXX_11([noext]) - -AC_ARG_VAR([GTEST_CONFIG], [The exact path of Google Test's 'gtest-config' script.]) - -LT_PREREQ(2.2) -LT_INIT -PKG_PROG_PKG_CONFIG -AS_IF([test ${LOOSE_VERSION_CHECK} = 1], - [ - PKG_CHECK_MODULES(COMMONAPI, [CommonAPI >= 2.1 CommonAPI < 2.2]) - ], - [ - PKG_CHECK_MODULES(COMMONAPI, [CommonAPI = 2.1.6]) - ] -) -PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.4.6]) -PKG_CHECK_MODULES(GLIB, [glib-2.0], - [], - [ - echo "WARNING: No glib found, tests will not be compiled!" - TESTS_CAN_BE_EXECUTED=false - ] -) - -GTEST_MIN_VERSION="1.6.0" -GTEST_URL="http://code.google.com/p/googletest" - - -AC_ARG_VAR([GTEST_CONFIG], [The exact path of Google Test's 'gtest-config' script.]) -AC_ARG_VAR([GTEST_CPPFLAGS], [C-like preprocessor flags for Google Test.]) -AC_ARG_VAR([GTEST_CXXFLAGS], [C++ compile flags for Google Test.]) -AC_ARG_VAR([GTEST_LDFLAGS], [Linker path and option flags for Google Test.]) -AC_ARG_VAR([GTEST_LIBS], [Library linking flags for Google Test.]) -AC_ARG_VAR([GTEST_VERSION], [The available version of Google Test.]) - -AS_IF([test -f "${GTEST_CONFIG}"], - [AS_IF([${GTEST_CONFIG} --min-version=${GTEST_MIN_VERSION}], - [], - [AC_MSG_ERROR([dnl - Found Google Test Version ${GTEST_VERSION}. However ${GTEST_MIN_VERSION} is - required. Please refer to ${GTEST_URL} for a more recent version.])]) - [GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`] - [GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`] - [GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`] - [GTEST_LIBS=`${GTEST_CONFIG} --libs`] - [GTEST_VERSION=`${GTEST_CONFIG} --version`] - ] - [] -) - -AS_IF([${TESTS_CAN_BE_EXECUTED}], - [], - [[GTEST_CPPFLAGS=""] - [GTEST_CXXFLAGS=""] - [GTEST_LDFLAGS=""] - [GTEST_LIBS=""] - [GTEST_VERSION=""] - [GTEST_ERROR=" - WARNING: No glib found, tests will not be compiled! Please install the glib package! - "]]) - -AM_CONDITIONAL(ENABLE_TESTS, [test -f "${GTEST_CONFIG}" && ${TESTS_CAN_BE_EXECUTED}]) - -# Doxygen support -DX_HTML_FEATURE(ON) -DX_CHM_FEATURE(OFF) -DX_CHI_FEATURE(OFF) -DX_MAN_FEATURE(OFF) -DX_RTF_FEATURE(OFF) -DX_XML_FEATURE(OFF) -DX_PDF_FEATURE(OFF) -DX_PS_FEATURE(OFF) -DX_INIT_DOXYGEN(${PACKAGE_NAME}, doxygen.cfg, doc) - -AC_MSG_RESULT([ - $PACKAGE_NAME v$VERSION - ${GTEST_ERROR} - enable docs: ${ENABLE_DOCS} - - COMMONAPI_CFLAGS: ${COMMONAPI_CFLAGS} - COMMONAPI_LIBS: ${COMMONAPI_LIBS} - - DBUS_CFLAGS: ${DBUS_CFLAGS} - DBUS_LIBS: ${DBUS_LIBS} - - GTEST_CONFIG: ${GTEST_CONFIG} - GTEST_CPPFLAGS: ${GTEST_CPPFLAGS} - GTEST_CXXFLAGS: ${GTEST_CXXFLAGS} - GTEST_LDFLAGS: ${GTEST_LDFLAGS} - GTEST_LIBS: ${GTEST_LIBS} - GTEST_VERSION: ${GTEST_VERSION} - - prefix: ${prefix} - CXXFLAGS: ${CXXFLAGS} - LDFLAGS: ${LDFLAGS} -]) - -AC_OUTPUT diff --git a/dbus-DBusMessage-add-support-for-custom-marshaling.patch b/dbus-DBusMessage-add-support-for-custom-marshaling.patch deleted file mode 100644 index 5f225f3..0000000 --- a/dbus-DBusMessage-add-support-for-custom-marshaling.patch +++ /dev/null @@ -1,267 +0,0 @@ -From 467a2e307462b02865b35397c572b6048c2934e2 Mon Sep 17 00:00:00 2001 -From: Aleksandar Kanchev -Date: Mon, 9 Jul 2012 18:09:04 +0200 -Subject: [PATCH] DBusMessage: add support for custom marshaling - -Add functions to support querying and manipulating the message body and -signature. This is useful for code generators, which can generate custom -marshaling functions based on a given IDL. Those functions tend to be -optimized and faster than the generic iterator based marshaling. ---- - dbus/dbus-message.c | 143 +++++++++++++++++++++++++++++++++++---------------- - dbus/dbus-message.h | 13 +++++ - dbus/dbus-string.c | 16 ++++++ - dbus/dbus-string.h | 4 ++ - 4 files changed, 132 insertions(+), 44 deletions(-) - -diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c -index 24ef5ac..fbacfba 100644 ---- a/dbus/dbus-message.c -+++ b/dbus/dbus-message.c -@@ -356,50 +356,6 @@ set_or_delete_string_field (DBusMessage *message, - &value); - } - --#if 0 --/* Probably we don't need to use this */ --/** -- * Sets the signature of the message, i.e. the arguments in the -- * message payload. The signature includes only "in" arguments for -- * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for -- * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from -- * what you might expect (it does not include the signature of the -- * entire C++-style method). -- * -- * The signature is a string made up of type codes such as -- * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also -- * the value of #DBUS_TYPE_INVALID). The macros such as -- * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you -- * may find it useful to use the string forms, such as -- * #DBUS_TYPE_INT32_AS_STRING. -- * -- * An "unset" or #NULL signature is considered the same as an empty -- * signature. In fact dbus_message_get_signature() will never return -- * #NULL. -- * -- * @param message the message -- * @param signature the type signature or #NULL to unset -- * @returns #FALSE if no memory -- */ --static dbus_bool_t --_dbus_message_set_signature (DBusMessage *message, -- const char *signature) --{ -- _dbus_return_val_if_fail (message != NULL, FALSE); -- _dbus_return_val_if_fail (!message->locked, FALSE); -- _dbus_return_val_if_fail (signature == NULL || -- _dbus_check_is_valid_signature (signature)); -- /* can't delete the signature if you have a message body */ -- _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || -- signature != NULL); -- -- return set_or_delete_string_field (message, -- DBUS_HEADER_FIELD_SIGNATURE, -- DBUS_TYPE_SIGNATURE, -- signature); --} --#endif -- - /* Message Cache - * - * We cache some DBusMessage to reduce the overhead of allocating -@@ -3370,6 +3326,47 @@ dbus_message_get_sender (DBusMessage *message) - } - - /** -+ * Sets the signature of the message, i.e. the arguments in the -+ * message payload. The signature includes only "in" arguments for -+ * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for -+ * #DBUS_MESSAGE_TYPE_METHOD_RETURN, so is slightly different from -+ * what you might expect (it does not include the signature of the -+ * entire C++-style method). -+ * -+ * The signature is a string made up of type codes such as -+ * #DBUS_TYPE_INT32. The string is terminated with nul (nul is also -+ * the value of #DBUS_TYPE_INVALID). The macros such as -+ * #DBUS_TYPE_INT32 evaluate to integers; to assemble a signature you -+ * may find it useful to use the string forms, such as -+ * #DBUS_TYPE_INT32_AS_STRING. -+ * -+ * An "unset" or #NULL signature is considered the same as an empty -+ * signature. In fact dbus_message_get_signature() will never return -+ * #NULL. -+ * -+ * @param message the message -+ * @param signature the type signature or #NULL to unset -+ * @returns #FALSE if no memory -+ */ -+dbus_bool_t -+dbus_message_set_signature (DBusMessage *message, -+ const char *signature) -+{ -+ _dbus_return_val_if_fail (message != NULL, FALSE); -+ _dbus_return_val_if_fail (!message->locked, FALSE); -+ _dbus_return_val_if_fail (signature == NULL || -+ _dbus_check_is_valid_signature (signature), FALSE); -+ /* can't delete the signature if you have a message body */ -+ _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || -+ signature != NULL, FALSE); -+ -+ return set_or_delete_string_field (message, -+ DBUS_HEADER_FIELD_SIGNATURE, -+ DBUS_TYPE_SIGNATURE, -+ signature); -+} -+ -+/** - * Gets the type signature of the message, i.e. the arguments in the - * message payload. The signature includes only "in" arguments for - * #DBUS_MESSAGE_TYPE_METHOD_CALL and only "out" arguments for -@@ -4519,6 +4516,64 @@ dbus_message_type_to_string (int type) - } - - /** -+ * Returns pointer to the buffer used to store the message body. -+ * -+ * @param message the message -+ * @return pointer to the message body memory -+ */ -+char* -+dbus_message_get_body (DBusMessage *message) { -+ _dbus_return_val_if_fail (message != NULL, NULL); -+ -+ return _dbus_string_get_data(&(message->body)); -+} -+ -+/** -+ * Adjust the length of the message body buffer. The memory will be reallocated -+ * if the new length is bigger than the already allocated size. -+ * -+ * @see dbus_message_get_body_allocated -+ * @param message the message -+ * @param length the new length of the body -+ * @return #TRUE if successful -+ */ -+dbus_bool_t -+dbus_message_set_body_length (DBusMessage *message, -+ int length) { -+ _dbus_return_val_if_fail (message != NULL, FALSE); -+ _dbus_return_val_if_fail (length >= 0, FALSE); -+ -+ return _dbus_string_set_length(&(message->body), length); -+} -+ -+/** -+ * Gets the length of the message body buffer. -+ * -+ * @param message the message -+ * @param length the new length of the body -+ * @return the length of the body buffer -+ */ -+int -+dbus_message_get_body_length (DBusMessage *message) { -+ _dbus_return_val_if_fail (message != NULL, 0); -+ -+ return _dbus_string_get_length(&(message->body)); -+} -+ -+/** -+ * Gets the allocated memory size used to hold the message body. -+ * -+ * @param message the message -+ * @return size of the allocated message body memory -+ */ -+int -+dbus_message_get_body_allocated (DBusMessage *message) { -+ _dbus_return_val_if_fail (message != NULL, 0); -+ -+ return _dbus_string_get_allocated(&(message->body)); -+} -+ -+/** - * Turn a DBusMessage into the marshalled form as described in the D-Bus - * specification. - * -diff --git a/dbus/dbus-message.h b/dbus/dbus-message.h -index 5500492..55388ac 100644 ---- a/dbus/dbus-message.h -+++ b/dbus/dbus-message.h -@@ -138,6 +138,9 @@ dbus_bool_t dbus_message_set_sender (DBusMessage *message, - DBUS_EXPORT - const char* dbus_message_get_sender (DBusMessage *message); - DBUS_EXPORT -+dbus_bool_t dbus_message_set_signature (DBusMessage *message, -+ const char *signature); -+DBUS_EXPORT - const char* dbus_message_get_signature (DBusMessage *message); - DBUS_EXPORT - void dbus_message_set_no_reply (DBusMessage *message, -@@ -264,6 +267,16 @@ void dbus_message_iter_abandon_container (DBusMessageIter *iter, - DBusMessageIter *sub); - - DBUS_EXPORT -+char* dbus_message_get_body (DBusMessage *message); -+DBUS_EXPORT -+dbus_bool_t dbus_message_set_body_length (DBusMessage *message, -+ int length); -+DBUS_EXPORT -+int dbus_message_get_body_length (DBusMessage *message); -+DBUS_EXPORT -+int dbus_message_get_body_allocated (DBusMessage *message); -+ -+DBUS_EXPORT - void dbus_message_lock (DBusMessage *message); - - DBUS_EXPORT -diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c -index e2eb93b..d8628ba 100644 ---- a/dbus/dbus-string.c -+++ b/dbus/dbus-string.c -@@ -848,6 +848,22 @@ _dbus_string_get_length (const DBusString *str) - } - #endif /* !_dbus_string_get_length */ - -+/* Only have the function if we don't have the macro */ -+#ifndef _dbus_string_get_allocated -+/** -+ * Gets the allocated length of a string (not including nul termination). -+ * -+ * @returns the allocated length. -+ */ -+int -+_dbus_string_get_allocated(const DBusString *str) -+{ -+ DBUS_CONST_STRING_PREAMBLE (str); -+ -+ return real->allocated; -+} -+#endif /* !_dbus_string_get_allocated */ -+ - /** - * Makes a string longer by the given number of bytes. Checks whether - * adding additional_length to the current length would overflow an -diff --git a/dbus/dbus-string.h b/dbus/dbus-string.h -index 2f1ed31..490aea6 100644 ---- a/dbus/dbus-string.h -+++ b/dbus/dbus-string.h -@@ -62,6 +62,7 @@ struct DBusString - */ - #define _dbus_string_get_data(s) ((char*)(((DBusString*)(s))->dummy1)) - #define _dbus_string_get_length(s) (((DBusString*)(s))->dummy2) -+#define _dbus_string_get_allocated(s) (((DBusString*)(s))->dummy3 - _DBUS_STRING_ALLOCATION_PADDING) - #define _dbus_string_set_byte(s, i, b) ((((unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) = (unsigned char) (b)) - #define _dbus_string_get_byte(s, i) (((const unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) - #define _dbus_string_get_const_data(s) ((const char*)(((DBusString*)(s))->dummy1)) -@@ -131,6 +132,9 @@ void _dbus_string_copy_to_buffer_with_nul (const DBusString *str, - #ifndef _dbus_string_get_length - int _dbus_string_get_length (const DBusString *str); - #endif /* !_dbus_string_get_length */ -+#ifndef _dbus_string_get_allocated -+int _dbus_string_get_allocated (const DBusString *str); -+#endif /* !_dbus_string_get_allocated */ - - dbus_bool_t _dbus_string_lengthen (DBusString *str, - int additional_length); --- -1.7.10.2 - diff --git a/docx/01_mainpage.dox b/docx/01_mainpage.dox index 789c6c6..8484cd0 100644 --- a/docx/01_mainpage.dox +++ b/docx/01_mainpage.dox @@ -1,32 +1,23 @@ /** - * Copyright (C) 2013 BMW AG - * - * - * This file is part of GENIVI Project CommonAPI-D-Bus. - * - * Contributions are licensed to the GENIVI Alliance under one or more - * Contribution License Agreements. - * * \copyright - * This Source Code Form is subject to the terms of the - * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with - * this file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright (C) 2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) + * + * This file is part of GENIVI project IPC CommonAPI D-Bus C++. * - * \author Juergen Gehring (juergen.gehring@bmw.de) - * \author Manfred Bathelt (manfred.bathelt@bmw.de) + * Contributions are licensed to the GENIVI Alliance under one or more Contribution License Agreements. * */ /*! \mainpage -\par Usage information -can be found in the README file. - -\par More information -can be found at http://projects.genivi.org/commonapi/ \n +\par License +This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -\par About CommonAPI-D-Bus -This is the D-Bus binding for CommonAPI. +\par CommonAPI D-Bus C++ User Guide +The user guide can be found in the documentation directory of the CommonAPI D-Bus Tools project. +\par Build instructions +can be found in the README file of this project. */ \ No newline at end of file diff --git a/doxygen.cfg b/doxygen.cfg deleted file mode 100644 index 357f4a1..0000000 --- a/doxygen.cfg +++ /dev/null @@ -1,1794 +0,0 @@ -# Doxyfile 1.8.1.1 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" "). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or sequence of words) that should -# identify the project. Note that if you do not use Doxywizard you need -# to put quotes around the project name if it contains spaces. - -PROJECT_NAME = $(PROJECT)-$(VERSION) - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer -# a quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is -# included in the documentation. The maximum height of the logo should not -# exceed 55 pixels and the maximum width should not exceed 200 pixels. -# Doxygen will copy the logo to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = $(DOCDIR) - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = YES - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. - -STRIP_FROM_PATH = $(SRCDIR) - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful if your file system -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = YES - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 4 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding -# "class=itcl::class" will allow you to use the command class in the -# itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = YES - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this -# tag. The format is ext=language, where ext is a file extension, and language -# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, -# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make -# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C -# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions -# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all -# comments according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you -# can mix doxygen, HTML, and XML commands with Markdown formatting. -# Disable only in case of backward compatibilities issues. - -MARKDOWN_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also makes the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and -# unions are shown inside the group in which they are included (e.g. using -# @ingroup) instead of on a separate page (for HTML and Man pages) or -# section (for LaTeX and RTF). - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and -# unions with only public data fields will be shown inline in the documentation -# of the scope in which they are defined (i.e. file, namespace, or group -# documentation), provided this scope is documented. If set to NO (the default), -# structs, classes, and unions are shown on a separate page (for HTML and Man -# pages) or section (for LaTeX and RTF). - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penalty. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will roughly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -SYMBOL_CACHE_SIZE = 0 - -# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be -# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given -# their name and scope. Since this can be an expensive process and often the -# same symbol appear multiple times in the code, doxygen keeps a cache of -# pre-resolved symbols. If the cache is too small doxygen will become slower. -# If the cache is too large, memory is wasted. The cache size is given by this -# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = YES - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = YES - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespaces are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = YES - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = YES - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = YES - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = YES - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to -# do proper type resolution of all parameters of a function it will reject a -# match between the prototype and the implementation of a member function even -# if there is only one candidate or it is obvious which candidate to choose -# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen -# will still accept a match between prototype and implementation in such cases. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or macro consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and macros in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 0 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. -# This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files -# containing the references data. This must be a list of .bib files. The -# .bib extension is automatically appended if omitted. Using this command -# requires the bibtex tool to be installed. See also -# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style -# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this -# feature you need bibtex and perl available in the search path. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = YES - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# The WARN_NO_PARAMDOC option can be enabled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = $(SRCDIR) docx - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh -# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py -# *.f90 *.f *.for *.vhd *.vhdl - -FILE_PATTERNS = - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = src/test build-aux src/murmurhash - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = std - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. -# If FILTER_PATTERNS is specified, this tag will be -# ignored. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. -# Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. -# The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty or if -# non of the patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) -# and it is also possible to disable source filtering for a specific pattern -# using *.ext= (so without naming a filter). This option only has effect when -# FILTER_SOURCE_FILES is enabled. - -FILTER_SOURCE_PATTERNS = - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = YES - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C, C++ and Fortran comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = YES - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = YES - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. -# Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = YES - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = $(GENERATE_HTML) - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. Note that when using a custom header you are responsible -# for the proper inclusion of any scripts and style sheets that doxygen -# needs, which is dependent on the configuration options used. -# It is advised to generate a default header using "doxygen -w html -# header.html footer.html stylesheet.css YourConfigFile" and then modify -# that header. Note that the header is subject to change so you typically -# have to redo this when upgrading to a newer version of doxygen or when -# changing the value of configuration settings such as GENERATE_TREEVIEW! - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# style sheet in the HTML output directory as well, or it will be erased! - -HTML_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that -# the files will be copied as-is; there are no commands or markers available. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the style sheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = NO - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of -# entries shown in the various tree structured indices initially; the user -# can expand and collapse entries dynamically later on. Doxygen will expand -# the tree to such a level that at most the specified number of entries are -# visible (unless a fully collapsed tree already exceeds this amount). -# So setting the number of entries 1 will produce a full collapsed tree by -# default. 0 is a special value representing an infinite number of entries -# and will result in a full expanded tree by default. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = $(GENERATE_HTMLHELP) - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = ../$(PROJECT).chm - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = $(HHC_PATH) - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = $(GENERATE_CHI) - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = YES - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) -# at top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. Since the tabs have the same information as the -# navigation tree you can set this option to NO if you already set -# GENERATE_TREEVIEW to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. -# Since the tree basically has the same information as the tab index you -# could consider to set DISABLE_INDEX to NO when enabling this option. - -GENERATE_TREEVIEW = YES - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values -# (range [0,1..20]) that doxygen will group on one line in the generated HTML -# documentation. Note that a value of 0 will completely suppress the enum -# values from appearing in the overview section. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax -# (see http://www.mathjax.org) which uses client side Javascript for the -# rendering instead of using prerendered bitmaps. Use this if you do not -# have LaTeX installed or if you want to formulas look prettier in the HTML -# output. When enabled you may also need to install MathJax separately and -# configure the path to it using the MATHJAX_RELPATH option. - -USE_MATHJAX = NO - -# When MathJax is enabled you need to specify the location relative to the -# HTML output directory using the MATHJAX_RELPATH option. The destination -# directory should contain the MathJax.js script. For instance, if the mathjax -# directory is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to -# the MathJax Content Delivery Network so you can quickly see the result without -# installing MathJax. -# However, it is strongly recommended to install a local -# copy of MathJax from http://www.mathjax.org before deployment. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension -# names that should be enabled during MathJax rendering. - -MATHJAX_EXTENSIONS = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = NO - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be -# implemented using a PHP enabled web server instead of at the web client -# using Javascript. Doxygen will generate the search PHP script and index -# file to put on the web server. The advantage of the server -# based approach is that it scales better to large projects and allows -# full text search. The disadvantages are that it is more difficult to setup -# and does not have live searching capabilities. - -SERVER_BASED_SEARCH = NO - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = $(GENERATE_LATEX) - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = YES - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, letter, legal and -# executive. If left blank a4wide will be used. - -PAPER_TYPE = $(PAPER_SIZE) - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for -# the generated latex document. The footer should contain everything after -# the last chapter. If it is left blank doxygen will generate a -# standard footer. Notice: only use this tag if you know what you are doing! - -LATEX_FOOTER = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = NO - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = $(GENERATE_PDF) - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = YES - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include -# source code with syntax highlighting in the LaTeX output. -# Note that which sources are shown also depends on other settings -# such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -# The LATEX_BIB_STYLE tag can be used to specify the style to use for the -# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See -# http://en.wikipedia.org/wiki/BibTeX for more info. - -LATEX_BIB_STYLE = plain - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = $(GENERATE_RTF) - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = YES - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load style sheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = $(GENERATE_MAN) - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = $(GENERATE_XML) - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. -# This is useful -# if you want to understand what is going on. -# On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = YES - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = YES - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# pointed to by INCLUDE_PATH will be searched when a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = . - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = _DOXYGEN - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition that -# overrules the definition found in the source code. - -EXPAND_AS_DEFINED = EASY_TYPE \ - EASY_DESTRUCTOR \ - EASY_METHOD - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all references to function-like macros -# that are alone on a line, have an all uppercase name, and do not end with a -# semicolon, because these will confuse the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. For each -# tag file the location of the external documentation should be added. The -# format of a tag file without this location is as follows: -# -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths -# or URLs. Note that each tag file must have a unique name (where the name does -# NOT include the path). If a tag file is not located in the directory in which -# doxygen is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = $(DOCDIR)/$(PROJECT).tag - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/false - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option also works with HAVE_DOT disabled, but it is recommended to -# install and use dot, since it yields more powerful graphs. - -CLASS_DIAGRAMS = YES - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = YES - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = $(HAVE_DOT) - -# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is -# allowed to run in parallel. When set to 0 (the default) doxygen will -# base this on the number of processors available in the system. You can set it -# explicitly to a value larger than 0 to get control over the balance -# between CPU load and processing speed. - -DOT_NUM_THREADS = 0 - -# By default doxygen will use the Helvetica font for all dot files that -# doxygen generates. When you want a differently looking font you can specify -# the font name using DOT_FONTNAME. You need to make sure dot is able to find -# the font, which can be done by putting it in a standard location or by setting -# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the -# directory containing the font. - -DOT_FONTNAME = Helvetica - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the Helvetica font. -# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to -# set the path where dot can find it. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = YES - -# If the UML_LOOK tag is enabled, the fields and methods are shown inside -# the class node. If there are many fields or methods and many nodes the -# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS -# threshold limits the number of items for each type to make the size more -# managable. Set this to 0 for no limit. Note that the threshold may be -# exceeded by 50% before the limit is enforced. - -UML_LIMIT_NUM_FIELDS = 10 - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will generate a graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are svg, png, jpg, or gif. -# If left blank png will be used. If you choose svg you need to set -# HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible in IE 9+ (other browsers do not have this requirement). - -DOT_IMAGE_FORMAT = png - -# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to -# enable generation of interactive SVG images that allow zooming and panning. -# Note that this requires a modern browser other than Internet Explorer. -# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you -# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible. Older versions of IE do not have SVG support. - -INTERACTIVE_SVG = NO - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = $(DOT_PATH) - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The MSCFILE_DIRS tag can be used to specify one or more directories that -# contain msc files that are included in the documentation (see the -# \mscfile command). - -MSCFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = NO - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/doxygen.in b/doxygen.in new file mode 100644 index 0000000..dd571fd --- /dev/null +++ b/doxygen.in @@ -0,0 +1,1778 @@ +# Doxyfile 1.8.1.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or sequence of words) that should +# identify the project. Note that if you do not use Doxywizard you need +# to put quotes around the project name if it contains spaces. + +PROJECT_NAME = "@PROJECT@-@PACKAGE_VERSION@" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = @PROJECT_BINARY_DIR@/@DOCDIR@ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = YES + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@/@SRCDIR@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding +# "class=itcl::class" will allow you to use the command class in the +# itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all +# comments according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you +# can mix doxygen, HTML, and XML commands with Markdown formatting. +# Disable only in case of backward compatibilities issues. + +MARKDOWN_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and +# unions with only public data fields will be shown inline in the documentation +# of the scope in which they are defined (i.e. file, namespace, or group +# documentation), provided this scope is documented. If set to NO (the default), +# structs, classes, and unions are shown on a separate page (for HTML and Man +# pages) or section (for LaTeX and RTF). + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be +# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given +# their name and scope. Since this can be an expensive process and often the +# same symbol appear multiple times in the code, doxygen keeps a cache of +# pre-resolved symbols. If the cache is too small doxygen will become slower. +# If the cache is too large, memory is wasted. The cache size is given by this +# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = YES + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = YES + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = YES + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = YES + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = YES + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = YES + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 0 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files +# containing the references data. This must be a list of .bib files. The +# .bib extension is automatically appended if omitted. Using this command +# requires the bibtex tool to be installed. See also +# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style +# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this +# feature you need bibtex and perl available in the search path. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @PROJECT_SOURCE_DIR@/@SRCDIR@ @PROJECT_SOURCE_DIR@/docx + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = @PROJECT_SOURCE_DIR@/src/test @PROJECT_SOURCE_DIR@/src/murmurhash + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = std + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C, C++ and Fortran comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = @GENERATE_HTML@ + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is advised to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# style sheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the style sheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = NO + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of +# entries shown in the various tree structured indices initially; the user +# can expand and collapse entries dynamically later on. Doxygen will expand +# the tree to such a level that at most the specified number of entries are +# visible (unless a fully collapsed tree already exceeds this amount). +# So setting the number of entries 1 will produce a full collapsed tree by +# default. 0 is a special value representing an infinite number of entries +# and will result in a full expanded tree by default. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = @GENERATE_HTMLHELP@ + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = ../@PROJECT@.chm + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = @HHC_PATH@ + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = @GENERATE_CHI@ + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = YES + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) +# at top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. Since the tabs have the same information as the +# navigation tree you can set this option to NO if you already set +# GENERATE_TREEVIEW to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. +# Since the tree basically has the same information as the tab index you +# could consider to set DISABLE_INDEX to NO when enabling this option. + +GENERATE_TREEVIEW = YES + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you may also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to +# the MathJax Content Delivery Network so you can quickly see the result without +# installing MathJax. +# However, it is strongly recommended to install a local +# copy of MathJax from http://www.mathjax.org before deployment. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension +# names that should be enabled during MathJax rendering. + +MATHJAX_EXTENSIONS = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = NO + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = @GENERATE_LATEX@ + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = YES + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = @PAPER_SIZE@ + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = @GENERATE_PDF@ + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = YES + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See +# http://en.wikipedia.org/wiki/BibTeX for more info. + +LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = @GENERATE_RTF@ + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = YES + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load style sheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = @GENERATE_MAN@ + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = @GENERATE_XML@ + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = . + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = _DOXYGEN + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = EASY_TYPE \ + EASY_DESTRUCTOR \ + EASY_METHOD + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. For each +# tag file the location of the external documentation should be added. The +# format of a tag file without this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths +# or URLs. Note that each tag file must have a unique name (where the name does +# NOT include the path). If a tag file is not located in the directory in which +# doxygen is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = @DOCDIR@/@PROJECT@.tag + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/false + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = @HAVE_DOT@ + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will use the Helvetica font for all dot files that +# doxygen generates. When you want a differently looking font you can specify +# the font name using DOT_FONTNAME. You need to make sure dot is able to find +# the font, which can be done by putting it in a standard location or by setting +# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the +# directory containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the Helvetica font. +# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to +# set the path where dot can find it. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = YES + +# If the UML_LOOK tag is enabled, the fields and methods are shown inside +# the class node. If there are many fields or methods and many nodes the +# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS +# threshold limits the number of items for each type to make the size more +# managable. Set this to 0 for no limit. Note that the threshold may be +# exceeded by 50% before the limit is enforced. + +UML_LIMIT_NUM_FIELDS = 10 + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. If you choose svg you need to set +# HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible in IE 9+ (other browsers do not have this requirement). + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you +# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible. Older versions of IE do not have SVG support. + +INTERACTIVE_SVG = NO + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = @DOT_PATH@ + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/eclipse-code-style-formatter.xml b/eclipse-code-style-formatter.xml deleted file mode 100644 index 8be3b29..0000000 --- a/eclipse-code-style-formatter.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/include/CommonAPI/DBus/DBusAddress.hpp b/include/CommonAPI/DBus/DBusAddress.hpp new file mode 100644 index 0000000..926b11b --- /dev/null +++ b/include/CommonAPI/DBus/DBusAddress.hpp @@ -0,0 +1,53 @@ +// Copyright (C) 2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_ADDRESS_HPP_ +#define COMMONAPI_DBUS_ADDRESS_HPP_ + +#include +#include + +#include + +namespace CommonAPI { +namespace DBus { + +class DBusAddress { +public: + COMMONAPI_EXPORT DBusAddress(const std::string &_service = "", + const std::string &_objectPath = "", + const std::string &_interface = ""); + COMMONAPI_EXPORT DBusAddress(const DBusAddress &_source); + COMMONAPI_EXPORT virtual ~DBusAddress(); + + COMMONAPI_EXPORT bool operator==(const DBusAddress &_other) const; + COMMONAPI_EXPORT bool operator!=(const DBusAddress &_other) const; + COMMONAPI_EXPORT bool operator<(const DBusAddress &_other) const; + + COMMONAPI_EXPORT const std::string &getInterface() const; + COMMONAPI_EXPORT void setInterface(const std::string &_interface); + + COMMONAPI_EXPORT const std::string &getObjectPath() const; + COMMONAPI_EXPORT void setObjectPath(const std::string &_objectPath); + + COMMONAPI_EXPORT const std::string &getService() const; + COMMONAPI_EXPORT void setService(const std::string &_service); + +private: + std::string service_; + std::string objectPath_; + std::string interface_; + +friend std::ostream &operator<<(std::ostream &_out, const DBusAddress &_dbusAddress); +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_ADDRESS_HPP_ diff --git a/include/CommonAPI/DBus/DBusAddressTranslator.hpp b/include/CommonAPI/DBus/DBusAddressTranslator.hpp new file mode 100644 index 0000000..6d950e9 --- /dev/null +++ b/include/CommonAPI/DBus/DBusAddressTranslator.hpp @@ -0,0 +1,61 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_ADDRESSTRANSLATOR_HPP_ +#define COMMONAPI_DBUS_ADDRESSTRANSLATOR_HPP_ + +#include +#include +#include + +#include +#include + +namespace CommonAPI { +namespace DBus { + +class DBusAddressTranslator { +public: + COMMONAPI_EXPORT static std::shared_ptr get(); + + COMMONAPI_EXPORT DBusAddressTranslator(); + + COMMONAPI_EXPORT void init(); + + COMMONAPI_EXPORT bool translate(const std::string &_key, DBusAddress &_value); + COMMONAPI_EXPORT bool translate(const CommonAPI::Address &_key, DBusAddress &_value); + + COMMONAPI_EXPORT bool translate(const DBusAddress &_key, std::string &_value); + COMMONAPI_EXPORT bool translate(const DBusAddress &_key, CommonAPI::Address &_value); + + COMMONAPI_EXPORT void insert(const std::string &_address, + const std::string &_service, const std::string &_path, const std::string &_interface); + +private: + COMMONAPI_EXPORT bool readConfiguration(); + + COMMONAPI_EXPORT bool isValid(const std::string &, const char, + bool = false, bool = false, bool = false) const; + +private: + bool isDefault_; + + std::string defaultConfig_; + std::string defaultDomain_; + + std::map forwards_; + std::map backwards_; + + std::mutex mutex_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_ADDRESSTRANSLATOR_HPP_ diff --git a/include/CommonAPI/DBus/DBusAttribute.hpp b/include/CommonAPI/DBus/DBusAttribute.hpp new file mode 100644 index 0000000..3d9170d --- /dev/null +++ b/include/CommonAPI/DBus/DBusAttribute.hpp @@ -0,0 +1,156 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_ATTRIBUTE_HPP_ +#define COMMONAPI_DBUS_DBUS_ATTRIBUTE_HPP_ + +#include +#include +#include + +#include +#include +#include + +namespace CommonAPI { +namespace DBus { + +template +class DBusReadonlyAttribute: public _AttributeType { +public: + typedef typename _AttributeType::ValueType ValueType; + typedef _AttributeDepl ValueTypeDepl; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + + DBusReadonlyAttribute(DBusProxy &_proxy, + const char *setMethodSignature, const char *getMethodName, + _AttributeDepl *_depl = nullptr) + : proxy_(_proxy), + getMethodName_(getMethodName), + setMethodSignature_(setMethodSignature), + depl_(_depl) { + assert(getMethodName); + } + + void getValue(CommonAPI::CallStatus &_status, ValueType &_value, const CommonAPI::CallInfo *_info) const { + CommonAPI::Deployable deployedValue(depl_); + DBusProxyHelper< + DBusSerializableArguments< + >, + DBusSerializableArguments< + CommonAPI::Deployable< + ValueType, + _AttributeDepl + > + > + >::callMethodWithReply(proxy_, getMethodName_, "", (_info ? _info : &defaultCallInfo), _status, deployedValue); + _value = deployedValue.getValue(); + } + + std::future getValueAsync(AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable deployedValue(depl_); + return DBusProxyHelper< + DBusSerializableArguments<>, + DBusSerializableArguments> + >::callMethodAsync(proxy_, getMethodName_, "", (_info ? _info : &defaultCallInfo), + [_callback](CommonAPI::CallStatus _status, CommonAPI::Deployable _response) { + _callback(_status, _response.getValue()); + }, + std::make_tuple(deployedValue)); + } + + protected: + DBusProxy &proxy_; + const char *getMethodName_; + const char *setMethodSignature_; + _AttributeDepl *depl_; +}; + +template +class DBusAttribute: public DBusReadonlyAttribute<_AttributeType, _AttributeDepl> { +public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + + DBusAttribute(DBusProxy &_proxy, + const char *_setMethodName, const char *_setMethodSignature, const char *_getMethodName, + _AttributeDepl *_depl = nullptr) + : DBusReadonlyAttribute<_AttributeType, _AttributeDepl>(_proxy, _setMethodSignature, _getMethodName, _depl), + setMethodName_(_setMethodName), + setMethodSignature_(_setMethodSignature) { + assert(_setMethodName); + assert(_setMethodSignature); + } + + void setValue(const ValueType &_request, CommonAPI::CallStatus &_status, ValueType &_response, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable deployedRequest(_request, this->depl_); + CommonAPI::Deployable deployedResponse(this->depl_); + DBusProxyHelper>, + DBusSerializableArguments> >::callMethodWithReply( + this->proxy_, + setMethodName_, + setMethodSignature_, + (_info ? _info : &defaultCallInfo), + deployedRequest, + _status, + deployedResponse); + _response = deployedResponse.getValue(); + } + + + std::future setValueAsync(const ValueType &_request, AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable deployedRequest(_request, this->depl_); + CommonAPI::Deployable deployedResponse(this->depl_); + return DBusProxyHelper>, + DBusSerializableArguments> >::callMethodAsync( + this->proxy_, + setMethodName_, + setMethodSignature_, + (_info ? _info : &defaultCallInfo), + deployedRequest, + [_callback](CommonAPI::CallStatus _status, CommonAPI::Deployable _response) { + _callback(_status, _response.getValue()); + }, + std::make_tuple(deployedResponse)); + } + + protected: + const char* setMethodName_; + const char* setMethodSignature_; +}; + +template +class DBusObservableAttribute: public _AttributeType { +public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::ValueTypeDepl ValueTypeDepl; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + typedef typename _AttributeType::ChangedEvent ChangedEvent; + + template + DBusObservableAttribute(DBusProxy &_proxy, + const char *_changedEventName, + _AttributeTypeArguments... arguments) + : _AttributeType(_proxy, arguments...), + changedEvent_(_proxy, _changedEventName, this->setMethodSignature_, + std::make_tuple(CommonAPI::Deployable(this->depl_))) { + } + + ChangedEvent &getChangedEvent() { + return changedEvent_; + } + + protected: + DBusEvent > changedEvent_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUS_ATTRIBUTE_HPP_ diff --git a/include/CommonAPI/DBus/DBusClientId.hpp b/include/CommonAPI/DBus/DBusClientId.hpp new file mode 100644 index 0000000..72dc1c5 --- /dev/null +++ b/include/CommonAPI/DBus/DBusClientId.hpp @@ -0,0 +1,48 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUSCLIENTID_HPP_ +#define COMMONAPI_DBUS_DBUSCLIENTID_HPP_ + +#include +#include + +namespace CommonAPI { +namespace DBus { + +class DBusMessage; + +/** + * \brief Implementation of CommonAPI::ClientId for DBus + * + * This class represents the DBus specific implementation of CommonAPI::ClientId. + * It internally uses a string to identify clients. This string is the unique sender id used by dbus. + */ +class DBusClientId + : public CommonAPI::ClientId { + friend struct std::hash; + +public: + COMMONAPI_EXPORT DBusClientId(std::string dbusId); + + COMMONAPI_EXPORT bool operator==(CommonAPI::ClientId& clientIdToCompare); + COMMONAPI_EXPORT bool operator==(DBusClientId& clientIdToCompare); + COMMONAPI_EXPORT size_t hashCode(); + + COMMONAPI_EXPORT const char * getDBusId(); + + COMMONAPI_EXPORT DBusMessage createMessage(const std::string objectPath, const std::string interfaceName, const std::string signalName) const; +protected: + std::string dbusId_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // DBUSCLIENTID_HPP_ diff --git a/include/CommonAPI/DBus/DBusConfig.hpp b/include/CommonAPI/DBus/DBusConfig.hpp new file mode 100644 index 0000000..dae6b7a --- /dev/null +++ b/include/CommonAPI/DBus/DBusConfig.hpp @@ -0,0 +1,24 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUSCONFIG_HPP_ +#define COMMONAPI_DBUS_DBUSCONFIG_HPP_ + +#include + +namespace CommonAPI { +namespace DBus { + +static const Timeout_t DEFAULT_SEND_TIMEOUT_MS = 5000; +static CommonAPI::CallInfo defaultCallInfo(DEFAULT_SEND_TIMEOUT_MS); + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUSCONFIG_HPP_ diff --git a/include/CommonAPI/DBus/DBusConnection.hpp b/include/CommonAPI/DBus/DBusConnection.hpp new file mode 100644 index 0000000..436cfab --- /dev/null +++ b/include/CommonAPI/DBus/DBusConnection.hpp @@ -0,0 +1,246 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_CONNECTION_HPP_ +#define COMMONAPI_DBUS_DBUS_CONNECTION_HPP_ + +#include + +#include + +#include +#include +#include +#include +#include +#include + +namespace CommonAPI { +namespace DBus { + +class DBusObjectManager; + +class DBusConnectionStatusEvent + : public DBusProxyConnection::ConnectionStatusEvent { +public: + DBusConnectionStatusEvent(DBusConnection* dbusConnection); + virtual ~DBusConnectionStatusEvent() {} + + protected: + virtual void onListenerAdded(const Listener& listener); + + // TODO: change to std::weak_ptr connection_; + DBusConnection* dbusConnection_; + +friend class DBusConnection; +}; + +struct WatchContext { + WatchContext(std::weak_ptr mainLoopContext, DispatchSource* dispatchSource) : + mainLoopContext_(mainLoopContext), dispatchSource_(dispatchSource) { + } + + std::weak_ptr mainLoopContext_; + DispatchSource* dispatchSource_; +}; + +class DBusConnection + : public DBusProxyConnection, + public std::enable_shared_from_this { +public: + COMMONAPI_EXPORT static std::shared_ptr getBus(const DBusType_t &_type); + COMMONAPI_EXPORT static std::shared_ptr wrap(::DBusConnection *_connection); + + COMMONAPI_EXPORT DBusConnection(DBusType_t _type); + COMMONAPI_EXPORT DBusConnection(const DBusConnection&) = delete; + COMMONAPI_EXPORT DBusConnection(::DBusConnection* libDbusConnection); + COMMONAPI_EXPORT virtual ~DBusConnection(); + + COMMONAPI_EXPORT DBusConnection& operator=(const DBusConnection&) = delete; + + COMMONAPI_EXPORT DBusType_t getBusType() const; + + COMMONAPI_EXPORT bool connect(bool startDispatchThread = true); + COMMONAPI_EXPORT bool connect(DBusError& dbusError, bool startDispatchThread = true); + COMMONAPI_EXPORT void disconnect(); + + COMMONAPI_EXPORT virtual bool isConnected() const; + + COMMONAPI_EXPORT virtual ConnectionStatusEvent& getConnectionStatusEvent(); + + COMMONAPI_EXPORT virtual bool requestServiceNameAndBlock(const std::string& serviceName) const; + COMMONAPI_EXPORT virtual bool releaseServiceName(const std::string& serviceName) const; + + COMMONAPI_EXPORT bool sendDBusMessage(const DBusMessage& dbusMessage/*, uint32_t* allocatedSerial = NULL*/) const; + + COMMONAPI_EXPORT std::future sendDBusMessageWithReplyAsync( + const DBusMessage& dbusMessage, + std::unique_ptr dbusMessageReplyAsyncHandler, + const CommonAPI::CallInfo *_info) const; + + COMMONAPI_EXPORT DBusMessage sendDBusMessageWithReplyAndBlock(const DBusMessage& dbusMessage, + DBusError& dbusError, + const CommonAPI::CallInfo *_info) const; + + COMMONAPI_EXPORT virtual bool addObjectManagerSignalMemberHandler(const std::string& dbusBusName, + DBusSignalHandler* dbusSignalHandler); + COMMONAPI_EXPORT virtual bool removeObjectManagerSignalMemberHandler(const std::string& dbusBusName, + DBusSignalHandler* dbusSignalHandler); + + COMMONAPI_EXPORT DBusSignalHandlerToken addSignalMemberHandler(const std::string& objectPath, + const std::string& interfaceName, + const std::string& interfaceMemberName, + const std::string& inuint32_tterfaceMemberSignature, + DBusSignalHandler* dbusSignalHandler, + const bool justAddFilter = false); + + COMMONAPI_EXPORT DBusProxyConnection::DBusSignalHandlerToken subscribeForSelectiveBroadcast(bool& subscriptionAccepted, + const std::string& objectPath, + const std::string& interfaceName, + const std::string& interfaceMemberName, + const std::string& interfaceMemberSignature, + DBusSignalHandler* dbusSignalHandler, + DBusProxy* callingProxy); + + COMMONAPI_EXPORT void unsubscribeFromSelectiveBroadcast(const std::string& eventName, + DBusProxyConnection::DBusSignalHandlerToken subscription, + DBusProxy* callingProxy, + const DBusSignalHandler* dbusSignalHandler); + + COMMONAPI_EXPORT void registerObjectPath(const std::string& objectPath); + COMMONAPI_EXPORT void unregisterObjectPath(const std::string& objectPath); + + COMMONAPI_EXPORT bool removeSignalMemberHandler(const DBusSignalHandlerToken& dbusSignalHandlerToken, + const DBusSignalHandler* dbusSignalHandler = NULL); + COMMONAPI_EXPORT bool readWriteDispatch(int timeoutMilliseconds = -1); + + COMMONAPI_EXPORT virtual const std::shared_ptr getDBusObjectManager(); + + COMMONAPI_EXPORT void setObjectPathMessageHandler(DBusObjectPathMessageHandler); + COMMONAPI_EXPORT bool isObjectPathMessageHandlerSet(); + + COMMONAPI_EXPORT virtual bool attachMainLoopContext(std::weak_ptr); + + COMMONAPI_EXPORT bool isDispatchReady(); + COMMONAPI_EXPORT bool singleDispatch(); + + typedef std::tuple DBusSignalMatchRuleTuple; + typedef std::pair DBusSignalMatchRuleMapping; + typedef std::unordered_map DBusSignalMatchRulesMap; + private: + COMMONAPI_EXPORT void dispatch(); + COMMONAPI_EXPORT void suspendDispatching() const; + COMMONAPI_EXPORT void resumeDispatching() const; + + std::thread* dispatchThread_; + bool stopDispatching_; + + std::weak_ptr mainLoopContext_; + DispatchSource* dispatchSource_; + WatchContext* watchContext_; + + mutable std::recursive_mutex sendLock_; + mutable bool pauseDispatching_; + mutable std::mutex dispatchSuspendLock_; + + COMMONAPI_EXPORT void addLibdbusSignalMatchRule(const std::string& objectPath, + const std::string& interfaceName, + const std::string& interfaceMemberName, + const bool justAddFilter = false); + + COMMONAPI_EXPORT void removeLibdbusSignalMatchRule(const std::string& objectPath, + const std::string& interfaceName, + const std::string& interfaceMemberName); + + COMMONAPI_EXPORT void initLibdbusSignalFilterAfterConnect(); + ::DBusHandlerResult onLibdbusSignalFilter(::DBusMessage* libdbusMessage); + + COMMONAPI_EXPORT void initLibdbusObjectPathHandlerAfterConnect(); + ::DBusHandlerResult onLibdbusObjectPathMessage(::DBusMessage* libdbusMessage); + + COMMONAPI_EXPORT static void onLibdbusPendingCallNotifyThunk(::DBusPendingCall* libdbusPendingCall, void* userData); + COMMONAPI_EXPORT static void onLibdbusDataCleanup(void* userData); + + COMMONAPI_EXPORT static ::DBusHandlerResult onLibdbusObjectPathMessageThunk(::DBusConnection* libdbusConnection, + ::DBusMessage* libdbusMessage, + void* userData); + + COMMONAPI_EXPORT static ::DBusHandlerResult onLibdbusSignalFilterThunk(::DBusConnection* libdbusConnection, + ::DBusMessage* libdbusMessage, + void* userData); + + COMMONAPI_EXPORT static dbus_bool_t onAddWatch(::DBusWatch* libdbusWatch, void* data); + COMMONAPI_EXPORT static void onRemoveWatch(::DBusWatch* libdbusWatch, void* data); + COMMONAPI_EXPORT static void onToggleWatch(::DBusWatch* libdbusWatch, void* data); + + COMMONAPI_EXPORT static dbus_bool_t onAddTimeout(::DBusTimeout* dbus_timeout, void* data); + COMMONAPI_EXPORT static void onRemoveTimeout(::DBusTimeout* dbus_timeout, void* data); + COMMONAPI_EXPORT static void onToggleTimeout(::DBusTimeout* dbus_timeout, void* data); + + COMMONAPI_EXPORT static void onWakeupMainContext(void* data); + + COMMONAPI_EXPORT void enforceAsynchronousTimeouts() const; + COMMONAPI_EXPORT static const DBusObjectPathVTable* getDBusObjectPathVTable(); + + ::DBusConnection* connection_; + mutable std::mutex connectionGuard_; + + std::mutex signalGuard_; + std::mutex objectManagerGuard_; + std::mutex serviceRegistryGuard_; + + DBusType_t busType_; + + std::shared_ptr dbusObjectManager_; + + DBusConnectionStatusEvent dbusConnectionStatusEvent_; + + DBusSignalMatchRulesMap dbusSignalMatchRulesMap_; + + DBusSignalHandlerTable dbusSignalHandlerTable_; + + std::unordered_map dbusObjectManagerSignalMatchRulesMap_; + std::unordered_multimap dbusObjectManagerSignalHandlerTable_; + std::mutex dbusObjectManagerSignalGuard_; + + COMMONAPI_EXPORT bool addObjectManagerSignalMatchRule(const std::string& dbusBusName); + COMMONAPI_EXPORT bool removeObjectManagerSignalMatchRule(const std::string& dbusBusName); + + COMMONAPI_EXPORT bool addLibdbusSignalMatchRule(const std::string& dbusMatchRule); + COMMONAPI_EXPORT bool removeLibdbusSignalMatchRule(const std::string& dbusMatchRule); + + std::atomic_size_t libdbusSignalMatchRulesCount_; + + // objectPath, referenceCount + typedef std::unordered_map LibdbusRegisteredObjectPathHandlersTable; + LibdbusRegisteredObjectPathHandlersTable libdbusRegisteredObjectPaths_; + + DBusObjectPathMessageHandler dbusObjectMessageHandler_; + + mutable std::unordered_map connectionNameCount_; + + typedef std::pair > TimeoutMapElement; + mutable std::map> timeoutMap_; + + typedef std::pair MainloopTimeout_t; + mutable std::list mainloopTimeouts_; + + mutable std::mutex enforceTimeoutMutex_; + mutable std::condition_variable enforceTimeoutCondition_; + + mutable std::shared_ptr enforcerThread_; + mutable std::mutex enforcerThreadMutex_; + bool enforcerThreadCancelled_; +}; + + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUS_CONNECTION_HPP_ diff --git a/include/CommonAPI/DBus/DBusDaemonProxy.hpp b/include/CommonAPI/DBus/DBusDaemonProxy.hpp new file mode 100644 index 0000000..1333548 --- /dev/null +++ b/include/CommonAPI/DBus/DBusDaemonProxy.hpp @@ -0,0 +1,94 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_DAEMON_PROXY_HPP_ +#define COMMONAPI_DBUS_DBUS_DAEMON_PROXY_HPP_ + +#include +#include +#include + +#include + +#include +#include +#include + +namespace CommonAPI { +namespace DBus { + +class StaticInterfaceVersionAttribute: public InterfaceVersionAttribute { + public: + StaticInterfaceVersionAttribute(const uint32_t& majorValue, const uint32_t& minorValue); + + void getValue(CommonAPI::CallStatus& callStatus, Version &_version, const CommonAPI::CallInfo *_info) const; + std::future getValueAsync(AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info); + + private: + Version version_; +}; + + +class DBusDaemonProxy : public DBusProxyBase { + public: + typedef Event NameOwnerChangedEvent; + + typedef std::unordered_map PropertyDictStub; + typedef std::unordered_map InterfaceToPropertyDict; + typedef std::unordered_map DBusObjectToInterfaceDict; + + typedef std::function)> ListNamesAsyncCallback; + typedef std::function NameHasOwnerAsyncCallback; + typedef std::function GetManagedObjectsAsyncCallback; + typedef std::function GetNameOwnerAsyncCallback; + + COMMONAPI_EXPORT DBusDaemonProxy(const std::shared_ptr& dbusConnection); + COMMONAPI_EXPORT virtual ~DBusDaemonProxy() {} + + COMMONAPI_EXPORT virtual bool isAvailable() const; + COMMONAPI_EXPORT virtual bool isAvailableBlocking() const; + COMMONAPI_EXPORT virtual ProxyStatusEvent& getProxyStatusEvent(); + + COMMONAPI_EXPORT virtual InterfaceVersionAttribute& getInterfaceVersionAttribute(); + + COMMONAPI_EXPORT void init(); + + COMMONAPI_EXPORT static const char* getInterfaceId(); + + COMMONAPI_EXPORT NameOwnerChangedEvent& getNameOwnerChangedEvent(); + + COMMONAPI_EXPORT void listNames(CommonAPI::CallStatus& callStatus, std::vector& busNames) const; + COMMONAPI_EXPORT std::future listNamesAsync(ListNamesAsyncCallback listNamesAsyncCallback) const; + + COMMONAPI_EXPORT void nameHasOwner(const std::string& busName, CommonAPI::CallStatus& callStatus, bool& hasOwner) const; + COMMONAPI_EXPORT std::future nameHasOwnerAsync(const std::string& busName, + NameHasOwnerAsyncCallback nameHasOwnerAsyncCallback) const; + + COMMONAPI_EXPORT std::future getManagedObjectsAsync(const std::string& forDBusServiceName, + GetManagedObjectsAsyncCallback) const; + + /** + * Get the unique connection/bus name of the primary owner of the name given + * + * @param busName Name to get the owner of + * @param getNameOwnerAsyncCallback callback functor + * + * @return CallStatus::REMOTE_ERROR if the name is unknown, otherwise CallStatus::SUCCESS and the uniq name of the owner + */ + std::future getNameOwnerAsync(const std::string& busName, GetNameOwnerAsyncCallback getNameOwnerAsyncCallback) const; + + private: + DBusEvent nameOwnerChangedEvent_; + StaticInterfaceVersionAttribute interfaceVersionAttribute_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUS_DAEMON_PROXY_HPP_ diff --git a/include/CommonAPI/DBus/DBusDeployment.hpp b/include/CommonAPI/DBus/DBusDeployment.hpp new file mode 100644 index 0000000..21ad78a --- /dev/null +++ b/include/CommonAPI/DBus/DBusDeployment.hpp @@ -0,0 +1,37 @@ +// Copyright (C) 2014-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUSDEPLOYMENTS_HPP_ +#define COMMONAPI_DBUS_DBUSDEPLOYMENTS_HPP_ + +#include +#include + +#include +#include + +namespace CommonAPI { +namespace DBus { + +template +struct VariantDeployment : CommonAPI::Deployment<_Types...> { + VariantDeployment(bool _isFreeDesktop, _Types*... _t) + : CommonAPI::Deployment<_Types...>(_t...), + isFreeDesktop_(_isFreeDesktop) { + } + + bool isFreeDesktop_; +}; + +extern COMMONAPI_IMPORT_EXPORT VariantDeployment<> freedesktopVariant; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUSDEPLOYMENTS_HPP_ diff --git a/include/CommonAPI/DBus/DBusError.hpp b/include/CommonAPI/DBus/DBusError.hpp new file mode 100644 index 0000000..6e8f170 --- /dev/null +++ b/include/CommonAPI/DBus/DBusError.hpp @@ -0,0 +1,45 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_ERROR_HPP_ +#define COMMONAPI_DBUS_DBUS_ERROR_HPP_ + +#include +#include + +#include + +namespace CommonAPI { +namespace DBus { + +class DBusConnection; + + +class COMMONAPI_EXPORT DBusError { + public: + DBusError(); + ~DBusError(); + + operator bool() const; + + void clear(); + + std::string getName() const; + std::string getMessage() const; + + private: + ::DBusError libdbusError_; + + friend class DBusConnection; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUS_ERROR_HPP_ diff --git a/include/CommonAPI/DBus/DBusEvent.hpp b/include/CommonAPI/DBus/DBusEvent.hpp new file mode 100644 index 0000000..a3bfe01 --- /dev/null +++ b/include/CommonAPI/DBus/DBusEvent.hpp @@ -0,0 +1,91 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_EVENT_HPP_ +#define COMMONAPI_DBUS_DBUS_EVENT_HPP_ + +#include +#include +#include +#include +#include +#include +#include + +namespace CommonAPI { +namespace DBus { + +template +class DBusEvent: public _Event, public DBusProxyConnection::DBusSignalHandler { +public: + typedef typename _Event::Listener Listener; + + DBusEvent(DBusProxyBase &_proxy, + const std::string &_name, const std::string &_signature, + std::tuple<_Arguments...> _arguments) + : proxy_(_proxy), + name_(_name), signature_(_signature), + arguments_(_arguments) { + + interface_ = proxy_.getDBusAddress().getInterface(); + path_ = proxy_.getDBusAddress().getObjectPath(); + } + + DBusEvent(DBusProxyBase &_proxy, + const std::string &_name, const std::string &_signature, + const std::string &_path, const std::string &_interface, + std::tuple<_Arguments...> _arguments) + : proxy_(_proxy), + name_(_name), signature_(_signature), + path_(_path), interface_(_interface), + arguments_(_arguments) { + } + + virtual ~DBusEvent() { + proxy_.removeSignalMemberHandler(subscription_, this); + } + + virtual void onSignalDBusMessage(const DBusMessage &_message) { + handleSignalDBusMessage(_message, typename make_sequence::type()); + } + protected: + virtual void onFirstListenerAdded(const Listener&) { + subscription_ = proxy_.addSignalMemberHandler( + path_, interface_, name_, signature_, this); + } + + virtual void onLastListenerRemoved(const Listener&) { + proxy_.removeSignalMemberHandler(subscription_, this); + } + + template + inline void handleSignalDBusMessage(const DBusMessage &_message, index_sequence<_Indices...>) { + DBusInputStream input(_message); + if (DBusSerializableArguments< + _Arguments... + >::deserialize(input, std::get<_Indices>(arguments_)...)) { + this->notifyListeners(std::get<_Indices>(arguments_)...); + } + } + + DBusProxyBase &proxy_; + + std::string name_; + std::string signature_; + std::string path_; + std::string interface_; + + DBusProxyConnection::DBusSignalHandlerToken subscription_; + std::tuple<_Arguments...> arguments_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_DBUS_EVENT_HPP_ diff --git a/include/CommonAPI/DBus/DBusFactory.hpp b/include/CommonAPI/DBus/DBusFactory.hpp new file mode 100644 index 0000000..fa0808b --- /dev/null +++ b/include/CommonAPI/DBus/DBusFactory.hpp @@ -0,0 +1,114 @@ +// Copyright (C) 2013-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_FACTORY_HPP_ +#define COMMONAPI_DBUS_FACTORY_HPP_ + +#include + +#include +#include +#include + +namespace CommonAPI { +namespace DBus { + +class DBusAddress; +class DBusProxy; +class DBusProxyConnection; +class DBusStubAdapter; + +typedef std::shared_ptr +(*ProxyCreateFunction)(const DBusAddress &_address, + const std::shared_ptr &_connection); + +typedef std::shared_ptr +(*StubAdapterCreateFunction) (const DBusAddress &_address, + const std::shared_ptr &_connection, + const std::shared_ptr &_stub); + +class Factory : public CommonAPI::Factory { +public: + COMMONAPI_EXPORT static std::shared_ptr get(); + + COMMONAPI_EXPORT Factory(); + COMMONAPI_EXPORT virtual ~Factory(); + + COMMONAPI_EXPORT void registerProxyCreateMethod(const std::string &_address, + ProxyCreateFunction _function); + + COMMONAPI_EXPORT void registerStubAdapterCreateMethod(const std::string &_address, + StubAdapterCreateFunction _function); + + + COMMONAPI_EXPORT std::shared_ptr createProxy(const std::string &_domain, + const std::string &_interface, + const std::string &_instance, + const ConnectionId_t &_connectionId); + + COMMONAPI_EXPORT std::shared_ptr createProxy(const std::string &_domain, + const std::string &_interface, + const std::string &_instance, + std::shared_ptr _context); + + COMMONAPI_EXPORT bool registerStub(const std::string &_domain, + const std::string &_interface, + const std::string &_instance, + std::shared_ptr _stub, + const ConnectionId_t &_connectionId); + + COMMONAPI_EXPORT bool registerStub(const std::string &_domain, + const std::string &_interface, + const std::string &_instance, + std::shared_ptr _stub, + std::shared_ptr _context); + + COMMONAPI_EXPORT bool unregisterStub(const std::string &_domain, + const std::string &_interface, + const std::string &_instance); + + // Services + COMMONAPI_EXPORT std::shared_ptr getRegisteredService(const std::string &_address); + + // Managed services + COMMONAPI_EXPORT std::shared_ptr createDBusStubAdapter(const std::shared_ptr &_stub, + const std::string &_interface, + const DBusAddress &_address, + const std::shared_ptr &_connection); + COMMONAPI_EXPORT bool registerManagedService(const std::shared_ptr &_adapter); + COMMONAPI_EXPORT bool unregisterManagedService(const std::string &_address); + +private: + COMMONAPI_EXPORT std::shared_ptr getConnection(const ConnectionId_t &); + COMMONAPI_EXPORT std::shared_ptr getConnection(std::shared_ptr); + COMMONAPI_EXPORT bool registerStubAdapter(std::shared_ptr); + COMMONAPI_EXPORT bool unregisterStubAdapter(std::shared_ptr); + + // Managed services + typedef std::unordered_map> ServicesMap; + COMMONAPI_EXPORT bool unregisterManagedService(const ServicesMap::iterator &); + +private: + static std::shared_ptr theFactory; + + std::map> connections_; + std::map> contextConnections_; + + std::map proxyCreateFunctions_; + std::map stubAdapterCreateFunctions_; + + ServicesMap services_; + + DBusType_t defaultBusType_; +}; + +} // namespace DBus +} // namespace CommonAPI + +#endif // COMMONAPI_DBUS_FACTORY_HPP_ diff --git a/include/CommonAPI/DBus/DBusFreedesktopAttribute.hpp b/include/CommonAPI/DBus/DBusFreedesktopAttribute.hpp new file mode 100644 index 0000000..dc485cb --- /dev/null +++ b/include/CommonAPI/DBus/DBusFreedesktopAttribute.hpp @@ -0,0 +1,451 @@ +// Copyright (C) 2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#if !defined (COMMONAPI_INTERNAL_COMPILATION) +#error "Only can be included directly, this file may disappear or change contents." +#endif + +#ifndef COMMONAPI_DBUS_DBUS_FREEDESKTOPATTRIBUTE_HPP_ +#define COMMONAPI_DBUS_DBUS_FREEDESKTOPATTRIBUTE_HPP_ + +#include + +namespace CommonAPI { +namespace DBus { + +template +class DBusFreedesktopReadonlyAttribute: public _AttributeType { +public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + + DBusFreedesktopReadonlyAttribute(DBusProxy &_proxy, const std::string &_interfaceName, const std::string &_propertyName) + : proxy_(_proxy), + interfaceName_(_interfaceName), + propertyName_(_propertyName) { + } + + void getValue(CommonAPI::CallStatus &_status, ValueType &_value, const CommonAPI::CallInfo *_info) const { + CommonAPI::Deployable, VariantDeployment<>> deployedValue(&freedesktopVariant); + DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string + >, + DBusSerializableArguments< + CommonAPI::Deployable, VariantDeployment<>> + > + >::callMethodWithReply( + proxy_, + "org.freedesktop.DBus.Properties", + "Get", + "ss", + (_info ? _info : &defaultCallInfo), + interfaceName_, + propertyName_, + _status, + deployedValue); + + _value = deployedValue.getValue().template get(); + } + + std::future getValueAsync(AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable, VariantDeployment<>> deployedValue(&freedesktopVariant); + return DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string + >, + DBusSerializableArguments< + CommonAPI::Deployable, VariantDeployment<>> + > + >::callMethodAsync( + proxy_, + "org.freedesktop.DBus.Properties", + "Get", + "ss", + (_info ? _info : &defaultCallInfo), + interfaceName_, + propertyName_, + [_callback](CommonAPI::CallStatus _status, CommonAPI::Deployable, VariantDeployment<>> _value) { + _callback(_status, _value.getValue().template get()); + }, + std::make_tuple(deployedValue) + ); + } + +protected: + DBusProxy &proxy_; + std::string interfaceName_; + std::string propertyName_; +}; + +template +class DBusFreedesktopUnionReadonlyAttribute: public _AttributeType { +public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + + DBusFreedesktopUnionReadonlyAttribute(DBusProxy &_proxy, const std::string &_interfaceName, const std::string &_propertyName) + : proxy_(_proxy), + interfaceName_(_interfaceName), + propertyName_(_propertyName) { + } + + void getValue(CommonAPI::CallStatus &_status, ValueType &_value, const CommonAPI::CallInfo *_info) const { + CommonAPI::Deployable> deployedValue(&freedesktopVariant); + DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string + >, + DBusSerializableArguments< + CommonAPI::Deployable> + > + >::callMethodWithReply( + proxy_, + "org.freedesktop.DBus.Properties", + "Get", + "ss", + (_info ? _info : &defaultCallInfo), + interfaceName_, + propertyName_, + _status, + deployedValue); + + _value = deployedValue.getValue().template get(); + } + + std::future getValueAsync(AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable> deployedValue(&freedesktopVariant); + return DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string + >, + DBusSerializableArguments< + CommonAPI::Deployable> + > + >::callMethodAsync( + proxy_, + "org.freedesktop.DBus.Properties", + "Get", + "ss", + (_info ? _info : &defaultCallInfo), + interfaceName_, + propertyName_, + [_callback](CommonAPI::CallStatus _status, CommonAPI::Deployable> _value) { + _callback(_status, _value.getValue().template get()); + }, + std::make_tuple(deployedValue) + ); + } + +protected: + DBusProxy &proxy_; + std::string interfaceName_; + std::string propertyName_; +}; + +template +class DBusFreedesktopAttribute + : public DBusFreedesktopReadonlyAttribute<_AttributeType> { + public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + typedef typename _AttributeType::ChangedEvent ChangedEvent; + + DBusFreedesktopAttribute(DBusProxy &_proxy, const std::string &_interfaceName, const std::string &_propertyName) + : DBusFreedesktopReadonlyAttribute<_AttributeType>(_proxy, _interfaceName, _propertyName) { + } + + void setValue(const ValueType &_request, CommonAPI::CallStatus &_status, ValueType &_response, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable, VariantDeployment<>> deployedVariant(_request, &freedesktopVariant); + DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string, CommonAPI::Deployable, VariantDeployment<>> + >, + DBusSerializableArguments< + > + >::callMethodWithReply( + DBusFreedesktopReadonlyAttribute<_AttributeType>::proxy_, + "org.freedesktop.DBus.Properties", + "Set", + "ssv", + (_info ? _info : &defaultCallInfo), + DBusFreedesktopReadonlyAttribute<_AttributeType>::interfaceName_, + DBusFreedesktopReadonlyAttribute<_AttributeType>::propertyName_, + deployedVariant, + _status); + _response = _request; + } + + std::future setValueAsync(const ValueType &_request, AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable, VariantDeployment<>> deployedVariant(_request, &freedesktopVariant); + return DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string, CommonAPI::Deployable, VariantDeployment<>> + >, + DBusSerializableArguments< + > + >::callMethodAsync( + DBusFreedesktopReadonlyAttribute<_AttributeType>::proxy_, + "org.freedesktop.DBus.Properties", + "Set", + "ssv", + (_info ? _info : &defaultCallInfo), + DBusFreedesktopReadonlyAttribute<_AttributeType>::interfaceName_, + DBusFreedesktopReadonlyAttribute<_AttributeType>::propertyName_, + deployedVariant, + [_callback, deployedVariant](CommonAPI::CallStatus _status) { + _callback(_status, deployedVariant.getValue().template get()); + }, + std::tuple<>()); + } +}; + +template +class DBusFreedesktopUnionAttribute + : public DBusFreedesktopReadonlyAttribute<_AttributeType> { + public: + typedef typename _AttributeType::ValueType ValueType; + typedef typename _AttributeType::AttributeAsyncCallback AttributeAsyncCallback; + + DBusFreedesktopUnionAttribute(DBusProxy &_proxy, const std::string &_interfaceName, const std::string &_propertyName) + : DBusFreedesktopUnionReadonlyAttribute<_AttributeType>(_proxy, _interfaceName, _propertyName) { + } + + void setValue(const ValueType &_request, CommonAPI::CallStatus &_status, ValueType &_response, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable> deployedVariant(_request, &freedesktopVariant); + DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string, CommonAPI::Deployable> + >, + DBusSerializableArguments< + > + >::callMethodWithReply( + DBusFreedesktopReadonlyAttribute<_AttributeType>::proxy_, + "org.freedesktop.DBus.Properties", + "Set", + "ssv", + (_info ? _info : &defaultCallInfo), + DBusFreedesktopReadonlyAttribute<_AttributeType>::interfaceName_, + DBusFreedesktopReadonlyAttribute<_AttributeType>::propertyName_, + deployedVariant, + _status); + _response = _request; + } + + std::future setValueAsync(const ValueType &_request, AttributeAsyncCallback _callback, const CommonAPI::CallInfo *_info) { + CommonAPI::Deployable> deployedVariant(_request, &freedesktopVariant); + return DBusProxyHelper< + DBusSerializableArguments< + std::string, std::string, CommonAPI::Deployable> + >, + DBusSerializableArguments< + > + >::callMethodAsync( + DBusFreedesktopReadonlyAttribute<_AttributeType>::proxy_, + "org.freedesktop.DBus.Properties", + "Set", + "ssv", + (_info ? _info : &defaultCallInfo), + DBusFreedesktopReadonlyAttribute<_AttributeType>::interfaceName_, + DBusFreedesktopReadonlyAttribute<_AttributeType>::propertyName_, + deployedVariant, + [_callback](CommonAPI::CallStatus _status, CommonAPI::Deployable> _value) { + _callback(_status, _value.getValue().template get()); + }, + std::make_tuple(deployedVariant)); + } +}; + +template +class LegacyEvent; + +template