Salome HOME
1st step.
[modules/med.git] / src / MEDCalculator / MEDCalculatorBrowserLiteStruct.cxx
index c44ffc66fd05dc345e6491131089d93972c0c8a4..49f5debc1f431730fdd854d3cac0ef9bcaadce38 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-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
@@ -28,7 +28,7 @@
 #include <deque>
 #include <string>
 
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 //  Default constructor
 MEDCalculatorBrowserLiteStruct::MEDCalculatorBrowserLiteStruct() : _any_selection(false)
@@ -50,10 +50,10 @@ MEDCalculatorBrowserLiteStruct::~MEDCalculatorBrowserLiteStruct()
 MEDCalculatorBrowserLiteStruct::MEDCalculatorBrowserLiteStruct(const char *f) : _file(f), _any_selection(false)
 {
   computeBaseName();
-  std::vector<std::string> meshNames=MEDLoader::GetMeshNames(_file.c_str());
+  std::vector<std::string> meshNames=GetMeshNames(_file.c_str());
   for(std::vector<std::string>::const_iterator iter=meshNames.begin();iter!=meshNames.end();iter++)
     _meshes.push_back(MEDCalculatorBrowserMesh((*iter).c_str()));
-  std::vector<std::string> fieldNames=MEDLoader::GetAllFieldNames(_file.c_str());
+  std::vector<std::string> fieldNames=GetAllFieldNames(_file.c_str());
   for(std::vector<std::string>::const_iterator iter=fieldNames.begin();iter!=fieldNames.end();iter++)
     _fields.push_back(MEDCalculatorBrowserField(_file.c_str(),(*iter).c_str()));
 }