ITK  6.0.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
26namespace itk
27{
33{
34public:
39 enum class IOMode : uint8_t
40 {
41 ReadFileMode,
42 ReadCameraMode,
43 WriteMode
44 };
45};
46// Define how to print enumeration
47extern ITKVideoIO_EXPORT std::ostream &
48 operator<<(std::ostream & out, const VideoIOFactoryEnums::IOMode value);
49
60class ITKVideoIO_EXPORT VideoIOFactory : public Object
61{
62public:
63 ITK_DISALLOW_COPY_AND_MOVE(VideoIOFactory);
64
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
80 itkOverrideGetNameOfClassMacro(VideoIOFactory);
81
88 CreateVideoIO(IOModeEnum mode, const char * arg);
89
90protected:
92 ~VideoIOFactory() override;
93};
94} // end namespace itk
95
96#endif
Light weight base class for most itk classes.
Base class for most ITK classes.
Definition: itkObject.h:62
Contains all enum classes used by VideoIOFactory class.
Create instances of VideoIO objects using an object factory.
static VideoIOBase::Pointer CreateVideoIO(IOModeEnum mode, const char *arg)
~VideoIOFactory() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)