Sleds/gluster_status/Version.cpp

29 lines
683 B
C++

/*
Copyright (c) 2014 IOnU Security Inc. All rights reserved
Created February 2014 by Kendrick Webster
gluster_status/Version.cpp - implementation for Version.h
*/
#include <stdio.h>
#include "Version.h"
namespace ionu
{
namespace gluster_status
{
namespace version
{
constexpr const char* build_date = __DATE__;
constexpr const char* build_time = __TIME__;
}
}
}
std::string ionu::gluster_status::version::GetVersionString(void)
{
char buf[80];
snprintf(buf, sizeof(buf), "%s version %d.%d.%d (%s) built %s %s",
name, major, minor, step, timestamp, build_date, build_time);
return buf;
}