Commit f54104c7 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: add IsDeprecated() method to the application class

No related merge requests found
Showing with 13 additions and 0 deletions
+13 -0
......@@ -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();
......
......@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment