Commit 0446503bbf4f53f70432d8b76288bc307214a4bd

Authored by knodlseder
1 parent 3a7f9a3b

add void constructor (for python interface) and change APP_ to CTBIN_

Showing 1 changed file with 5 additions and 3 deletions
src/ctbin/ctbin.hpp
@@ -24,8 +24,8 @@ @@ -24,8 +24,8 @@
24 #include "GCTALib.hpp" 24 #include "GCTALib.hpp"
25 25
26 /* __Definitions _________________________________________________________ */ 26 /* __Definitions _________________________________________________________ */
27 -#define APP_NAME "ctbin"  
28 -#define APP_VERSION "v1r0p0" 27 +#define CTBIN_NAME "ctbin"
  28 +#define CTBIN_VERSION "v1r0p0"
29 29
30 30
31 /***********************************************************************//** 31 /***********************************************************************//**
@@ -36,8 +36,10 @@ @@ -36,8 +36,10 @@
36 class ctbin : public GApplication { 36 class ctbin : public GApplication {
37 public: 37 public:
38 // Constructors and destructors 38 // Constructors and destructors
  39 + ctbin(void) :
  40 + GApplication(CTBIN_NAME, CTBIN_VERSION) { return; }
39 ctbin(int argc, char *argv[]) : 41 ctbin(int argc, char *argv[]) :
40 - GApplication(APP_NAME, APP_VERSION, argc, argv) { return; } 42 + GApplication(CTBIN_NAME, CTBIN_VERSION, argc, argv) { return; }
41 43
42 // Methods 44 // Methods
43 int run(void); 45 int run(void);