diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h b/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h index 3baadd6f0f747b5f640b284fd3bd6a7aeab79254..4ac8aeb9f0b90e8a0a20fe379c3b3451d2cfa1d2 100644 --- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h +++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h @@ -672,6 +672,9 @@ public: virtual std::vector<std::string> GetDocTags() const; void AddDocTag(const std::string&); + + /** return wether the application has the "deprecated tag or not */ + bool IsDeprecated(); DocExampleStructure::Pointer GetDocExample(); unsigned int GetNumberOfExamples(); diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx index 4297ae946d62476a88847a9974cd5aff72526fb3..1d64c7614e2d99adf18d7c77a74e1595cb7d6ff2 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx @@ -267,6 +267,16 @@ void Application::AddDocTag(const std::string & tag) } } +bool Application::IsDeprecated() +{ + for (auto tag:m_DocTags) + { + if (tag==Tags::Deprecated) + return true; + } + return false; +} + DocExampleStructure::Pointer Application::GetDocExample() { if (!IsInitialized())