Changeset 345 for XIOS/trunk/src/interface/c
- Timestamp:
- 03/30/12 17:45:29 (12 years ago)
- Location:
- XIOS/trunk/src/interface/c
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icaxis.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 22 typedef xios:: tree::CAxis * XAxisPtr;23 typedef xios:: tree::CAxisGroup * XAxisGroupPtr;22 typedef xios::CAxis * XAxisPtr; 23 typedef xios::CAxisGroup * XAxisGroupPtr; 24 24 25 25 // ------------------------ Création des handle ----------------------------- … … 30 30 if (!cstr2string(_id, _id_len, id)) return; 31 31 32 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CAxis>(id).get();32 *_ret = xios::CObjectFactory::GetObject<xios::CAxis>(id).get(); 33 33 } 34 34 … … 38 38 if (!cstr2string(_id, _id_len, id)) return; 39 39 40 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CAxisGroup>(id).get();40 *_ret = xios::CObjectFactory::GetObject<xios::CAxisGroup>(id).get(); 41 41 } 42 42 … … 48 48 if (!cstr2string(_id, _id_len, id)) return; 49 49 50 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CAxis>(id);50 *_ret = xios::CObjectFactory::HasObject<xios::CAxis>(id); 51 51 } 52 52 … … 56 56 if (!cstr2string(_id, _id_len, id)) return; 57 57 58 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CAxisGroup>(id);58 *_ret = xios::CObjectFactory::HasObject<xios::CAxisGroup>(id); 59 59 } 60 60 -
XIOS/trunk/src/interface/c/iccontext.cpp
r335 r345 24 24 typedef enum { D360 = 0 , ALLLEAP, NOLEAP, JULIAN, GREGORIAN } XCalendarType ; 25 25 26 typedef xios:: tree::CContext * XContextPtr;26 typedef xios::CContext * XContextPtr; 27 27 28 28 // ------------------------ Création des handle ----------------------------- … … 33 33 if (!cstr2string(_id, _id_len, id)) return; 34 34 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(); 37 37 38 38 for (std::size_t i = 0; i < def_vector.size(); i++) … … 60 60 if (!cstr2string(_id, _id_len, id)) return; 61 61 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(); 64 64 65 65 for (std::size_t i = 0; i < def_vector.size(); i++) -
XIOS/trunk/src/interface/c/icdata.cpp
r342 r345 31 31 typedef enum { NETCDF4 = 0 } XFileType; 32 32 33 typedef xios:: tree::CContext * XContextPtr;33 typedef xios::CContext * XContextPtr; 34 34 35 35 // -------------------- Traitement des données ------------------------------ -
XIOS/trunk/src/interface/c/icdate.cpp
r343 r345 26 26 { 27 27 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> 30 30 (CObjectFactory::GetCurrentContextId()); 31 31 … … 42 42 void cxios_update_calendar(int step) 43 43 { 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> 46 46 (CObjectFactory::GetCurrentContextId()); 47 47 context->updateCalendar(step) ; -
XIOS/trunk/src/interface/c/icdomain.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 22 typedef xios:: tree::CDomain * XDomainPtr;23 typedef xios:: tree::CDomainGroup * XDomainGroupPtr;22 typedef xios::CDomain * XDomainPtr; 23 typedef xios::CDomainGroup * XDomainGroupPtr; 24 24 25 25 // ------------------------ Création des handle ----------------------------- … … 30 30 if (!cstr2string(_id, _id_len, id)) return; 31 31 32 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CDomain>(id).get();32 *_ret = xios::CObjectFactory::GetObject<xios::CDomain>(id).get(); 33 33 } 34 34 … … 38 38 if (!cstr2string(_id, _id_len, id)) return; 39 39 40 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CDomainGroup>(id).get();40 *_ret = xios::CObjectFactory::GetObject<xios::CDomainGroup>(id).get(); 41 41 } 42 42 … … 48 48 if (!cstr2string(_id, _id_len, id)) return; 49 49 50 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CDomain>(id);50 *_ret = xios::CObjectFactory::HasObject<xios::CDomain>(id); 51 51 } 52 52 … … 56 56 if (!cstr2string(_id, _id_len, id)) return; 57 57 58 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CDomainGroup>(id);58 *_ret = xios::CObjectFactory::HasObject<xios::CDomainGroup>(id); 59 59 } 60 60 } // extern "C" -
XIOS/trunk/src/interface/c/icfield.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 22 typedef xios:: tree::CField * XFieldPtr;23 typedef xios:: tree::CFieldGroup * XFieldGroupPtr;22 typedef xios::CField * XFieldPtr; 23 typedef xios::CFieldGroup * XFieldGroupPtr; 24 24 25 25 // -------------------------------------------------------------------------- … … 32 32 if (!cstr2string(_id, _id_len, id)) return; 33 33 34 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CField>(id).get();34 *_ret = xios::CObjectFactory::GetObject<xios::CField>(id).get(); 35 35 } 36 36 … … 40 40 if (!cstr2string(_id, _id_len, id)) return; 41 41 42 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CFieldGroup>(id).get();42 *_ret = xios::CObjectFactory::GetObject<xios::CFieldGroup>(id).get(); 43 43 } 44 44 … … 51 51 if (!cstr2string(_id, _id_len, id)) return; 52 52 53 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CField>(id);53 *_ret = xios::CObjectFactory::HasObject<xios::CField>(id); 54 54 } 55 55 … … 59 59 if (!cstr2string(_id, _id_len, id)) return; 60 60 61 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CFieldGroup>(id);61 *_ret = xios::CObjectFactory::HasObject<xios::CFieldGroup>(id); 62 62 } 63 63 -
XIOS/trunk/src/interface/c/icfile.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 22 typedef xios:: tree::CFile * XFilePtr;23 typedef xios:: tree::CFileGroup * XFileGroupPtr;22 typedef xios::CFile * XFilePtr; 23 typedef xios::CFileGroup * XFileGroupPtr; 24 24 25 25 // ------------------------ Création des handle ----------------------------- … … 30 30 if (!cstr2string(_id, _id_len, id)) return; 31 31 32 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CFile>(id).get();32 *_ret = xios::CObjectFactory::GetObject<xios::CFile>(id).get(); 33 33 } 34 34 … … 38 38 if (!cstr2string(_id, _id_len, id)) return; 39 39 40 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CFileGroup>(id).get();40 *_ret = xios::CObjectFactory::GetObject<xios::CFileGroup>(id).get(); 41 41 } 42 42 … … 48 48 if (!cstr2string(_id, _id_len, id)) return; 49 49 50 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CFile>(id);50 *_ret = xios::CObjectFactory::HasObject<xios::CFile>(id); 51 51 } 52 52 … … 56 56 if (!cstr2string(_id, _id_len, id)) return; 57 57 58 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CFileGroup>(id);58 *_ret = xios::CObjectFactory::HasObject<xios::CFileGroup>(id); 59 59 } 60 60 } // extern "C" -
XIOS/trunk/src/interface/c/icgrid.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 22 typedef xios:: tree::CGrid * XGridPtr;23 typedef xios:: tree::CGridGroup * XGridGroupPtr;22 typedef xios::CGrid * XGridPtr; 23 typedef xios::CGridGroup * XGridGroupPtr; 24 24 25 25 // ------------------------ Création des handle ----------------------------- … … 30 30 if (!cstr2string(_id, _id_len, id)) return; 31 31 32 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CGrid>(id).get();32 *_ret = xios::CObjectFactory::GetObject<xios::CGrid>(id).get(); 33 33 } 34 34 … … 38 38 if (!cstr2string(_id, _id_len, id)) return; 39 39 40 *_ret = xios::CObjectFactory::GetObject<xios:: tree::CGridGroup>(id).get();40 *_ret = xios::CObjectFactory::GetObject<xios::CGridGroup>(id).get(); 41 41 } 42 42 … … 48 48 if (!cstr2string(_id, _id_len, id)) return; 49 49 50 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CGrid>(id);50 *_ret = xios::CObjectFactory::HasObject<xios::CGrid>(id); 51 51 } 52 52 … … 56 56 if (!cstr2string(_id, _id_len, id)) return; 57 57 58 *_ret = xios::CObjectFactory::HasObject<xios:: tree::CGridGroup>(id);58 *_ret = xios::CObjectFactory::HasObject<xios::CGridGroup>(id); 59 59 } 60 60 } // extern "C" -
XIOS/trunk/src/interface/c/icxml_tree.cpp
r335 r345 20 20 // ----------------------- Redéfinition de types ---------------------------- 21 21 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; 38 38 39 39 // ----------------------- Ajout d'enfant à un parent -----------------------
Note: See TracChangeset
for help on using the changeset viewer.