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 "vtkIOCoreModule.h" // For export macro
40 #include "vtkTextCodec.h"
41 
42 
44 {
45 public:
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,
74 
78  virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
79 
80 //BTX
81 protected:
84 
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
vtkUTF16TextCodec::New
static vtkUTF16TextCodec * New()
VTKIOCORE_EXPORT
#define VTKIOCORE_EXPORT
Definition: vtkIOCoreModule.h:15
vtkTextCodec::OutputIterator
Definition: vtkTextCodec.h:67
vtkIOCoreModule.h
vtkUnicodeString::value_type
vtkUnicodeStringValueType value_type
Definition: vtkUnicodeString.h:74
vtkTextCodec
Virtual class to act as an interface for all text codecs.
Definition: vtkTextCodec.h:44
vtkUTF16TextCodec::_endianExplicitlySet
bool _endianExplicitlySet
Definition: vtkUTF16TextCodec.h:85
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkUTF16TextCodec::Name
virtual const char * Name()
vtkUTF16TextCodec::IsValid
virtual bool IsValid(istream &InputStream)
vtkUTF16TextCodec::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkUTF16TextCodec::~vtkUTF16TextCodec
~vtkUTF16TextCodec()
vtkUTF16TextCodec::FindEndianness
void FindEndianness(istream &InputStream)
vtkUTF16TextCodec::_bigEndian
bool _bigEndian
Definition: vtkUTF16TextCodec.h:86
vtkTextCodec.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUTF16TextCodec::SetBigEndian
void SetBigEndian(bool)
vtkUTF16TextCodec::vtkUTF16TextCodec
vtkUTF16TextCodec()
vtkUTF16TextCodec::ToUnicode
virtual void ToUnicode(istream &InputStream, vtkTextCodec::OutputIterator &output)
vtkUTF16TextCodec::NextUnicode
virtual vtkUnicodeString::value_type NextUnicode(istream &inputStream)
vtkUTF16TextCodec
Class to read/write ascii text.
Definition: vtkUTF16TextCodec.h:44
vtkUTF16TextCodec::CanHandle
virtual bool CanHandle(const char *NameString)