Commit 0924c877 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - module meta files now support tags.

parent 6b698dde
...@@ -198,3 +198,15 @@ std::vector< WModuleMetaInformation::Online > WModuleMetaInformation::getOnlineR ...@@ -198,3 +198,15 @@ std::vector< WModuleMetaInformation::Online > WModuleMetaInformation::getOnlineR
return r; return r;
} }
std::vector< std::string > WModuleMetaInformation::getTags() const
{
// return a default if not meta data was loaded
if( !m_loaded )
{
return std::vector< std::string >();
}
// find key-value pair
return m_metaData.getValues< std::string >( m_name + "/tag" );
}
...@@ -173,6 +173,12 @@ public: ...@@ -173,6 +173,12 @@ public:
*/ */
std::vector< Online > getOnlineResources() const; std::vector< Online > getOnlineResources() const;
/**
* A list of tags provided for the module.
*
* \return the tag list.
*/
std::vector< std::string > getTags() const;
protected: protected:
private: private:
/** /**
......
...@@ -66,6 +66,12 @@ ...@@ -66,6 +66,12 @@
what="Bug fixing"; what="Bug fixing";
}; };
// Provide some tags to have modules nicely grouped and ordered.
// NOTE: tags are handled case insesitive.
// IMPORTANT: the order of appearance will be used by OW to classify your tags
tag = "Navigation";
tag = "MRT";
// You can provide online resources. They are shown in the GUI. You should // You can provide online resources. They are shown in the GUI. You should
// additionally provide a description to help the user know what this is. // additionally provide a description to help the user know what this is.
online online
......
Markdown is supported
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