VTK
vtkXdmf3ArraySelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXdmf3ArraySelection.h
5  Language: C++
6 
7  Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
28 #ifndef vtkXdmf3ArraySelection_h
29 #define vtkXdmf3ArraySelection_h
30 
31 #include "vtkIOXdmf3Module.h" // For export macro
32 
33 #include <map> //for superclass template
34 #include <string> //for superclass's content type
35 
36 class VTKIOXDMF3_EXPORT vtkXdmf3ArraySelection
37  : public std::map<std::string, bool>
38 {
39 public:
43  void Merge(const vtkXdmf3ArraySelection& other);
44 
48  void AddArray(const char* name, bool status=true);
49 
53  bool ArrayIsEnabled(const char* name);
54 
58  bool HasArray(const char* name);
59 
61 
64  void SetArrayStatus(const char* name, bool status);
65  int GetArraySetting(const char* name);
67 
71  const char* GetArrayName(int index);
72 
74 
77  int GetNumberOfArrays();
78 };
80 
81 #endif //# vtkXdmf3ArraySelection_h
82 // VTK-HeaderTest-Exclude: vtkXdmf3ArraySelection.h
helper to identify requested arrays with