VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/Core/vtkInformationIntegerVectorKey.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkInformationIntegerVectorKey.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00022 #ifndef vtkInformationIntegerVectorKey_h
00023 #define vtkInformationIntegerVectorKey_h
00024 
00025 #include "vtkCommonCoreModule.h" // For export macro
00026 #include "vtkInformationKey.h"
00027 
00028 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
00029 
00030 class VTKCOMMONCORE_EXPORT vtkInformationIntegerVectorKey : public vtkInformationKey
00031 {
00032 public:
00033   vtkTypeMacro(vtkInformationIntegerVectorKey,vtkInformationKey);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00036   vtkInformationIntegerVectorKey(const char* name, const char* location,
00037                                  int length=-1);
00038   ~vtkInformationIntegerVectorKey();
00039 
00041 
00044   static vtkInformationIntegerVectorKey* MakeKey(const char* name, const char* location,
00045     int length=-1)
00046     {
00047     return new vtkInformationIntegerVectorKey(name, location, length);
00048     }
00050 
00052 
00054   void Append(vtkInformation* info, int value);
00055   void Set(vtkInformation* info, int* value, int length);
00056   void Set(vtkInformation* info);
00057   int* Get(vtkInformation* info);
00058   int  Get(vtkInformation* info, int idx);
00059   void Get(vtkInformation* info, int* value);
00060   int Length(vtkInformation* info);
00062 
00066   virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
00067 
00069   virtual void Print(ostream& os, vtkInformation* info);
00070 
00071 protected:
00072   // The required length of the vector value (-1 is no restriction).
00073   int RequiredLength;
00074 
00078   int* GetWatchAddress(vtkInformation* info);
00079 
00080 private:
00081   vtkInformationIntegerVectorKey(const vtkInformationIntegerVectorKey&);  // Not implemented.
00082   void operator=(const vtkInformationIntegerVectorKey&);  // Not implemented.
00083 };
00084 
00085 #endif