Ignore:
Timestamp:
03/30/12 17:45:29 (12 years ago)
Author:
ymipsl
Message:

removed "tree" namespace

YM

Location:
XIOS/trunk/src/interface/c
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c/icaxis.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121    
    22    typedef xios::tree::CAxis      * XAxisPtr; 
    23    typedef xios::tree::CAxisGroup * XAxisGroupPtr; 
     22   typedef xios::CAxis      * XAxisPtr; 
     23   typedef xios::CAxisGroup * XAxisGroupPtr; 
    2424 
    2525   // ------------------------ Création des handle ----------------------------- 
     
    3030      if (!cstr2string(_id, _id_len, id)) return; 
    3131 
    32       *_ret = xios::CObjectFactory::GetObject<xios::tree::CAxis>(id).get(); 
     32      *_ret = xios::CObjectFactory::GetObject<xios::CAxis>(id).get(); 
    3333   } 
    3434    
     
    3838      if (!cstr2string(_id, _id_len, id)) return; 
    3939 
    40       *_ret = xios::CObjectFactory::GetObject<xios::tree::CAxisGroup>(id).get(); 
     40      *_ret = xios::CObjectFactory::GetObject<xios::CAxisGroup>(id).get(); 
    4141   } 
    4242 
     
    4848      if (!cstr2string(_id, _id_len, id)) return; 
    4949 
    50       *_ret = xios::CObjectFactory::HasObject<xios::tree::CAxis>(id); 
     50      *_ret = xios::CObjectFactory::HasObject<xios::CAxis>(id); 
    5151   } 
    5252 
     
    5656      if (!cstr2string(_id, _id_len, id)) return; 
    5757 
    58       *_ret = xios::CObjectFactory::HasObject<xios::tree::CAxisGroup>(id); 
     58      *_ret = xios::CObjectFactory::HasObject<xios::CAxisGroup>(id); 
    5959   } 
    6060    
  • XIOS/trunk/src/interface/c/iccontext.cpp

    r335 r345  
    2424   typedef enum { D360 = 0 , ALLLEAP, NOLEAP, JULIAN, GREGORIAN } XCalendarType ; 
    2525 
    26    typedef xios::tree::CContext * XContextPtr; 
     26   typedef xios::CContext * XContextPtr; 
    2727 
    2828   // ------------------------ Création des handle ----------------------------- 
     
    3333      if (!cstr2string(_id, _id_len, id)) return; 
    3434 
    35       std::vector<boost::shared_ptr<xios::tree::CContext> > def_vector = 
    36             xios::tree::CContext::GetContextGroup()->getChildList(); 
     35      std::vector<boost::shared_ptr<xios::CContext> > def_vector = 
     36            xios::CContext::GetContextGroup()->getChildList(); 
    3737 
    3838      for (std::size_t i = 0; i < def_vector.size(); i++) 
     
    6060      if (!cstr2string(_id, _id_len, id)) return; 
    6161 
    62       std::vector<boost::shared_ptr<xios::tree::CContext> > def_vector = 
    63             xios::tree::CContext::GetContextGroup()->getChildList(); 
     62      std::vector<boost::shared_ptr<xios::CContext> > def_vector = 
     63            xios::CContext::GetContextGroup()->getChildList(); 
    6464 
    6565      for (std::size_t i = 0; i < def_vector.size(); i++) 
  • XIOS/trunk/src/interface/c/icdata.cpp

    r342 r345  
    3131   typedef enum { NETCDF4 = 0 } XFileType; 
    3232    
    33    typedef xios::tree::CContext * XContextPtr; 
     33   typedef xios::CContext * XContextPtr; 
    3434 
    3535   // -------------------- Traitement des données ------------------------------ 
  • XIOS/trunk/src/interface/c/icdate.cpp

    r343 r345  
    2626      { 
    2727         CDuration dur = {ts_year, ts_month, ts_day, ts_hour, ts_minute, ts_second}; 
    28          boost::shared_ptr<xios::tree::CContext> context = 
    29          xios::CObjectFactory::GetObject<xios::tree::CContext> 
     28         boost::shared_ptr<xios::CContext> context = 
     29         xios::CObjectFactory::GetObject<xios::CContext> 
    3030            (CObjectFactory::GetCurrentContextId()); 
    3131          
     
    4242   void cxios_update_calendar(int step) 
    4343   { 
    44       boost::shared_ptr<xios::tree::CContext> context = 
    45             xios::CObjectFactory::GetObject<xios::tree::CContext> 
     44      boost::shared_ptr<xios::CContext> context = 
     45            xios::CObjectFactory::GetObject<xios::CContext> 
    4646            (CObjectFactory::GetCurrentContextId()); 
    4747      context->updateCalendar(step) ; 
  • XIOS/trunk/src/interface/c/icdomain.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121 
    22    typedef xios::tree::CDomain      * XDomainPtr; 
    23    typedef xios::tree::CDomainGroup * XDomainGroupPtr; 
     22   typedef xios::CDomain      * XDomainPtr; 
     23   typedef xios::CDomainGroup * XDomainGroupPtr; 
    2424 
    2525   // ------------------------ Création des handle ----------------------------- 
     
    3030      if (!cstr2string(_id, _id_len, id)) return; 
    3131 
    32       *_ret = xios::CObjectFactory::GetObject<xios::tree::CDomain>(id).get(); 
     32      *_ret = xios::CObjectFactory::GetObject<xios::CDomain>(id).get(); 
    3333   } 
    3434    
     
    3838      if (!cstr2string(_id, _id_len, id)) return; 
    3939 
    40       *_ret = xios::CObjectFactory::GetObject<xios::tree::CDomainGroup>(id).get(); 
     40      *_ret = xios::CObjectFactory::GetObject<xios::CDomainGroup>(id).get(); 
    4141   } 
    4242 
     
    4848      if (!cstr2string(_id, _id_len, id)) return; 
    4949 
    50       *_ret = xios::CObjectFactory::HasObject<xios::tree::CDomain>(id); 
     50      *_ret = xios::CObjectFactory::HasObject<xios::CDomain>(id); 
    5151   } 
    5252 
     
    5656      if (!cstr2string(_id, _id_len, id)) return; 
    5757 
    58       *_ret = xios::CObjectFactory::HasObject<xios::tree::CDomainGroup>(id); 
     58      *_ret = xios::CObjectFactory::HasObject<xios::CDomainGroup>(id); 
    5959   } 
    6060} // extern "C" 
  • XIOS/trunk/src/interface/c/icfield.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121    
    22    typedef xios::tree::CField      * XFieldPtr; 
    23    typedef xios::tree::CFieldGroup * XFieldGroupPtr; 
     22   typedef xios::CField      * XFieldPtr; 
     23   typedef xios::CFieldGroup * XFieldGroupPtr; 
    2424    
    2525// --------------------------------------------------------------------------    
     
    3232      if (!cstr2string(_id, _id_len, id)) return; 
    3333 
    34       *_ret = xios::CObjectFactory::GetObject<xios::tree::CField>(id).get(); 
     34      *_ret = xios::CObjectFactory::GetObject<xios::CField>(id).get(); 
    3535   } 
    3636    
     
    4040      if (!cstr2string(_id, _id_len, id)) return; 
    4141 
    42       *_ret = xios::CObjectFactory::GetObject<xios::tree::CFieldGroup>(id).get(); 
     42      *_ret = xios::CObjectFactory::GetObject<xios::CFieldGroup>(id).get(); 
    4343   } 
    4444 
     
    5151      if (!cstr2string(_id, _id_len, id)) return; 
    5252 
    53       *_ret = xios::CObjectFactory::HasObject<xios::tree::CField>(id); 
     53      *_ret = xios::CObjectFactory::HasObject<xios::CField>(id); 
    5454   } 
    5555 
     
    5959      if (!cstr2string(_id, _id_len, id)) return; 
    6060 
    61       *_ret = xios::CObjectFactory::HasObject<xios::tree::CFieldGroup>(id); 
     61      *_ret = xios::CObjectFactory::HasObject<xios::CFieldGroup>(id); 
    6262   } 
    6363 
  • XIOS/trunk/src/interface/c/icfile.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121    
    22    typedef xios::tree::CFile      * XFilePtr; 
    23    typedef xios::tree::CFileGroup * XFileGroupPtr; 
     22   typedef xios::CFile      * XFilePtr; 
     23   typedef xios::CFileGroup * XFileGroupPtr; 
    2424 
    2525   // ------------------------ Création des handle ----------------------------- 
     
    3030      if (!cstr2string(_id, _id_len, id)) return; 
    3131 
    32       *_ret = xios::CObjectFactory::GetObject<xios::tree::CFile>(id).get(); 
     32      *_ret = xios::CObjectFactory::GetObject<xios::CFile>(id).get(); 
    3333   } 
    3434    
     
    3838      if (!cstr2string(_id, _id_len, id)) return; 
    3939 
    40       *_ret = xios::CObjectFactory::GetObject<xios::tree::CFileGroup>(id).get(); 
     40      *_ret = xios::CObjectFactory::GetObject<xios::CFileGroup>(id).get(); 
    4141   } 
    4242 
     
    4848      if (!cstr2string(_id, _id_len, id)) return; 
    4949 
    50       *_ret = xios::CObjectFactory::HasObject<xios::tree::CFile>(id); 
     50      *_ret = xios::CObjectFactory::HasObject<xios::CFile>(id); 
    5151   } 
    5252 
     
    5656      if (!cstr2string(_id, _id_len, id)) return; 
    5757 
    58       *_ret = xios::CObjectFactory::HasObject<xios::tree::CFileGroup>(id); 
     58      *_ret = xios::CObjectFactory::HasObject<xios::CFileGroup>(id); 
    5959   } 
    6060} // extern "C" 
  • XIOS/trunk/src/interface/c/icgrid.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121    
    22    typedef xios::tree::CGrid      * XGridPtr; 
    23    typedef xios::tree::CGridGroup * XGridGroupPtr; 
     22   typedef xios::CGrid      * XGridPtr; 
     23   typedef xios::CGridGroup * XGridGroupPtr; 
    2424 
    2525   // ------------------------ Création des handle ----------------------------- 
     
    3030      if (!cstr2string(_id, _id_len, id)) return; 
    3131 
    32       *_ret = xios::CObjectFactory::GetObject<xios::tree::CGrid>(id).get(); 
     32      *_ret = xios::CObjectFactory::GetObject<xios::CGrid>(id).get(); 
    3333   } 
    3434    
     
    3838      if (!cstr2string(_id, _id_len, id)) return; 
    3939 
    40       *_ret = xios::CObjectFactory::GetObject<xios::tree::CGridGroup>(id).get(); 
     40      *_ret = xios::CObjectFactory::GetObject<xios::CGridGroup>(id).get(); 
    4141   } 
    4242 
     
    4848      if (!cstr2string(_id, _id_len, id)) return; 
    4949 
    50       *_ret = xios::CObjectFactory::HasObject<xios::tree::CGrid>(id); 
     50      *_ret = xios::CObjectFactory::HasObject<xios::CGrid>(id); 
    5151   } 
    5252 
     
    5656      if (!cstr2string(_id, _id_len, id)) return; 
    5757 
    58       *_ret = xios::CObjectFactory::HasObject<xios::tree::CGridGroup>(id); 
     58      *_ret = xios::CObjectFactory::HasObject<xios::CGridGroup>(id); 
    5959   } 
    6060} // extern "C" 
  • XIOS/trunk/src/interface/c/icxml_tree.cpp

    r335 r345  
    2020   // ----------------------- Redéfinition de types ---------------------------- 
    2121 
    22    typedef xios::tree::CContext * XContextPtr; 
    23  
    24    typedef xios::tree::CGrid      * XGridPtr; 
    25    typedef xios::tree::CGridGroup * XGridGroupPtr; 
    26  
    27    typedef xios::tree::CFile      * XFilePtr; 
    28    typedef xios::tree::CFileGroup * XFileGroupPtr; 
    29  
    30    typedef xios::tree::CField      * XFieldPtr; 
    31    typedef xios::tree::CFieldGroup * XFieldGroupPtr; 
    32  
    33    typedef xios::tree::CDomain      * XDomainPtr; 
    34    typedef xios::tree::CDomainGroup * XDomainGroupPtr; 
    35  
    36    typedef xios::tree::CAxis      * XAxisPtr; 
    37    typedef xios::tree::CAxisGroup * XAxisGroupPtr; 
     22   typedef xios::CContext * XContextPtr; 
     23 
     24   typedef xios::CGrid      * XGridPtr; 
     25   typedef xios::CGridGroup * XGridGroupPtr; 
     26 
     27   typedef xios::CFile      * XFilePtr; 
     28   typedef xios::CFileGroup * XFileGroupPtr; 
     29 
     30   typedef xios::CField      * XFieldPtr; 
     31   typedef xios::CFieldGroup * XFieldGroupPtr; 
     32 
     33   typedef xios::CDomain      * XDomainPtr; 
     34   typedef xios::CDomainGroup * XDomainGroupPtr; 
     35 
     36   typedef xios::CAxis      * XAxisPtr; 
     37   typedef xios::CAxisGroup * XAxisGroupPtr; 
    3838    
    3939   // ----------------------- Ajout d'enfant à un parent ----------------------- 
Note: See TracChangeset for help on using the changeset viewer.