VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Xdmf3/vtkXdmf3ArraySelection.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXdmf3ArraySelection.h
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00031 #ifndef vtkXdmf3ArraySelection_h
00032 #define vtkXdmf3ArraySelection_h
00033 
00034 #include "vtkIOXdmf3Module.h" // For export macro
00035 
00036 #include <map> //for superclass template
00037 #include <string> //for superclass's content type
00038 
00039 class VTKIOXDMF3_EXPORT vtkXdmf3ArraySelection
00040   : public std::map<std::string, bool>
00041 {
00042 public:
00044   void Merge(const vtkXdmf3ArraySelection& other);
00045 
00047   void AddArray(const char* name, bool status=true);
00048 
00050   bool ArrayIsEnabled(const char* name);
00051 
00053   bool HasArray(const char* name);
00054 
00056 
00057   void SetArrayStatus(const char* name, bool status);
00058   int GetArraySetting(const char* name);
00060 
00062   const char* GetArrayName(int index);
00063 
00065 
00066   int GetNumberOfArrays();
00067 };
00069 
00070 #endif //# vtkXdmf3ArraySelection_h