VTK: Filters/General/vtkDateToNumeric.h Source File

| VTK 9.3.1

vtkDateToNumeric.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkDateToNumeric_h
23 #define vtkDateToNumeric_h
24
25 #include "vtkDataObject.h" // for vtkDataObject::FieldAssociations
26 #include "vtkFiltersGeneralModule.h" // For export macro
27 #include "vtkPassInputTypeAlgorithm.h"
28 #include "vtkSmartPointer.h" // for ivar
29
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKFILTERSGENERAL_EXPORT vtkDateToNumeric : public vtkPassInputTypeAlgorithm
32 {
33 public:
34 static vtkDateToNumeric* New();
35 vtkTypeMacro(vtkDateToNumeric, vtkPassInputTypeAlgorithm);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkGetStringMacro(DateFormat);
44 vtkSetStringMacro(DateFormat);
46
47 protected:
48 vtkDateToNumeric();
49 ~vtkDateToNumeric() override;
50
51 int FillInputPortInformation(int port, vtkInformation* info) override;
52 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
53
54 char* DateFormat;
55
56 private:
57 vtkDateToNumeric(const vtkDateToNumeric&) = delete;
58 void operator=(const vtkDateToNumeric&) = delete;
59 };
60
61 VTK_ABI_NAMESPACE_END
62 #endif
vtkDateToNumeric
Converts string dates to numeric values.
Definition: vtkDateToNumeric.h:32
vtkDateToNumeric::New
static vtkDateToNumeric * New()
vtkDateToNumeric::DateFormat
char * DateFormat
Definition: vtkDateToNumeric.h:54
vtkDateToNumeric::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDateToNumeric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDateToNumeric::vtkDateToNumeric
vtkDateToNumeric()
vtkDateToNumeric::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDateToNumeric::~vtkDateToNumeric
~vtkDateToNumeric() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:45
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDataObject.h
vtkPassInputTypeAlgorithm.h
vtkSmartPointer.h