1 # This awk program extract public functions of the class definition present in hxx interface
5 # we want to extract each function that is public and that does'nt contain
6 # the patterns : public, protected, private, // (comments), { and }
15 # change line if last field contains ";" -> one function per line in output
20 $1 == "class" && $0 !~ /;/ {public=1} # we test matching against /;/ to get rid of forward declaration
21 $1 ~ /public/ {public=1}
22 $1 ~ /protected/ {public=0}
23 $1 ~ /private/ {public=0}