|
|
|
|||||
|
Hereby attached you can find a little "howto" how to use DoxyGen to generate documentation for your project:
This is how I got it working: 1. Install Cygwin (www.cygwin.com), check that doxygen and sed is installed. Code:
$ sed --version GNU sed version 4.1.5 $ doxygen --version 1.4.6 a] Make a small doxygen script, which only generates HTML files: Code:
EXTRACT_ALL = YES QUIET = YES FILE_PATTERNS = *.ice INPUT_FILTER = "sed -f sed.script " GENERATE_LATEX = NO Code:
doxygen -s -g slice2doxy 3. Create a sed-script (I assume you call it sed.script): Code:
# Skip C-style commenting
/\/\*/ , /\*\//b
/\/\/\(.*\)/b
s/module/namespace/
s/local//
s/idempotent//
s/dictionary/map/
s/sequence/vector/
#parse local interface
/interface/ , /{/ {
/interface/ {
#change interface to class
s/interface\(.*\)/class \1/
}
#change extends
s/extends/: public/
#add public before every keyword, but not {
/{/!s/,\(.*\)/, public \1/g
s/{/{public:/
}
s/nonmutating\(.*)\)/\1 const/
/throws/,/;/ {
s/throws/throw(/
s/;/);/
}
Code:
$ doxygen slice2doxy If any questions, please fire ahead ;-) PS: I made this little howto because I still couldn't figure out how to use docbook...
__________________
Steven Van Ingelgem Salvania [http://www.salvania.be/] Product Descr.: Statistical data analysis Last edited by g00fy : 03-20-2006 at 03:32 AM. |
|
|||||
|
Updated patch
I made a few mods to this, to enforce the script only on *.ice files.
Edit the project.doxyfile as follows: Code:
FILTER_PATTERNS = *.ice=./slice2doxy Code:
#!/bin/sh sed -f sed.script Code:
# Skip C-style commenting
/\/\*/ , /\*\//b
/\/\/\(.*\)/b
s/module/namespace/
s/local//
s/idempotent//
s/dictionary/map/
s/sequence/vector/
#parse local interface
/interface/ , /{/ {
/interface/ {
#change interface to class
s/interface\(.*\)/class \1/
}
#change extends
s/extends/: public/
#add public before every keyword, but not {
/{/!s/,\(.*\)/, public \1/g
s/{/{public:/
}
s/nonmutating\(.*)\)/\1 const/
/throws/,/;/ {
s/throws/throw(/
s/;/);/
}
Code:
$ doxygen project.doxyfile |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? | Jason Gao | Help Center | 4 | 10-26-2006 11:23 AM |
| streaming function "write/readContext" for Ice::Context | sylvain | Help Center | 0 | 09-13-2006 05:14 AM |
| Icepack registry "TimeOut" exception with heavy load | eaglecn | Help Center | 1 | 05-26-2006 12:02 AM |
| "Invalid UTF8 string" when transer chinese chars between cpp server and csharp client | raygo | Help Center | 8 | 03-21-2006 08:34 PM |
| Going from "in" to "out" param, using a class as a union | catalin | Help Center | 1 | 04-05-2004 08:55 AM |