VTK
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 "vtkTextCodec.h"
40 
41 
43 {
44 public:
46  static vtkUTF16TextCodec* New() ;
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
52  virtual const char* Name() ;
53  virtual bool CanHandle(const char* NameString) ;
55 
57  void SetBigEndian(bool) ;
58 
60  void FindEndianness(istream& InputStream) ;
61 
64  virtual bool IsValid(istream& InputStream) ;
65 
67 
70  virtual void ToUnicode(istream& InputStream,
73 
77  virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
78 
79 //BTX
80 protected:
83 
85  bool _bigEndian ;
86 
87 private:
88  vtkUTF16TextCodec(const vtkUTF16TextCodec &) ; // Not implemented.
89  void operator=(const vtkUTF16TextCodec &) ; // Not implemented.
90 
91 //ETX
92 };
93 
94 
95 #endif