.. index:: pair: namespace; gpr::readcon_db_abi .. _doxid-namespacegpr_1_1readcon__db__abi: namespace gpr::readcon_db_abi ============================= .. toctree:: :hidden: struct_gpr_readcon_db_abi_Stamp.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace readcon_db_abi { // structs struct :ref:`Stamp`; // global functions std::string :target:`describe`(const :ref:`Stamp`& stamp); std::string :ref:`mismatch`(const :ref:`Stamp`& header, const :ref:`Stamp`& library, bool library_accepts); :ref:`Stamp` :target:`headerStamp`(); :ref:`Stamp` :target:`libraryStamp`(); std::string :ref:`loadedLibraryMismatch`(); void :ref:`requireCompatibleLibrary`(); } // namespace readcon_db_abi .. _details-namespacegpr_1_1readcon__db__abi: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; mismatch .. _doxid-namespacegpr_1_1readcon__db__abi_1a42367c205ae4cd4c994e48615a20e749: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string mismatch(const :ref:`Stamp`& header, const :ref:`Stamp`& library, bool library_accepts) Empty when the library accepts the header's stamp and agrees with it on major and layout revision; otherwise a message naming both stamps. ``library_accepts`` is the result of rkrdb_abi_compatible on the header's stamp. .. index:: pair: function; loadedLibraryMismatch .. _doxid-namespacegpr_1_1readcon__db__abi_1a1367fdd4cb4b300954d74ffd8698e2b8: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string loadedLibraryMismatch() The mismatch message for the loaded library; empty when compatible. .. index:: pair: function; requireCompatibleLibrary .. _doxid-namespacegpr_1_1readcon__db__abi_1aa077e63a876ce4ca5ea75b2f144e4cdf: .. ref-code-block:: cpp :class: doxyrest-title-code-block void requireCompatibleLibrary() Checks the loaded library once, before the first readcon-db call. Throws std::runtime_error on a mismatch; there is no fallback.