VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkAssignMimeType.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 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00020 00056 #ifndef __vtkAssignMimeType_h 00057 #define __vtkAssignMimeType_h 00058 00059 #include "vtkTableAlgorithm.h" 00060 class vtkMimeTypes; 00061 00062 class VTK_TEXT_ANALYSIS_EXPORT vtkAssignMimeType : 00063 public vtkTableAlgorithm 00064 { 00065 public: 00066 static vtkAssignMimeType* New(); 00067 vtkTypeMacro(vtkAssignMimeType, vtkTableAlgorithm); 00068 void PrintSelf(ostream& os, vtkIndent indent); 00069 00071 00073 vtkSetStringMacro(OutputArray); 00074 vtkGetStringMacro(OutputArray); 00076 00078 00083 vtkSetStringMacro(DefaultMimeType); 00084 vtkGetStringMacro(DefaultMimeType); 00086 00088 00090 void SetMimeTypes(vtkMimeTypes *m); 00091 vtkGetObjectMacro(MimeTypes, vtkMimeTypes); 00093 00094 //BTX 00095 protected: 00096 vtkAssignMimeType(); 00097 ~vtkAssignMimeType(); 00098 00099 virtual int RequestData( 00100 vtkInformation* request, 00101 vtkInformationVector** inputVector, 00102 vtkInformationVector* outputVector); 00103 00104 private: 00105 vtkAssignMimeType(const vtkAssignMimeType &); // Not implemented. 00106 void operator=(const vtkAssignMimeType &); // Not implemented. 00107 00108 char* OutputArray; 00109 char* DefaultMimeType; 00110 00111 vtkMimeTypes* MimeTypes; 00112 //ETX 00113 }; 00114 00115 #endif // __vtkAssignMimeType_h