Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
0924c877
Commit
0924c877
authored
May 04, 2012
by
Sebastian Eichelbaum
Browse files
[CHANGE] - module meta files now support tags.
parent
6b698dde
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
src/core/kernel/WModuleMetaInformation.cpp
src/core/kernel/WModuleMetaInformation.cpp
+12
-0
src/core/kernel/WModuleMetaInformation.h
src/core/kernel/WModuleMetaInformation.h
+6
-0
src/modules/navigationSlices/resources/META
src/modules/navigationSlices/resources/META
+6
-0
No files found.
src/core/kernel/WModuleMetaInformation.cpp
View file @
0924c877
...
...
@@ -198,3 +198,15 @@ std::vector< WModuleMetaInformation::Online > WModuleMetaInformation::getOnlineR
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"
);
}
src/core/kernel/WModuleMetaInformation.h
View file @
0924c877
...
...
@@ -173,6 +173,12 @@ public:
*/
std
::
vector
<
Online
>
getOnlineResources
()
const
;
/**
* A list of tags provided for the module.
*
* \return the tag list.
*/
std
::
vector
<
std
::
string
>
getTags
()
const
;
protected:
private:
/**
...
...
src/modules/navigationSlices/resources/META
View file @
0924c877
...
...
@@ -66,6 +66,12 @@
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
// additionally provide a description to help the user know what this is.
online
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment