Browse Source

versionskram

seba 11 years ago
parent
commit
cf11ce691a
2 changed files with 37 additions and 0 deletions
  1. 21
    0
      segl.cpp
  2. 16
    0
      segl.h

+ 21
- 0
segl.cpp View File

@@ -0,0 +1,21 @@
1
+#include "segl.h"
2
+
3
+namespace segl {
4
+
5
+std::string getVersion() {
6
+	return (std::string)VERSION;
7
+}
8
+
9
+std::string getFullVersion() {
10
+	return "libsegl " VERSION ": Compiled on " __DATE__ " at " __TIME__;
11
+}
12
+
13
+void printVersion() {
14
+	std::cout << getVersion() << std::endl;
15
+}
16
+
17
+void printFullVersion() {
18
+	std::cout << getFullVersion() << std::endl;
19
+}
20
+
21
+} // namespace segl

+ 16
- 0
segl.h View File

@@ -0,0 +1,16 @@
1
+#ifndef __LIBSEGL_H
2
+#define __LIBSEGL_H
3
+
4
+#include <iostream>
5
+#include <string>
6
+
7
+namespace segl {
8
+
9
+std::string getVersion();
10
+std::string getFullVersion();
11
+void printVersion();
12
+void printFullVersion();
13
+
14
+} // namespace segl
15
+
16
+#endif

Loading…
Cancel
Save