VTK
vtkUTF8TextCodec.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkUTF8TextCodec.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 vtkUTF8TextCodec_h
37 #define vtkUTF8TextCodec_h
38 
39 #include "vtkIOCoreModule.h" // For export macro
40 #include "vtkTextCodec.h"
41 
42 
44 {
45 public:
47  static vtkUTF8TextCodec* New() ;
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
53  virtual const char* Name() {return "UTF-8" ;}
54  virtual bool CanHandle(const char* testStr);
56 
58  virtual bool IsValid(istream& InputStream) ;
59 
61 
64  virtual void ToUnicode(istream& InputStream,
67 
71  virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
72 
73 //BTX
74 protected:
76  ~vtkUTF8TextCodec() ;
77 
78 private:
79  vtkUTF8TextCodec(const vtkUTF8TextCodec &) ; // Not implemented.
80  void operator=(const vtkUTF8TextCodec &) ; // Not implemented.
81 
82 //ETX
83 };
84 
85 
86 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool CanHandle(const char *NameString)
virtual vtkUnicodeString::value_type NextUnicode(istream &inputStream)=0
vtkUnicodeStringValueType value_type
Virtual class to act as an interface for all text codecs.
Definition: vtkTextCodec.h:43
virtual const char * Name()
#define VTKIOCORE_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ToUnicode(istream &InputStream, vtkTextCodec::OutputIterator &output)=0
Class to read/write UTF-8 text.
virtual bool IsValid(istream &InputStream)
static vtkObject * New()