OTB  6.7.0
Orfeo Toolbox
otbChangeInformationImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbChangeInformationImageFilter_h
22 #define otbChangeInformationImageFilter_h
23 
25 #include "otbMetaDataKey.h"
26 
27 namespace otb
28 {
29 
40 template< typename TInputImage >
42  public itk::ChangeInformationImageFilter< TInputImage >
43 {
44 public:
45 
51 
53  itkNewMacro(Self);
54 
57 
59  void SetChangeMetaData(const char *keyname, bool flag);
60 
62  bool GetChangeMetaData(const char *keyname);
63 
68  template<typename T>
69  void SetOutputMetaData(const char *keyname, const T * value);
70 
71 protected:
74 
76  void GenerateOutputInformation() override;
77 
78 private:
79  ChangeInformationImageFilter(const Self &) = delete;
80  void operator =(const Self&) = delete;
81 
83  std::set<std::string> m_ChangedKeys;
84 
85 };
86 
87 } // End of namespace OTB
88 
89 #ifndef OTB_MANUAL_INSTANTIATION
91 #endif
92 
93 #endif
itk::ChangeInformationImageFilter< TInputImage > Superclass
void operator=(const Self &)=delete
void SetOutputMetaData(const char *keyname, const T *value)
void SetChangeMetaData(const char *keyname, bool flag)
itk::SmartPointer< const Self > ConstPointer