Doxygen and add a value of an attribute to the output documentation
You could make an input filter that converts a line with
[RestService("/hello1")]
to
/** \b RestService: "/hello1"\n */
like for instance by putting following piece of perl magic in a file called filter.pl
:
open(F, "<", $ARGV[0]);
while(<F>) { /^\s*\[RestService\((.*)\)\]\s*$/ ?
print "/** \\b RestService: $1\\n */\n" : print $_; }
and use that with the INPUT_FILTER
tag in the Doxyfile:
INPUT_FILTER = "perl filter.pl"