Salome HOME
Copyrights update 2015.
[modules/paravis.git] / src / PVGUI / PARAVIS_Gen_i.cc
index c156d1f6e1175bac88edec9e683852516311aefa..d5a9b952d0e94438b71ed82821a45ed053cae0a7 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2010-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include "QDir"
 #include "QTextStream"
 
-#include "vtkWrapIDL.h"
+#ifdef PARAVIS_WITH_FULL_CORBA
+  // List of VTK classes wrapped into IDL:
+# include "vtkWrapIDL.h"
+#endif
 
 #include <pqServer.h>
 #include <pqServerResource.h>
@@ -593,6 +596,7 @@ namespace PARAVIS
     return SALOMEDS::SObject::_nil();
   }
 
+#ifdef PARAVIS_WITH_FULL_CORBA
   //----------------------------------------------------------------------------
   PARAVIS::string_array* PARAVIS_Gen_i::GetClassesList()
   {
@@ -611,6 +615,7 @@ namespace PARAVIS
     PARAVIS::PARAVIS_Base_i* aClass = CreateInstance(NULL, QString(theClassName));
     return aClass->_this();
   }
+#endif
 
   //----------------------------------------------------------------------------
   void PARAVIS_Gen_i::GetConnectionParameters(CORBA::Long& theId, 
@@ -729,7 +734,7 @@ namespace PARAVIS
   // Version information
   char* PARAVIS_Gen_i::getVersion()
   {
-#if PARAVIS_DEVELOPMENT
+#ifdef PARAVIS_DEVELOPMENT
     return CORBA::string_dup( PARAVIS_VERSION_STR"dev" );
 #else
     return CORBA::string_dup( PARAVIS_VERSION_STR );