VTK  9.3.1
vtkXdmf3ArraySelection.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkXdmf3ArraySelection_h
16 #define vtkXdmf3ArraySelection_h
17 
18 #include "vtkIOXdmf3Module.h" // For export macro
19 
20 #include <map> //for superclass template
21 #include <string> //for superclass's content type
22 
23 #ifdef _MSC_VER
24 #pragma warning(push) // save
25 #pragma warning(disable : 4251) // needs to have dll-interface to be used by clients of class
26 #endif
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIOXDMF3_EXPORT vtkXdmf3ArraySelection : public std::map<std::string, bool>
29 {
30 public:
34  void Merge(const vtkXdmf3ArraySelection& other);
35 
39  void AddArray(const char* name, bool status = true);
40 
44  bool ArrayIsEnabled(const char* name);
45 
49  bool HasArray(const char* name);
50 
52 
55  void SetArrayStatus(const char* name, bool status);
56  int GetArraySetting(const char* name);
58 
62  const char* GetArrayName(int index);
63 
67  int GetNumberOfArrays();
68 };
69 #ifdef _MSC_VER
70 #pragma warning(pop) // restore
71 #endif
72 
73 VTK_ABI_NAMESPACE_END
74 #endif //# vtkXdmf3ArraySelection_h
75 // VTK-HeaderTest-Exclude: vtkXdmf3ArraySelection.h
helper to identify requested arrays with