1 # This awk program extract public functions of the class definition present in hxx interface
3 # Copyright (C) CEA, EDF
4 # Author : Nicolas Crouzet (CEA)
9 # we want to extract each function that is public and that does'nt contain
10 # the patterns : public, protected, private, // (comments), { and }
19 # change line if last field contains ";" -> one function per line in output
24 $1 == "class" && $0 !~ /;/ {public=1} # we test matching against /;/ to get rid of forward declaration
25 $1 ~ /public/ {public=1}
26 $1 ~ /protected/ {public=0}
27 $1 ~ /private/ {public=0}