Changeset 1031 for XIOS/trunk/src


Ignore:
Timestamp:
01/23/17 10:38:55 (7 years ago)
Author:
ymipsl
Message:

Remove limitation that inhibits reusage of a context already created.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/xml_parser.cpp

    r509 r1031  
    7070                  CContext::setCurrent(attributes["id"]) ; 
    7171 
    72                   bool hasctxt = CContext::has(attributes["id"]); 
    73  
    74                   if(hasctxt) 
    75                   { 
    76                      DEBUG("The context will not be processed because it exist an other context with the same id" ); 
    77                      continue; 
    78                   } 
    7972 
    8073                  if (isParseAll) 
    8174                  { 
    8275                    CContext* context = CContext::create(attributes["id"]); 
    83 //                  if (!hasctxt)  group_context->addChild(context); 
    8476                    context->parse(node); 
    8577 
     
    9284                    { 
    9385                      CContext* context = CContext::create(*it); 
    94   //                  if (!hasctxt)  group_context->addChild(context); 
    9586                      context->parse(node); 
    9687 
Note: See TracChangeset for help on using the changeset viewer.