26 @export_comments = ();
27 $export_param_num = 0;
29 'stk' => '(STK Import)'
44 open ( SOURCE
, $file ) || printf " cannot open file \n";
47 if ( /\/\
*\
! \\class\s
*(\w
*)/ ) {
50 #print "dox for $1\n";
51 $doc_brief{$doc_class_name} = "";
52 $doc_data{$doc_class_name} = "";
54 elsif ( $doc_info_open ) {
56 $doc_data{$doc_class_name} .= $1;
57 #print "dox brief $doc_class_name - ".$doc_brief{$doc_class_name}."\n";
58 #print "dox data $doc_class_name - ".$doc_data{$doc_class_name}."\n";
62 elsif ( /\\brief (.*)/ ) {
63 $doc_brief{$doc_class_name} = $1;
66 $doc_data{$doc_class_name} .= $_;
72 open ( SOURCE
, $file ) || printf " cannot open file \n";
75 if ( /\/\
/\!(.*)$/ ) {
76 # print "comment - $1\n";
80 if ( /DLL_QUERY\s+(\w*)_query/ ) {
82 $lib_note = $library_notes{$1};
85 if ( /QUERY->ugen_add\s*\(\s*(.*?)\)/ ) {
86 open_ugen
( split ( /[\s,\"]+/ , $1 ) , @comments);
89 if ( /QUERY->ugen_extends\s*\(\s*(.*?)\)/ ) {
90 print_extends
( split ( /[\s,\"]+/ , $1 ) , @comments);
93 if ( /QUERY->ugen_ctrl\s*\(\s*(.*?)\)/ ) {
94 print_function
( split ( /[\s,\"]+/ , $1 ) , @comments);
98 if ( /QUERY->set_name\s*\(\s*(.*?)\)/ ) {
99 open_namespace
( split ( /[\s,\"]+/ , $1 ) , @comments);
103 if ( /QUERY->add_export\s*\(\s*(.*?)\)/ ) {
104 open_export
( split ( /[\s,\"]+/ , $1 ) , @comments);
108 if ( /QUERY->add_param\s*\(\s*(.*?)\)/ ) {
109 add_param
( split ( /[\s,\"]+/ , $1 ) , @comments);
121 my ( $query, $name, $arg2, @comments ) = @_;
125 $brief = $doc_brief{$ugen_name};
126 $data = $doc_data{$ugen_name};
127 if ( $brief ne "" ) { @comments = ( $brief, @comments ); }
132 <a name=\"$ugen_name\"> </a>
133 <table width=100% border=0 bgcolor=d9d9d9 cellpadding=1 cellspacing=0>
134 <tr><td><table width=100% border=0 bgcolor=fdfdfd cellpadding=1 cellspacing=2>
135 <tr><td align=left><font face=verdana size=2>
136 <font color=#339933>[ugen]</font>: <b>$ugen_name</b> $lib_note<br>
138 foreach ( @comments ) { print "- $_<br />\n"; }
139 if ( $data ne "" ) { print "<pre>$data</pre>"; }
144 if ( $flist_open ) { close_flist
(); }
146 print "</td></tr></table></td></tr></table>\n\n";
148 # printf "-end $ugen_name\n";
155 my ( $query, $parent ) = @_;
156 print "extends <b><a href=\"#$parent\">$parent</a></b><br />";
161 if ( $ugen_open ) { close_ugen
(); }
162 if ( $export_open ) { close_export
(); }
180 my ($query, $ctor, $cget, $type, $name, @comments) = @_;
181 if ( !$flist_open ) { open_flist
(); }
183 $comm = join ( "<br />", @comments);
186 if ( $ctor ne "NULL" && $cget ne "NULL" ) { $access = "READ/WRITE"; }
187 elsif ( $ctor ne "NULL" ) { $access = "WRITE only" }
188 elsif ( $cget ne "NULL" ) { $access = "READ only" }
189 print "<b>.$name</b> - ( $type , $access ) - $comm<br/>\n";
190 # print "---member $type $name $ctor $cget -- $comm\n";
197 my ( $query, $name ) = @_;
201 sub close_namespace
{
206 my ( $query, $type, $name, $func, $flag, @comments ) = @_;
208 @export_comments=@comments;
210 print "[function]: $type <b>$name</b>( ";
211 $export_param_num = 0;
218 foreach ( @export_comments ) { print "- $_<br />\n"; }
223 my ($query, $type, $name, @comments ) = @_;
224 push ( @export_comments, @comments );
226 if ( $export_param_num ) { $sep = ", "; }
227 print "$sep$type $name";
228 $export_param_num ++;