VTK
vtkASCIITextCodec.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkASCIITextCodec.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. 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-------------------------------------------------------------------------*/
37#ifndef vtkASCIITextCodec_h
38#define vtkASCIITextCodec_h
39
40#include "vtkIOCoreModule.h" // For export macro
41#include "vtkTextCodec.h"
42
43
44class VTKIOCORE_EXPORT vtkASCIITextCodec : public vtkTextCodec
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent);
50
52
55 virtual const char* Name();
56 virtual bool CanHandle(const char* NameString);
58
62 virtual bool IsValid(istream& InputStream);
63
64
70 virtual void ToUnicode(istream& InputStream,
72
77 virtual vtkUnicodeString::value_type NextUnicode(istream& inputStream) ;
78
79protected:
82
83private:
84 vtkASCIITextCodec(const vtkASCIITextCodec &) VTK_DELETE_FUNCTION;
85 void operator=(const vtkASCIITextCodec &) VTK_DELETE_FUNCTION;
86
87};
88
89
90#endif
Class to read/write ascii text.
virtual const char * Name()
The name this codec goes by - should match the string the factory will take to create it.
virtual vtkUnicodeString::value_type NextUnicode(istream &inputStream)
Return the next code point from the sequence represented by the stream advancing the stream through h...
virtual bool IsValid(istream &InputStream)
is the given sample valid for this codec?
virtual void ToUnicode(istream &InputStream, vtkTextCodec::OutputIterator &output)
Iterate through the sequence represented by the stream assigning the result to the output iterator.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool CanHandle(const char *NameString)
static vtkASCIITextCodec * New()
a simple class to control print indentation
Definition: vtkIndent.h:40
a base class that any output iterators need to derive from to use the first signature of to_unicode.
Definition: vtkTextCodec.h:73
Virtual class to act as an interface for all text codecs.
Definition: vtkTextCodec.h:45
vtkUnicodeStringValueType value_type