]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
State can be derived also from state<>.
authorpetr000 <silhavik.p@gmail.com>
Sun, 20 Mar 2011 21:12:10 +0000 (22:12 +0100)
committerpetr000 <silhavik.p@gmail.com>
Sun, 20 Mar 2011 21:12:10 +0000 (22:12 +0100)
src/stringoper.h

index bc09608f20c9ec857a0788c010ea06c1bf4e40ed..c05d63ea5233560d6fd53ab104b24de5c6495125 100644 (file)
@@ -109,6 +109,10 @@ bool is_state(const std::string line)
                }
                else
                {
+                       if(line.compare(0,24,"boost::statechart::state")==0)
+                       {
+                               return true;    
+                       }
                        return false;
                }
        }
@@ -120,6 +124,10 @@ bool is_state(const std::string line)
                }
                else
                {
+                       if(line.compare(0,17,"statechart::state")==0)
+                       {
+                               return true;    
+                       }
                        return false;
                }
        }