VTK  9.1.0
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
43class VTKIOCORE_EXPORT vtkASCIITextCodec : public vtkTextCodec
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 const char* Name() override;
55 bool CanHandle(const char* NameString) override;
57
62 vtkTypeUInt32 NextUTF32CodePoint(istream& inputStream) override;
63
64protected:
67
68private:
69 vtkASCIITextCodec(const vtkASCIITextCodec&) = delete;
70 void operator=(const vtkASCIITextCodec&) = delete;
71};
72
73#endif
Class to read/write ascii text.
bool CanHandle(const char *NameString) override
The name this codec goes by - should match the string the factory will take to create it.
~vtkASCIITextCodec() override
vtkTypeUInt32 NextUTF32CodePoint(istream &inputStream) override
Return the next code point from the sequence represented by the begin, end iterators advancing begin ...
const char * Name() override
The name this codec goes by - should match the string the factory will take to create it.
static vtkASCIITextCodec * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:113
Virtual class to act as an interface for all text codecs.
Definition: vtkTextCodec.h:45