]> Creatis software - crea.git/blobdiff - src/creaSystem.h
no message
[crea.git] / src / creaSystem.h
index a64dc7c642dc5ce73880c3a9fa1f70dcabf821a1..3a5b8d59e328c60db460cfca2410d3f480f02730 100644 (file)
@@ -3,8 +3,8 @@
   Program:   crea
   Module:    $RCSfile: creaSystem.h,v $
   Language:  C++
-  Date:      $Date: 2009/09/15 11:32:40 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2010/04/20 12:19:46 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -28,8 +28,6 @@
 // We try for Visual 6..????
 //#pragma warning( disable : 4786)
 
-
-
 //-----------------------------------------------------------------------------
 //This is needed when compiling in debug mode
 #ifdef _MSC_VER
 //#define TEST toto
 
 
-
 #if defined(_WIN32) && defined(CREA_BUILD_SHARED)
-//#include "WWW.h"
   #ifdef CREA_EXPORT_SYMBOLS
-    #define CREA_EXPORT __declspec( dllexport )
+    #define CREA_EXPORT __declspec( dllexport ) 
   #else
-    #define CREA_EXPORT __declspec( dllimport )
+       #define CREA_EXPORT __declspec( dllimport )
   #endif
   #define CREA_CDECL __cdecl
 #else
 */
 //-----------------------------------------------------------------------------
 
-
-
-
 //-----------------------------------------------------------------------------
 // Version
 #include <string.h>
@@ -162,9 +155,6 @@ namespace crea
 }
 //-----------------------------------------------------------------------------
 
-
-
-
 //-----------------------------------------------------------------------------
 /*
 #ifdef _WIN32
@@ -212,8 +202,6 @@ typedef  unsigned int        uint32_t;
 #define UINT32_MAX    (4294967295U)
 #endif
 
-
-
 //-----------------------------------------------------------------------------
 
 
@@ -226,8 +214,10 @@ namespace crea
   {
     /// returns true iff the program has a tty
     static int HasTTY(); 
-       CREA_EXPORT static int GetAppPath(char *pname, size_t pathsize);
-       CREA_EXPORT static std::string GetDllAppPath(std::string nomdll);
+    CREA_EXPORT static int GetAppPath(char *pname, size_t pathsize);
+    CREA_EXPORT static std::string GetDllAppPath(std::string &nomdll);
+    CREA_EXPORT static std::string GetDllAppPath(const char *nomdll);   
+    CREA_EXPORT static std::string GetExecutablePath();
   };
 
 } // namespace crea