VTK
vtkTextCodecFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkTextCodecFactory.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 -------------------------------------------------------------------------*/
38 #ifndef __vtkTextCodecFactory_h
39 #define __vtkTextCodecFactory_h
40 
41 #include "vtkObject.h"
42 
43 class vtkTextCodec;
44 
46 {
47 public:
49  static vtkTextCodecFactory* New() ;
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53  typedef vtkTextCodec* (*CreateFunction)();
54 
56 
60  static void RegisterCreateCallback(CreateFunction callback);
61  static void UnRegisterCreateCallback(CreateFunction callback);
62  static void UnRegisterAllCreateCallbacks();
64 
69  static vtkTextCodec* CodecForName(const char* CodecName);
70 
74  static vtkTextCodec* CodecToHandle(istream& InputStream);
75 
77  static void Initialize();
78 
79 //BTX
80 protected:
83 
84 private:
85  vtkTextCodecFactory(const vtkTextCodecFactory &); // Not implemented.
86  void operator=(const vtkTextCodecFactory &); // Not implemented.
87 
89 
90  class CallbackVector;
91  static CallbackVector* Callbacks;
93 
94 //ETX
95 };
96 
97 #endif // __vtkTextCodecFactory_h