VTK  9.1.0
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
39class VTKIOADIOS2_EXPORT vtkADIOS2ArraySelection : public std::map<std::string, bool>
40{
41public:
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
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
void SetArrayStatus(const char *name, bool status)
get/set user choice of whether a particular array is to be loaded
int GetNumberOfArrays()
get number of arrays in the map
bool ArrayIsEnabled(const char *name)
test if a particular array is enablled or not
int GetArrayStatus(const char *name)
get/set user choice of whether a particular array is to be loaded
const char * GetArrayName(int index)
get name of a particular array
bool HasArray(const char *name)
check if a particular array is in the map yet or not
void AddArray(const char *name, bool status=true)
add a new array to the set, with a particular status