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