From 4de7cb199fc356d8ced80c0dc7616f3bbe178bb3 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 9 Oct 2012 13:15:15 +0000 Subject: [PATCH] DISABLE_HDF flag --- src/LightApp/LightApp_HDFDriver.cxx | 5 +++++ src/LightApp/LightApp_HDFDriver.h | 5 +++++ src/LightApp/LightApp_Study.cxx | 5 ++++- 3 files changed, 14 insertions(+), 1 deletion(-) 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 } /*! -- 2.39.2