ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkFileSequenceParser.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "qPCL.h" //needed for exports
11 #include "vtkObject.h"
12 
13 namespace vtksys {
14 class RegularExpression;
15 }
16 
17 class QPCL_ENGINE_LIB_API vtkFileSequenceParser : public vtkObject {
18 public:
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
28  bool ParseFileSequence(const char* file);
29 
30  vtkGetStringMacro(SequenceName);
31  vtkGetMacro(SequenceIndex, int);
32 
33 protected:
35  ~vtkFileSequenceParser() override;
36 
37  vtksys::RegularExpression* reg_ex;
38  vtksys::RegularExpression* reg_ex2;
39  vtksys::RegularExpression* reg_ex3;
40  vtksys::RegularExpression* reg_ex4;
41  vtksys::RegularExpression* reg_ex5;
42  vtksys::RegularExpression* reg_ex_last;
43 
44  // Used internal so char * allocations are done automatically.
45  vtkSetStringMacro(SequenceName);
46 
48  char* SequenceName;
49 
50 private:
52  void operator=(const vtkFileSequenceParser&) = delete;
53 };
vtkGetMacro(SequenceIndex, int)
vtksys::RegularExpression * reg_ex_last
vtkSetStringMacro(SequenceName)
vtkGetStringMacro(SequenceName)
vtkTypeMacro(vtkFileSequenceParser, vtkObject)
static vtkFileSequenceParser * New()
vtksys::RegularExpression * reg_ex
vtksys::RegularExpression * reg_ex4
vtksys::RegularExpression * reg_ex3
vtksys::RegularExpression * reg_ex5
vtksys::RegularExpression * reg_ex2
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15