1 // Copyright (C) 2010-2011 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __vtkMedLink_h_
21 #define __vtkMedLink_h_
23 #include "vtkObject.h"
31 class VTK_EXPORT vtkMedLink: public vtkObject
34 static vtkMedLink* New();
35 vtkTypeMacro(vtkMedLink, vtkObject);
36 void PrintSelf(ostream& os, vtkIndent indent);
39 // the index of this field in the med file.
40 vtkSetMacro(MedIterator, med_int);
41 vtkGetMacro(MedIterator, med_int);
44 // Set the name of the mesh linked to.
45 vtkSetStringMacro(MeshName);
46 vtkGetStringMacro(MeshName);
49 // Set the name of the file this link points to.
50 vtkSetStringMacro(Link);
51 vtkGetStringMacro(Link);
54 // returns the full path to the linked file.
55 // If the Link is already a full path, it is returned.
56 // If the directory is a relative path, the returned path is the
57 // concatenation of the directory where the
58 // original file is in and the Link.
59 const char* GetFullLink(const char* originalFileName);
62 // this stores the iterator that should be used when unmounting this link
63 void SetMountedIterator(med_class, med_int);
64 med_int GetMountedIterator(med_class);
68 virtual ~vtkMedLink();
74 std::string FullLinkPath;
77 std::map<med_class, int> Status;
78 std::map<med_class, med_int> MountedIterator;
82 vtkMedLink(const vtkMedLink&); // Not implemented.
83 void operator=(const vtkMedLink&); // Not implemented.
87 #endif //__vtkMedLink_h_