VTK
vtkForceMimeTypeStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkForceMimeTypeStrategy.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
38 #ifndef _vtkForceMimeTypeStrategy_h
39 #define _vtkForceMimeTypeStrategy_h
40 
41 #include <vtkMimeTypeStrategy.h>
42 
44  public vtkMimeTypeStrategy
45 {
46 public:
47  static vtkForceMimeTypeStrategy* New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
51  vtkGetStringMacro(MimeType);
52  vtkSetStringMacro(MimeType);
53 
54  vtkStdString Lookup(const vtkStdString& uri, const vtkTypeUInt8* begin, const vtkTypeUInt8* end);
55 
56 //BTX
57 protected:
59  virtual ~vtkForceMimeTypeStrategy();
60 
61  char* MimeType;
62 
63 private:
64  vtkForceMimeTypeStrategy(const vtkForceMimeTypeStrategy&); //Not implemented.
65  void operator=(const vtkForceMimeTypeStrategy&); //Not implemented.
66 //ETX
67 };
68 
69 #endif // !_vtkForceMimeTypeStrategy_h
70 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
#define VTK_TEXT_ANALYSIS_EXPORT
virtual vtkStdString Lookup(const vtkStdString &uri, const vtkTypeUInt8 *begin, const vtkTypeUInt8 *end)=0
Returns a specific mime type no matter what.
a simple class to control print indentation
Definition: vtkIndent.h:37
Abstract interface for an object that can identify the MIME type of a resource.
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)