VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
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
45
class
VTK_IO_EXPORT
vtkTextCodecFactory
:
public
vtkObject
46
{
47
public
:
48
vtkTypeMacro(
vtkTextCodecFactory
,
vtkObject
);
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
:
81
vtkTextCodecFactory
();
82
~
vtkTextCodecFactory
();
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
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkTextCodec
Virtual class to act as an interface for all text codecs.
Definition:
vtkTextCodec.h:42
vtkObject::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkTextCodecFactory
maintain a list of text codecs and return instances
Definition:
vtkTextCodecFactory.h:45
VTK_IO_EXPORT
#define VTK_IO_EXPORT
Definition:
vtkWin32Header.h:277
vtkObject::New
static vtkObject * New()
vtkObject.h
Generated on Sat Sep 13 2014 22:26:22 for VTK by
1.8.8