VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Core
vtkUTF16TextCodec.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkUTF16TextCodec.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
-------------------------------------------------------------------------*/
36
#ifndef __vtkUTF16TextCodec_h
37
#define __vtkUTF16TextCodec_h
38
39
#include "vtkIOCoreModule.h"
// For export macro
40
#include "
vtkTextCodec.h
"
41
42
43
class
VTKIOCORE_EXPORT
vtkUTF16TextCodec
:
public
vtkTextCodec
44
{
45
public
:
46
vtkTypeMacro(
vtkUTF16TextCodec
,
vtkTextCodec
);
47
static
vtkUTF16TextCodec
*
New
() ;
48
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
53
virtual
const
char
*
Name
() ;
54
virtual
bool
CanHandle
(
const
char
* NameString) ;
56
58
void
SetBigEndian(
bool
) ;
59
61
void
FindEndianness(istream& InputStream) ;
62
65
virtual
bool
IsValid
(istream& InputStream) ;
66
68
71
virtual
void
ToUnicode
(istream& InputStream,
72
vtkTextCodec::OutputIterator
& output) ;
74
78
virtual
vtkUnicodeString::value_type
NextUnicode
(istream& inputStream) ;
79
80
//BTX
81
protected
:
82
vtkUTF16TextCodec
() ;
83
~
vtkUTF16TextCodec
() ;
84
85
bool
_endianExplicitlySet
;
86
bool
_bigEndian
;
87
88
private
:
89
vtkUTF16TextCodec
(
const
vtkUTF16TextCodec
&) ;
// Not implemented.
90
void
operator=(
const
vtkUTF16TextCodec
&) ;
// Not implemented.
91
92
//ETX
93
};
94
95
96
#endif
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1