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 "vtkIOCoreModule.h" // For export macro
40 #include "vtkTextCodec.h"
41 
42 
44 {
45 public:
47  static vtkASCIITextCodec* New() ;
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
53  virtual const char* Name();
54  virtual bool CanHandle(const char* NameString);
56 
58  virtual bool IsValid(istream& InputStream);
59 
60 
62 
65  virtual void ToUnicode(istream& InputStream,
68 
72  virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
73 
74 //BTX
75 protected:
78 
79 private:
80  vtkASCIITextCodec(const vtkASCIITextCodec &) ; // Not implemented.
81  void operator=(const vtkASCIITextCodec &) ; // Not implemented.
82 
83 //ETX
84 };
85 
86 
87 #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
#define VTKIOCORE_EXPORT
Class to read/write ascii text.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ToUnicode(istream &InputStream, vtkTextCodec::OutputIterator &output)=0
virtual bool IsValid(istream &InputStream)
static vtkObject * New()
virtual const char * Name()