OTB  9.0.0
Orfeo Toolbox
otbWrapperOutputXML.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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 otbWrapperOutputXML_h
22 #define otbWrapperOutputXML_h
23 
24 #include "otbWrapperApplication.h"
25 #include "otb_tinyxml.h"
26 #include <string>
27 
28 namespace otb
29 {
30 namespace Wrapper
31 {
32 namespace XML
33 {
34 
35 OTBApplicationEngine_EXPORT TiXmlElement* AddChildNodeTo(TiXmlElement* parent, std::string name, std::string value = "");
36 
37 OTBApplicationEngine_EXPORT std::string pixelTypeToString(ImagePixelType pixType);
38 
39 OTBApplicationEngine_EXPORT void Write(const std::string& filename, Application::Pointer application);
40 
41 OTBApplicationEngine_EXPORT TiXmlElement* ParseApplication(Application::Pointer app);
42 
43 OTBApplicationEngine_EXPORT std::string MakeCommandLine(otb::Wrapper::Application::Pointer application);
44 
46 OTBApplicationEngine_EXPORT void ParseGroup(Application::Pointer app, TiXmlElement* n_App, const std::string& group);
47 
48 } // namespace XML
49 } // End namespace Wrapper
50 } // End namespace otb
51 
52 #endif
otb::Wrapper::Application::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWrapperApplication.h:82
otb::Wrapper::XML::pixelTypeToString
OTBApplicationEngine_EXPORT std::string pixelTypeToString(ImagePixelType pixType)
otbWrapperApplication.h
otb::Wrapper::ImagePixelType
ImagePixelType
Definition: otbWrapperTypes.h:104
otb::Wrapper::XML::Write
OTBApplicationEngine_EXPORT void Write(const std::string &filename, Application::Pointer application)
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Wrapper::XML::ParseApplication
OTBApplicationEngine_EXPORT TiXmlElement * ParseApplication(Application::Pointer app)
otb::Wrapper::XML::MakeCommandLine
OTBApplicationEngine_EXPORT std::string MakeCommandLine(otb::Wrapper::Application::Pointer application)
otb::Wrapper::XML::ParseGroup
OTBApplicationEngine_EXPORT void ParseGroup(Application::Pointer app, TiXmlElement *n_App, const std::string &group)
otb::Wrapper::XML::AddChildNodeTo
OTBApplicationEngine_EXPORT TiXmlElement * AddChildNodeTo(TiXmlElement *parent, std::string name, std::string value="")