Salome HOME
Maintenance - Salome 3 porting - add tools to create c++ component and to build
[tools/hxx2salome.git] / scripts / parse1.awk
index f1d085fdea2eed09dd29b1c71c78de0588e6b9e7..8d688d25f08b5e48b17a91165bf72901ba703dea 100644 (file)
@@ -3,9 +3,10 @@
 BEGIN { public=0 }
 
 # we want to extract each function that is public and that does'nt contain
-# the patterns : public, private, // (comments), { and }
+# the patterns : public, protected, private, // (comments), { and }
 public == 1     && 
 $1 !~ /public/  && 
+$1 !~ /protected/ && 
 $1 !~ /private/ && 
 $1 !~ /\/\/*/   && 
 $1 !~ /{|}/  {
@@ -18,5 +19,6 @@ $1 !~ /{|}/  {
    
 $1 == "class" && $0 !~ /;/ {public=1} # we test matching against /;/  to get rid of forward declaration
 $1 ~ /public/ {public=1}
+$1 ~ /protected/ {public=0}
 $1 ~ /private/ {public=0}
 $1 ~ /}/      {public=0}