Changeset 346 for XIOS/trunk/src/interface/c/icdata.cpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdata.cpp
r345 r346 67 67 void cxios_context_close_definition() 68 68 { 69 boost::shared_ptr<CContext> context = 70 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 69 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 71 70 context->closeDefinition() ; 72 71 } … … 74 73 void cxios_context_finalize() 75 74 { 76 boost::shared_ptr<CContext> context = 77 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 75 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 78 76 context->finalize() ; 79 77 } … … 91 89 { 92 90 std::string fieldid_str; 93 boost::shared_ptr<CContext> context = 94 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 91 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 95 92 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 96 93 … … 108 105 { 109 106 std::string fieldid_str; 110 boost::shared_ptr<CContext> context = 111 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 107 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 112 108 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 113 109 … … 124 120 { 125 121 std::string fieldid_str; 126 boost::shared_ptr<CContext> context = 127 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 122 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 128 123 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 129 124 … … 141 136 { 142 137 std::string fieldid_str; 143 boost::shared_ptr<CContext> context = 144 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 138 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 145 139 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 146 140 … … 160 154 { 161 155 std::string fieldid_str; 162 boost::shared_ptr<CContext> context = 163 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 156 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 164 157 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 165 158 … … 179 172 { 180 173 std::string fieldid_str; 181 boost::shared_ptr<CContext> context = 182 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 174 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 183 175 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 184 176
Note: See TracChangeset
for help on using the changeset viewer.