namespace gpr::readcon_db_abi¶
Overview¶
namespace readcon_db_abi {
// structs
struct Stamp;
// global functions
std::string describe(const Stamp& stamp);
std::string mismatch(const Stamp& header, const Stamp& library, bool library_accepts);
Stamp headerStamp();
Stamp libraryStamp();
std::string loadedLibraryMismatch();
void requireCompatibleLibrary();
} // namespace readcon_db_abi
Detailed Documentation¶
Global Functions¶
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.
std::string loadedLibraryMismatch()
The mismatch message for the loaded library; empty when compatible.
void requireCompatibleLibrary()
Checks the loaded library once, before the first readcon-db call. Throws std::runtime_error on a mismatch; there is no fallback.