Build info#
#include "navground/core/build_info.h"
Stores build-time information.
Public Functions
Gets the version string.
- Returns:
The version string:
"<mayor>.<minor>.<patch>"
Gets the date string.
- Returns:
The date string.
Returns a string representation of the object.
- Returns:
String representation of the object.
Returns a string representation of the object.
- Returns:
String representation of the object.
Construct an instance.
- Parameters:
version – [in] The version ({major, minor, patch})
git – [in] The output of
git describe
date – [in] The build date.
floating_point_type – [in] Which type is used for floating-point numbers.
Construct an instance.
- Parameters:
git_describe – [in] The output of
git describe
utc_date – [in] The utc date in format date_format.
Public Members
The version (major.minor.patch)
The git describe
The build time
Which type is used for floating-point numbers (configured by
NAVGROUND_USES_DOUBLE
)
Public Static Attributes
The date format
Holds the build information at build-time and run-time of a dependency.
Public Functions
Represent the different between a pair of BuildInfo using BuildInfo::to_string_diff.
- Returns:
build.to_string_diff(run)
Public Members
The build info of the dependency at build time of this library
The build info of the currently loaded dependency
A map of dependencies: name -> {build-time version, run-time version}
Gets the build information.
- Returns:
The build information.
Gets the build dependencies.
- Returns:
The build dependencies.
Gets the dependencies of loaded packages.