8#ifndef IMPKERNEL_VERSION_INFO_H
9#define IMPKERNEL_VERSION_INFO_H
11#include <IMP/kernel_config.h>
18#include <cereal/access.hpp>
21IMPKERNEL_BEGIN_NAMESPACE
36 std::string get_module()
const {
return module_; }
38 std::string get_version()
const {
return version_; }
41 "Attempting to use uninitialized version info");
42 out << module_ <<
" " << version_;
47 std::string module_, version_;
48 friend class cereal::access;
50 template<
class Archive>
void serialize(Archive &ar) {
51 ar(module_, version_);
56IMPKERNEL_END_NAMESPACE
Base class for a simple primitive-like type.
Helper macros for throwing and handling exceptions.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Version and module information for Objects.
VersionInfo(std::string module, std::string version)
Create a VersionInfo object with the given module and version.
Helper macros for implementing comparisons of IMP objects.
#define IMP_COMPARISONS_2(Name, f0, f1)
Implement comparison in a class using field as the variable to compare.
Exception definitions and assertions.
IMP::Vector< VersionInfo > VersionInfos
Macros to help with objects that can be printed to a stream.
#define IMP_SHOWABLE_INLINE(Name, how_to_show)
Declare the methods needed by an object that can be printed.
Macros to help in implementing Value objects.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.