ITK  5.4.0
Insight Toolkit
itkVideoIOFactory.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * https://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef itkVideoIOFactory_h
20 #define itkVideoIOFactory_h
21 
22 #include "itkObject.h"
23 #include "itkVideoIOBase.h"
24 #include "ITKVideoIOExport.h"
25 
26 namespace itk
27 {
33 {
34 public:
39  enum class IOMode : uint8_t
40  {
43  WriteMode
44  };
45 };
46 // Define how to print enumeration
47 extern ITKVideoIO_EXPORT std::ostream &
48  operator<<(std::ostream & out, const VideoIOFactoryEnums::IOMode value);
49 
60 class ITKVideoIO_EXPORT VideoIOFactory : public Object
61 {
62 public:
63  ITK_DISALLOW_COPY_AND_MOVE(VideoIOFactory);
64 
67  using Superclass = Object;
70 
72 #if !defined(ITK_LEGACY_REMOVE)
73  // We need to expose the enum values at the class level
74  // for backwards compatibility
75  static constexpr IOModeEnum ReadFileMode = IOModeEnum::ReadFileMode;
76  static constexpr IOModeEnum ReadCameraMode = IOModeEnum::ReadCameraMode;
77  static constexpr IOModeEnum WriteMode = IOModeEnum::WriteMode;
78 #endif
79 
80  itkOverrideGetNameOfClassMacro(VideoIOFactory);
81 
88  CreateVideoIO(IOModeEnum mode, const char * arg);
89 
90 protected:
92  ~VideoIOFactory() override;
93 };
94 } // end namespace itk
95 
96 #endif
itk::VideoIOFactory
Create instances of VideoIO objects using an object factory.
Definition: itkVideoIOFactory.h:60
itk::operator<<
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:216
itk::VideoIOFactoryEnums::IOMode::ReadFileMode
itk::VideoIOFactoryEnums::IOMode
IOMode
Definition: itkVideoIOFactory.h:39
itk::SmartPointer< Self >
itk::VideoIOFactoryEnums
Contains all enum classes used by VideoIOFactory class.
Definition: itkVideoIOFactory.h:32
itkVideoIOBase.h
itk::VideoIOFactoryEnums::IOMode::WriteMode
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::VideoIOFactoryEnums::IOMode::ReadCameraMode
itkObject.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
IOModeEnum