Commit ce6b597a authored by Andrea Bignamini's avatar Andrea Bignamini
Browse files

Add version option

Add version option to get the version of the preProcessor-srv.
parent 39745412
Loading
Loading
Loading
Loading
Loading

src/Version.h

0 → 100644
+7 −0
Original line number Diff line number Diff line
// Version.h
#if !defined(VERSION_H)
#define VERSION_H 1

std::string version = "1.0.2";

#endif
+5 −0
Original line number Diff line number Diff line
@@ -37,9 +37,14 @@
//        (Program Obviously used to Generate tango Object)
//=============================================================================
#include <tango.h>
#include <Version.h>

int main(int argc,char *argv[])
{
  if (std::string(argv[1]) == "--version"){
    cout << version << endl;
    return(0);
  }
	try
	{
		// Initialise the device server