Ignore:
Timestamp:
04/12/12 17:02:23 (12 years ago)
Author:
ymipsl
Message:

Suppress access to CObjectFactory class and CTreeManager.

YM

File:
1 edited

Legend:

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

    r345 r346  
    5252               do 
    5353               { 
    54                   boost::shared_ptr<CContextGroup> group_context = 
    55                                     CContext::GetContextGroup(); 
     54                  boost::shared_ptr<CContextGroup> group_context = CContext::getRoot() ; 
     55  
    5656                  attributes = node.getAttributes(); 
    5757 
     
    6262                  } 
    6363 
    64                   CObjectFactory::SetCurrentContextId(attributes["id"]); 
    65                   CGroupFactory::SetCurrentContextId(attributes["id"]); 
     64                  CContext::setCurrent(attributes["id"]) ; 
    6665 
    67                   bool hasctxt = CObjectFactory::HasObject<CContext>(attributes["id"]); 
     66                  bool hasctxt = CContext::has(attributes["id"]); 
    6867 
    6968                  if(hasctxt) 
     
    7473                  } 
    7574 
    76                   boost::shared_ptr<CContext> context = 
    77                      CObjectFactory::CreateObject<CContext>(attributes["id"]); 
    78                   if (!hasctxt) CGroupFactory::AddChild(group_context, context); 
     75                  boost::shared_ptr<CContext> context = CContext::create(attributes["id"]); 
     76//                  if (!hasctxt)  group_context->addChild(context); 
    7977                  context->parse(node); 
    8078 
Note: See TracChangeset for help on using the changeset viewer.