versionskram

This commit is contained in:
seba 2008-09-19 18:33:33 +02:00
parent 12d677afdb
commit cf11ce691a
2 changed files with 37 additions and 0 deletions

21
segl.cpp Normal file
View File

@ -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

16
segl.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef __LIBSEGL_H
#define __LIBSEGL_H
#include <iostream>
#include <string>
namespace segl {
std::string getVersion();
std::string getFullVersion();
void printVersion();
void printFullVersion();
} // namespace segl
#endif