VTK  9.2.6
vtkADIOS2CoreArraySelection.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 =========================================================================*/
27 #ifndef vtkADIOS2CoreArraySelection_h
28 #define vtkADIOS2CoreArraySelection_h
29 
30 #include "vtkIOADIOS2Module.h" // For export macro
31 
32 #include <map> //for superclass template
33 #include <string> //for superclass's content type
34 
35 #ifdef _MSC_VER
36 #pragma warning(push) // save
37 #pragma warning(disable : 4251) // needs to have dll-interface to be used by clients of class
38 #endif
39 class VTKIOADIOS2_EXPORT vtkADIOS2ArraySelection : public std::map<std::string, bool>
40 {
41 public:
45  void AddArray(const char* name, bool status = true);
46 
50  bool ArrayIsEnabled(const char* name);
51 
55  bool HasArray(const char* name);
56 
58 
61  void SetArrayStatus(const char* name, bool status);
62  int GetArrayStatus(const char* name);
64 
68  const char* GetArrayName(int index);
69 
73  int GetNumberOfArrays();
74 };
75 #ifdef _MSC_VER
76 #pragma warning(pop) // restore
77 #endif
78 
79 #endif //# vtkADIOS2CoreArraySelection_h
80 // VTK-HeaderTest-Exclude: vtkADIOS2CoreArraySelection.h
helper to identify requested arrays with