VTK
vtkASCIITextCodec.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkASCIITextCodec.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 __vtkASCIITextCodec_h
37 #define __vtkASCIITextCodec_h
38 
39 #include "vtkTextCodec.h"
40 
41 
43 {
44 public:
46  static vtkASCIITextCodec* New() ;
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
52  virtual const char* Name();
53  virtual bool CanHandle(const char* NameString);
55 
57  virtual bool IsValid(istream& InputStream);
58 
59 
61 
64  virtual void ToUnicode(istream& InputStream,
67 
71  virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
72 
73 //BTX
74 protected:
77 
78 private:
79  vtkASCIITextCodec(const vtkASCIITextCodec &) ; // Not implemented.
80  void operator=(const vtkASCIITextCodec &) ; // Not implemented.
81 
82 //ETX
83 };
84 
85 
86 #endif