From cf11ce691a87d7f7300d2b7d49fdfd005f8106a4 Mon Sep 17 00:00:00 2001 From: seba Date: Fri, 19 Sep 2008 18:33:33 +0200 Subject: [PATCH] versionskram --- segl.cpp | 21 +++++++++++++++++++++ segl.h | 16 ++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 segl.cpp create mode 100644 segl.h diff --git a/segl.cpp b/segl.cpp new file mode 100644 index 0000000..c1cc169 --- /dev/null +++ b/segl.cpp @@ -0,0 +1,21 @@ +#include "segl.h" + +namespace segl { + +std::string getVersion() { + return (std::string)VERSION; +} + +std::string getFullVersion() { + return "libsegl " VERSION ": Compiled on " __DATE__ " at " __TIME__; +} + +void printVersion() { + std::cout << getVersion() << std::endl; +} + +void printFullVersion() { + std::cout << getFullVersion() << std::endl; +} + +} // namespace segl diff --git a/segl.h b/segl.h new file mode 100644 index 0000000..e7a340b --- /dev/null +++ b/segl.h @@ -0,0 +1,16 @@ +#ifndef __LIBSEGL_H +#define __LIBSEGL_H + +#include +#include + +namespace segl { + +std::string getVersion(); +std::string getFullVersion(); +void printVersion(); +void printFullVersion(); + +} // namespace segl + +#endif