model_server/lde/src/lde_smt_flowchart.cxx
// ------------------  STATEMENT processing  -------------------------
//
// Calls build_simple but first assign the role if this is a member
// protection type (like public, private, ..)in class definition.
STATEMENT processing
Calls build_simple but first assign the role if this is a member
protection type (like public, private, ..)in class definition.
STATEMENT processing Calls build_simple but first assign the role if this is a member protection type ( like public private .. ) in class definition .
ldrChartNodePtr build_stmt(smtTreePtr smt_stmt, int level)
{
   ldrChartNodePtr  ldr_node = NULL;
   ldrRole          ldr_role;
   char             *smt_data;
   smtTreePtr       smt_token;
   smtTreePtr       smt_parent;
   ostrstream       buff;
   Initialize(build_stmt);
   ldr_role = ldrSIMPLE;
   smt_parent = smt_stmt->get_parent();
   if (smt_parent->type == SMT_cbody){
       smt_token = smt_stmt->get_first_leaf();
       smt_token->send_string(buff);
       buff << ends;
       smt_data = buff.str();
       if ( !strncmp(smt_data, "private", 7) ||
            !strncmp(smt_data, "public", 6)  ||
            !strncmp(smt_data, "protected", 9) )
       ldr_role = ldrCLASS_MEMBER_TYPE;
   }   
   ldr_node = build_simple_node(smt_stmt, level,
                     (ldrSymbolType )ldrBULLET, ldr_role);
   return(ldr_node);
}
ldrChartNodePtr build_stmt ( smtTreePtr smt_stmt , int level ) { ldrChartNodePtr ldr_node = NULL ; ldrRole ldr_role ; char * smt_data ; smtTreePtr smt_token ; smtTreePtr smt_parent ; ostrstream buff ; Initialize ( build_stmt ) ; ldr_role = ldrSIMPLE ; smt_parent = smt_stmt -> get_parent ( ) ; if ( smt_parent -> type == SMT_cbody ) { smt_token = smt_stmt -> get_first_leaf ( ) ; smt_token -> send_string ( buff ) ; buff << ends ; smt_data = buff . str ( ) ; if ( ! strncmp ( smt_data , " " , 7 ) || ! strncmp ( smt_data , " " , 6 ) || ! strncmp ( smt_data , " " , 9 ) ) ldr_role = ldrCLASS_MEMBER_TYPE ; } ldr_node = build_simple_node ( smt_stmt , level , ( ldrSymbolType ) ldrBULLET , ldr_role ) ; return ( ldr_node ) ; }
STATEMENT processing
Calls build_simple but first assign the role if this is a member
protection type (like public, private, ..)in class definition.
STATEMENT processing Calls build_simple but first assign the role if this is a member protection type ( like public private .. ) in class definition .
//------  Executable code ----------------------