VTK  9.3.20240423
vtkASCIITextCodec.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
21#ifndef vtkASCIITextCodec_h
22#define vtkASCIITextCodec_h
23
24#include "vtkIOCoreModule.h" // For export macro
25#include "vtkTextCodec.h"
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKIOCORE_EXPORT vtkASCIITextCodec : public vtkTextCodec
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
39 const char* Name() override;
40 bool CanHandle(const char* NameString) override;
42
47 vtkTypeUInt32 NextUTF32CodePoint(istream& inputStream) override;
48
49protected:
52
53private:
54 vtkASCIITextCodec(const vtkASCIITextCodec&) = delete;
55 void operator=(const vtkASCIITextCodec&) = delete;
56};
57
58VTK_ABI_NAMESPACE_END
59#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:108
Virtual class to act as an interface for all text codecs.