[prev in list] [next in list] [prev in thread] [next in thread] 

List:       doxygen-users
Subject:    Re: [Doxygen-users] Ideas for accumulating state in filters across files
From:       Dimitri van Heesch <dimitri () stack ! nl>
Date:       2012-09-06 19:23:38
Message-ID: 3BF9B05A-410A-41F4-8422-24AB708E6B39 () stack ! nl
[Download RAW message or body]

Hi Morten,

On Sep 5, 2012, at 10:37 , Morten Lemvigh <morten.lemvigh@novasoftware.se> wrote:

> Hi all,
> 
> I have created a filter MSBuild XML files. Parts of the 'language' have 
> no namespaces and all documents are imported into one big document. If I 
> use variables in one document that have been defined in another, they 
> are treated as global variables, and I don't have to qualify the 
> variable usage. I could for example have something like:
> 
> File A:
> <FileA_Property>SomeValue</FileA_Property>
> 
> File B:
> <SomeProperty>$(FileA_Property)</SomeProperty>
> 
> Where the contents of of FileA_Property in File A is to be inserted in 
> the place holder in File B.
> 
> I translate each file to a class, and when I write the manual part of 
> the documentation, I can name the variables accordingly in order to have 
> doxygen create links between documents, e.g.: FileA.FileA_Property. In 
> some cases I want to automatically extract the documentation from XML, 
> but since FileA_Property is not in File B, the filter doesn't know how 
> to qualify it.
> 
> What I need is some way to build a table of variable names before 
> running the filter (parse all relevant source files), or alternatively 
> be able to carry over state between invocations of the filter and at the 
> same time be able to specify the order of file processing.
> 
> Any ideas to how I can accomplish this?

To carry over state: use persistent storage (i.e. the disk, or a database)
To specify the order: make a script that generates an explicit file list and
then appends that list to the Doxyfile (with INPUT= in front of it)

Regards,
  Dimitri
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic