VTK  9.3.0
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 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIOCORE_EXPORT vtkASCIITextCodec : public vtkTextCodec
29 {
30 public:
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 
49 protected:
51  ~vtkASCIITextCodec() override;
52 
53 private:
54  vtkASCIITextCodec(const vtkASCIITextCodec&) = delete;
55  void operator=(const vtkASCIITextCodec&) = delete;
56 };
57 
58 VTK_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.
static vtkASCIITextCodec * New()
~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.
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:38
Virtual class to act as an interface for all text codecs.
Definition: vtkTextCodec.h:29