Numbered anchors in doxygen

Viewed 4213

I have quite a lot of anchors to picture in doxygen, e.g.

\anchor pic_foo
\image html foo.gif "My Caption"
\anchor pic_bar
\image html bar.gif "My Caption"

Everytime when I use \ref to link one of those, I have to make up some nice description so the raw name of the anchor doesn't appear in output.

Is it possible to have something like numbered anchors in doxygen where the link text will be the number of that anchor? Ideally something like:

\anchor pic_foo
\image html foo.gif "My Caption"
\anchor pic_bar
\image html bar.gif "My Caption"

As Figure \ref pic_foo shows... Figure \ref pic_bar is...

should ideally translate to:

As Figure 1 shows... Figure 2 is...

where the number is the link. I would be happy with every kind of counting scheme (documentation global or page local).

1 Answers
Related