ServiceStack designates stopping paths for web services using C # attributes.
for instance
[RestService("/hello1")] [RestService("/hello2")] public class Hello
I would like Doxygen to include the values ββof the RestService attribute in the doxygen output for the Hello class. I'm not too worried about a pretty formattin if a complete line with brackets is included in the output.
Any suggestions?
A quick and dirty trick would be preferable to write the Doxygen extension;)
Greetings
Tymek
==== EDIT
The Python version (this will work easily with Windows) from the doxygen user will be:
#!/usr/bin/env python import sys import re if (len(sys.argv) < 2): print "No input file" else: f = open(sys.argv[1]) line = f.readline() while line: re1 = re.compile("\[RestService\(\"(.*)\",.*\"(.*)\"\)]") re1.search(line) sys.stdout.write(re1.sub(r"/** \\b RestService: \2 \1\\n */\n", line)) #sys.stdout.write(line) line = f.readline() f.close()
and DOXYFILE:
INPUT_FILTER = "doxygenFilter.py"
source share