VTK
dox/TextAnalysis/vtkMimeTypeStrategy.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMimeTypeStrategy.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 
00036 #ifndef _vtkMimeTypeStrategy_h
00037 #define _vtkMimeTypeStrategy_h
00038 
00039 #include <vtkObject.h>
00040 #include <vtkStdString.h> //Needed for lookup
00041 
00042 class VTK_TEXT_ANALYSIS_EXPORT vtkMimeTypeStrategy :
00043   public vtkObject
00044 {
00045 public:
00046   vtkTypeMacro(vtkMimeTypeStrategy, vtkObject);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00053   virtual vtkStdString Lookup(const vtkStdString& uri, const vtkTypeUInt8* begin, const vtkTypeUInt8* end) = 0;
00054 
00055 protected:
00056   vtkMimeTypeStrategy();
00057   virtual ~vtkMimeTypeStrategy();
00058 
00059 private:
00060   vtkMimeTypeStrategy(const vtkMimeTypeStrategy&); //Not implemented.
00061   void operator=(const vtkMimeTypeStrategy&); //Not implemented.
00062 };
00063 
00064 #endif // !_vtkMimeTypeStrategy_h
00065