| 1 | This is the documentation for the `IDLdoc project <http://idldoc.idldev.com>` |
|---|
| 2 | source code. The source code can be accessed via Subversion with the command:: |
|---|
| 3 | |
|---|
| 4 | svn co http://svn.idldev.com/idldoc/trunk idldoc |
|---|
| 5 | |
|---|
| 6 | An IDLdoc run passes through three stages: |
|---|
| 7 | |
|---|
| 8 | 1. parsing: uses the appropriate classes in the `parser` directory to parse |
|---|
| 9 | source files and the comments contained in them to create a tree of |
|---|
| 10 | objects, found in the `tree` directory, representing IDL constructs |
|---|
| 11 | |
|---|
| 12 | 2. processing: analyze the tree created in step 1 to create connections |
|---|
| 13 | between objects, the index, etc. |
|---|
| 14 | |
|---|
| 15 | 3. generating output: the templating mechanism found in the `templating` |
|---|
| 16 | directory uses the appropriate templates in the `templates` directory to |
|---|
| 17 | produce the output |
|---|
| 18 | |
|---|
| 19 | IDLdoc uses a "system" object that contains all the top-level information |
|---|
| 20 | about a run. The `IDLDOC` routine itself is only a thin wrapper around the |
|---|
| 21 | creation of the system object. The system object has methods corresponding to |
|---|
| 22 | the three stages of the run: `parseTree`, `process`, and `generateOutput`. |
|---|
| 23 | |
|---|
| 24 | Profiler statistics for the run that produced these API docs can be found |
|---|
| 25 | `here <profiler.html>`. |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | :Author: |
|---|
| 29 | `Michael Galloy <michaelgalloy.com>` |
|---|
| 30 | |
|---|
| 31 | :History: |
|---|
| 32 | IDLdoc 3.0 was completely re-written from scratch and released on 1 January |
|---|
| 33 | 2008. |
|---|
| 34 | |
|---|
| 35 | IDLdoc 3.1 was released on 18 June 2008. |
|---|
| 36 | |
|---|
| 37 | IDLdoc 3.2 was released on 5 June 2009. |
|---|
| 38 | |
|---|
| 39 | :Copyright: |
|---|
| 40 | IDLdoc is released under a BSD-type license. |
|---|
| 41 | |
|---|
| 42 | Copyright (c) 2007-2009, Michael Galloy <mgalloy@idldev.com> |
|---|
| 43 | |
|---|
| 44 | All rights reserved. |
|---|
| 45 | |
|---|
| 46 | Redistribution and use in source and binary forms, with or without |
|---|
| 47 | modification, are permitted provided that the following conditions are met: |
|---|
| 48 | |
|---|
| 49 | a. Redistributions of source code must retain the above copyright |
|---|
| 50 | notice, this list of conditions and the following disclaimer. |
|---|
| 51 | b. Redistributions in binary form must reproduce the above copyright |
|---|
| 52 | notice, this list of conditions and the following disclaimer in the |
|---|
| 53 | documentation and/or other materials provided with the distribution. |
|---|
| 54 | c. Neither the name of Michael Galloy nor the names of its contributors |
|---|
| 55 | may be used to endorse or promote products derived from this software |
|---|
| 56 | without specific prior written permission. |
|---|
| 57 | |
|---|
| 58 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|---|
| 59 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|---|
| 60 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|---|
| 61 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
|---|
| 62 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|---|
| 63 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|---|
| 64 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|---|
| 65 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|---|
| 66 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|---|
| 67 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|---|
| 68 | POSSIBILITY OF SUCH DAMAGE. |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | :Dirs: |
|---|
| 72 | ./ |
|---|
| 73 | main-level programs such as IDLdoc itself, the system object, and the |
|---|
| 74 | version function |
|---|
| 75 | |
|---|
| 76 | analysis |
|---|
| 77 | routines used to calculate proper scaling for the visualization of data |
|---|
| 78 | in a `.sav` file (external) |
|---|
| 79 | |
|---|
| 80 | cmdline_tools |
|---|
| 81 | used to produce color text output, if available and desired (external) |
|---|
| 82 | |
|---|
| 83 | collection |
|---|
| 84 | collection classes (external): `MGcoArrayList` and `MGcoHashTable` are |
|---|
| 85 | used extensively |
|---|
| 86 | |
|---|
| 87 | dist_tools |
|---|
| 88 | routines for handling distributing applications like `MG_SRC_ROOT` and |
|---|
| 89 | `MG_CMP_VERSION` (external) |
|---|
| 90 | |
|---|
| 91 | dist_tools/collection |
|---|
| 92 | not needed since `collection` is already a direct external for IDLdoc |
|---|
| 93 | |
|---|
| 94 | dist_tools/objects |
|---|
| 95 | not needed since `objects` is already a direct external for IDLdoc |
|---|
| 96 | |
|---|
| 97 | introspection |
|---|
| 98 | routines for providing information about an IDL variable (external) |
|---|
| 99 | |
|---|
| 100 | objects |
|---|
| 101 | routines and classes required for handling collection classes in IDL |
|---|
| 102 | 8.0 (external) |
|---|
| 103 | |
|---|
| 104 | parser |
|---|
| 105 | parser classes for parsing `.pro`, `.dlm`, `.sav`, `.idldoc` files, and |
|---|
| 106 | the comments contained in them into a tree of IDL constructs using the |
|---|
| 107 | classes in the `tree` directory |
|---|
| 108 | |
|---|
| 109 | templating |
|---|
| 110 | template class and its helpers (external); this is the library which is |
|---|
| 111 | able to fill in the blanks in the templates in the `templates` directory |
|---|
| 112 | when IDLdoc is in the generating output stage |
|---|
| 113 | |
|---|
| 114 | The `tree` classes are passed directly to the templating engine when |
|---|
| 115 | IDLdoc is producing output. They are queried by the templating engine |
|---|
| 116 | via their `getVariable` method. |
|---|
| 117 | |
|---|
| 118 | textmarkup |
|---|
| 119 | classes to convert a markup tree to a particular markup language |
|---|
| 120 | (external) |
|---|
| 121 | |
|---|
| 122 | tree |
|---|
| 123 | classes representing IDL constructs such as directories, files, |
|---|
| 124 | routines, etc.; the goal of the parsing stage of an IDLdoc run is to |
|---|
| 125 | create the tree of IDL constructs |
|---|
| 126 | |
|---|
| 127 | Each class in the `tree` directory has `fillLinks` and `lookupName` |
|---|
| 128 | methods used during the processing stage of an IDLdoc run. Each class |
|---|
| 129 | also has a `getVariable` method so that it can be queried for |
|---|
| 130 | information by the templating engine. |
|---|
| 131 | |
|---|
| 132 | util |
|---|
| 133 | utility routines/classes (formatting integers, etc) |
|---|
| 134 | |
|---|
| 135 | |
|---|