Re: MD5 Hash of C++ methods?

Dimitri van Heesch <[email protected]>
Newsgroups gmane.text.doxygen.general
Message-ID <[email protected]>
Hi Jari,

Although you could look at MemberDef::setAnchor() to see what is used, I think it
is better to generate a tag file, and parse that to get the mapping from names to anchors.
See GENERATE_TAGFILE. A tag file is an XML file with pretty straightforward contents.

Regards,
  Dimitri

> On 28 Sep 2015, at 18:05 , Jari Williamsson <[email protected]> wrote:
> 
> Damon,
> 
> Thanks for your suggestion! In my case, it's over 300 classes and 8,000 
> methods, so auto-detection of the MD5 hash anchor would be preferred. 
> But if I can't find out the MD5 hash generation text, I'll probably 
> create a parser of the source code to autogenerate @anchors instead.
> 
> 
> Best regards,
> 
> Jari Williamsson
> 
> 
> 
> On 2015-09-28 17:50, [email protected] wrote:
>> Hello Jari
>> 
>> I don't know if you need to get a lot of these. I avoid this problem by
>> adding @anchor explicitly, so I can name it what I want. I hope that helps.
>> 
>> - Damon
>> 
>> Inactive hide details for Jari Williamsson ---09/28/2015 11:46:50
>> AM---Dear List, I'm trying to programmatically bring up the HJari
>> Williamsson ---09/28/2015 11:46:50 AM---Dear List, I'm trying to
>> programmatically bring up the HTML documentation for a C++
>> 
>> 
>>    From:
>> 
>> 	
>> Jari Williamsson <[email protected]>
>> 
>>    To:
>> 
>> 	
>> [email protected],
>> 
>>    Date:
>> 
>> 	
>> 09/28/2015 11:46 AM
>> 
>>    Subject:
>> 
>> 	
>> [Doxygen-users] MD5 Hash of C++ methods?
>> 
>> ------------------------------------------------------------------------
>> 
>> 
>> 
>> Dear List,
>> 
>> I'm trying to programmatically bring up the HTML documentation for a C++
>> method, using the MD5 hash anchor for the method. (I have no problem
>> finding the correct HTML file, since the class "MyClass" simply becomes
>> "class_my_class.html".)
>> 
>> However, I have trouble founding out the text that is used to becomes
>> the MD5 anchor for the method.
>> 
>> So, if I have a method in "MyClass" declared as...
>> int MyMethod() const;
>> ...what is the text that will be used to construct the MD5 hash anchor
>> for the method in the HTML file?
>> 
>> Thanks in advance!
>> 
>> 
>> Best regards,
>> 
>> Jari Williamsson
>> 


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.