X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaSystem.h;h=b2aa81ca3c697d8d42ab17c6b759dbe3a54bf229;hb=43809f06e3ad67bc2b0b30f6682a4e1ad23341a1;hp=27d07bd626e6e6983194a27b31122818d0899430;hpb=1b60671532544c98699321a323ca17d772d01de5;p=crea.git diff --git a/src/creaSystem.h b/src/creaSystem.h index 27d07bd..b2aa81c 100644 --- a/src/creaSystem.h +++ b/src/creaSystem.h @@ -3,8 +3,8 @@ Program: crea Module: $RCSfile: creaSystem.h,v $ Language: C++ - Date: $Date: 2009/06/03 15:28:11 $ - Version: $Revision: 1.2 $ + Date: $Date: 2011/02/23 13:40:31 $ + Version: $Revision: 1.14 $ 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 @@ -94,13 +92,11 @@ //#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 @@ -138,9 +134,6 @@ */ //----------------------------------------------------------------------------- - - - //----------------------------------------------------------------------------- // Version #include @@ -162,9 +155,6 @@ namespace crea } //----------------------------------------------------------------------------- - - - //----------------------------------------------------------------------------- /* #ifdef _WIN32 @@ -212,8 +202,6 @@ typedef unsigned int uint32_t; #define UINT32_MAX (4294967295U) #endif - - //----------------------------------------------------------------------------- @@ -226,7 +214,11 @@ namespace crea { /// returns true iff the program has a tty static int HasTTY(); - static int GetAppPath(char *pname, size_t pathsize); + 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(); + CREA_EXPORT static void createDirectory(const char* directorypath); }; } // namespace crea