From: sln Date: Tue, 9 Oct 2012 13:15:15 +0000 (+0000) Subject: DISABLE_HDF flag X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4de7cb199fc356d8ced80c0dc7616f3bbe178bb3;p=modules%2Fgui.git DISABLE_HDF flag --- diff --git a/src/LightApp/LightApp_HDFDriver.cxx b/src/LightApp/LightApp_HDFDriver.cxx index 7ddff2f20..92883e834 100644 --- a/src/LightApp/LightApp_HDFDriver.cxx +++ b/src/LightApp/LightApp_HDFDriver.cxx @@ -16,6 +16,9 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + +#ifndef DISABLE_HDF + #include "LightApp_HDFDriver.h" #include "HDFexplorer.hxx" @@ -375,3 +378,5 @@ bool LightApp_HDFDriver::ReadDatasFromFile( const char* theFileName, bool isMult return !isError; } + +#endif //DISABLE_HDF \ No newline at end of file diff --git a/src/LightApp/LightApp_HDFDriver.h b/src/LightApp/LightApp_HDFDriver.h index 9f1995129..ca257ddb1 100644 --- a/src/LightApp/LightApp_HDFDriver.h +++ b/src/LightApp/LightApp_HDFDriver.h @@ -16,6 +16,9 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + +#ifndef DISABLE_HDF + #ifndef LIGHTAPP_HDFDRIVER_H #define LIGHTAPP_HDFDRIVER_H @@ -39,3 +42,5 @@ public: }; #endif + +#endif //DISABLE_HDF \ No newline at end of file diff --git a/src/LightApp/LightApp_Study.cxx b/src/LightApp/LightApp_Study.cxx index dda081079..fe312a80c 100644 --- a/src/LightApp/LightApp_Study.cxx +++ b/src/LightApp/LightApp_Study.cxx @@ -40,8 +40,11 @@ LightApp_Study::LightApp_Study( SUIT_Application* app ) : CAM_Study( app ) { // HDF persistence +#ifndef DISABLE_HDF myDriver = new LightApp_HDFDriver(); - //myDriver = new LightApp_Driver(); +#else + myDriver = new LightApp_Driver(); +#endif } /*!