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 =========================================================================*/
31 #ifndef vtkXdmf3ArraySelection_h
32 #define vtkXdmf3ArraySelection_h
33 
34 #include "vtkIOXdmf3Module.h" // For export macro
35 
36 #include <map> //for superclass template
37 #include <string> //for superclass's content type
38 
39 class VTKIOXDMF3_EXPORT vtkXdmf3ArraySelection
40  : public std::map<std::string, bool>
41 {
42 public:
44  void Merge(const vtkXdmf3ArraySelection& other);
45 
47  void AddArray(const char* name, bool status=true);
48 
50  bool ArrayIsEnabled(const char* name);
51 
53  bool HasArray(const char* name);
54 
56 
57  void SetArrayStatus(const char* name, bool status);
58  int GetArraySetting(const char* name);
60 
62  const char* GetArrayName(int index);
63 
65 
66  int GetNumberOfArrays();
67 };
69 
70 #endif //# vtkXdmf3ArraySelection_h
helper to identify requested arrays with