Changeset 2629
- Timestamp:
- 04/25/24 15:05:23 (2 weeks ago)
- Location:
- XIOS3/trunk
- Files:
-
- 4 added
- 3 deleted
- 110 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/bld.cfg
r2574 r2629 71 71 bld::tool::fpp %FPP 72 72 bld::tool::cpp %CPP 73 bld::tool::cppflags %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost /include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include74 bld::tool::fppflags %BASE_INC -I${PWD}/extern/boost /include -I${PWD}/extern/rapidxml/include73 bld::tool::cppflags %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost_extraction/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include 74 bld::tool::fppflags %BASE_INC -I${PWD}/extern/boost_extraction/include -I${PWD}/extern/rapidxml/include 75 75 bld::tool::ld %LINKER 76 76 bld::tool::ldflags %LD_FLAGS 77 bld::tool::cflags %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost /include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include77 bld::tool::cflags %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost_extraction/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include 78 78 bld::tool::fflags %FFLAGS %FBASE_INC 79 79 bld::tool::cppkeys %CPP_KEY -
XIOS3/trunk/make_xios
r2608 r2629 7 7 build_dir="./" 8 8 build_suffixed="false" 9 use_extern_boost="false"10 9 use_extern_blitz="false" 11 10 use_memtrack="false" … … 37 36 echo " [--build_dir : name of the build directory" 38 37 echo " [--build_suffixed : generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" 39 echo " [--use_extern_boost : to use external boost library"40 38 echo " [--use_extern_blitz : to use external blitz library" 41 39 echo " [--doc] : to generate Doxygen documentation (not available yet)" … … 58 56 "--build_dir") build_dir=$2 ; shift ; shift ;; 59 57 "--build_suffixed") build_suffixed="true" ; shift ;; 60 "--use_extern_boost") use_extern_boost="true" ; shift ;;61 58 "--use_extern_blitz") use_extern_blitz="true" ; shift ;; 62 59 "--doc") doc="true" ; shift ;; … … 75 72 echo -e "- uncompress archives ..." 76 73 for tarname in `ls $install_dir/tools/archive/*.tar.gz` ; do 77 if ( [[ ${tarname} == "${install_dir}/tools/archive/b oost.tar.gz" ]] && [[ "$use_extern_boost" == "true" ]] ) || ( [[ ${tarname} == "${install_dir}/tools/archive/blitz.tar.gz" ]] && [[ "$use_extern_blitz" == "true" ]] )74 if ( [[ ${tarname} == "${install_dir}/tools/archive/blitz.tar.gz" ]] && [[ "$use_extern_blitz" == "true" ]] ) 78 75 then 79 76 continue … … 281 278 # End "Detecting if parallel compression is available" 282 279 283 284 280 # Setting path for boost 285 if [[ "$use_extern_boost" == "true" ]] 286 then 287 rm -r $PWD/extern/boost 288 ln -s $PWD/.void_dir $PWD/extern/boost 289 else 290 export BOOST_INCDIR="-I${PWD}/extern/boost" 291 export BOOST_LIBDIR="" 292 export BOOST_LIB="" 293 fi 281 export BOOST_INCDIR="-I${PWD}/extern/boost_extraction/include" 294 282 295 283 # Setting path for blitz -
XIOS3/trunk/src/attribute.hpp
r2388 r2629 3 3 4 4 /// boost headers /// 5 #include <boost/any.hpp>6 5 7 6 /// XIOS headers /// -
XIOS3/trunk/src/attribute_template.hpp
r2388 r2629 3 3 4 4 /// boost headers /// 5 #include <boost/lexical_cast.hpp>6 5 7 6 /// XIOS headers /// -
XIOS3/trunk/src/attribute_template_impl.hpp
r2388 r2629 245 245 { 246 246 return CType<T>::toBuffer(buffer) ; 247 /*248 if (isEmpty()) return buffer.put(true) ;249 else250 {251 bool ret=true ;252 CType<T> val(*boost::any_cast<T>(&value)) ;253 ret&=buffer.put(false) ;254 ret&=val.toBuffer(buffer) ;255 return ret ;256 }257 */258 247 } 259 248 … … 262 251 { 263 252 return CType<T>::fromBuffer(buffer) ; 264 /* 265 bool empty ; 266 bool ret=true ; 267 ret&=buffer.get(empty) ; 268 if (empty) 269 { 270 clear() ; 271 return ret ; 272 } 273 else 274 { 275 if (isEmpty()) 276 { 277 T val ; 278 setValue(val) ; 279 } 280 T* V=const_cast<T*>(boost::any_cast<T>(&value)) ; 281 CType<T> val(*V) ; 282 return val.fromBuffer(buffer) ; 283 } 284 */ 285 } 286 /* 287 template <class T> 288 size_t CAttributeTemplate<T>::size(void) const 289 { 290 return CType<T>::size() ;*/ 291 /* 292 if (isEmpty()) return sizeof(bool) ; 293 else 294 { 295 CType<T> val(*const_cast<T*>(boost::any_cast<T>(&value))) ; 296 return val.size()+sizeof(bool) ; 297 } 298 */ 299 /* }*/ 253 } 300 254 301 255 template <typename T> -
XIOS3/trunk/src/attribute_template_specialisation.hpp
r501 r2629 6 6 namespace xios 7 7 { 8 /*9 /// ////////////////////// Définitions ////////////////////// ///10 11 /// Spécialisations des templates pour la fonction [toString] ///12 13 template <>14 StdString CAttributeTemplate<bool>::toString(void) const15 {16 StdOStringStream oss;17 if (!this->isEmpty() && this->hasId())18 {19 if (this->getValue())20 oss << this->getName() << "=\".TRUE.\"";21 else22 oss << this->getName() << "=\".FALSE.\"";23 }24 return (oss.str());25 }26 27 //---------------------------------------------------------------28 29 /// Spécialisations des templates pour la fonction [fromString] ///30 31 template <> // Chaîne de caractÚres.32 void CAttributeTemplate<StdString>::fromString(const StdString & str)33 {34 this->setValue(str);35 }36 37 template <> // Entier38 void CAttributeTemplate<int>::fromString(const StdString & str)39 {40 try41 {42 this->setValue(boost::lexical_cast<int>(str));43 }44 catch(boost::bad_lexical_cast &)45 {46 ERROR("void CAttributeTemplate<int>::fromString(const StdString & str)",47 << "[ str = " << str << " ] Bad cast !");48 }49 }50 51 template <> // Double52 void CAttributeTemplate<double>::fromString(const StdString & str)53 {54 if (str.find("max") != StdString::npos)55 {56 this->setValue(DBL_MAX);57 return;58 }59 if (str.find("min") != StdString::npos)60 {61 this->setValue(DBL_MIN);62 return;63 }64 65 try66 {67 this->setValue(boost::lexical_cast<double>(str));68 }69 catch(boost::bad_lexical_cast &)70 {71 ERROR("void CAttributeTemplate<double>::fromString(const StdString & str)",72 << "[ str = " << str << " ] Bad cast !");73 }74 }75 76 template <> // Booléen77 void CAttributeTemplate<bool>::fromString(const StdString & str)78 {79 if (str.find(".TRUE.") != StdString::npos)80 this->setValue(true);81 else82 this->setValue(false);83 }84 85 //---------------------------------------------------------------86 87 template<> // Tableau88 void CAttributeTemplate<ARRAY(double, 1)>::fromString(const StdString & str)89 {90 ARRAY_CREATE(array_sptr, double, 1, [1]);91 CArray<double, 1> & array = *array_sptr;92 this->setValue(array_sptr);93 94 StdIStringStream iss(str) ;95 char c = '\0'; int size = 0;96 double d = 0.,valsup = 0., valinf = 0.;97 std::vector<double> vect;98 99 iss >> d; vect.push_back(d);100 size = vect.size();101 if (!iss.eof ())102 {103 iss >> c;104 switch (c)105 {106 case ',' : // Le tableau est généré valeur par valeur.107 iss.unget();108 while(!iss.eof ())109 { // On récupÚre chacune des valeurs une par une jusqu'à ce que le buffer soit vide.110 iss >> c >> d;111 if (c != ',')112 ERROR("CAttributeTemplate<ARRAY(...)>::fromString(const StdString & str)",113 << "[ str = " << str << " ] bad definition of array !");114 vect.push_back(d);115 }116 size = vect.size();117 break;118 case '(' : // Le tableau est généré automatiquement.119 if (!iss.eof ())120 { // on récupÚre la borne supérieure121 valinf = d;122 iss >> size >> c >> d;123 if ((c != ')') || (size <= 0))124 ERROR("CAttributeTemplate<ARRAY(...)>::fromString(const StdString & str)",125 << "[ str = " << str << " ] bad definition of array !");126 valsup = d;127 }128 d = (valsup - valinf) / (double)(size - 1);129 for (int j = 1; j <= size; j++)130 vect.push_back(valinf + j * d);131 break;132 default :133 ERROR("CAttributeTemplate<ARRAY(...)>::fromString(const StdString & str)",134 << "[ str = " << str << " ] bad definition of array !");135 }136 }137 138 array.resize(boost::extents[size]);139 for (int i = 0; i < size; i++)140 array[i] = vect[i];141 142 }143 144 //---------------------------------------------------------------145 146 /// Spécialisations des templates pour la fonction [toBinary] ///147 148 template <> // Chaîne de caractÚres.149 void CAttributeTemplate<StdString>::toBinary (StdOStream & os) const150 {151 StdString str = this->getValue();152 StdSize size = str.size();153 os.write (reinterpret_cast<const char*>(&size) , sizeof(StdSize));154 os.write (str.data(), size * sizeof(char));155 }156 157 template <> // Entier158 void CAttributeTemplate<int>::toBinary(StdOStream & os) const159 {160 int value = this->getValue();161 os.write (reinterpret_cast<const char*>(&value) , sizeof(int));162 }163 164 template <> // Booléen165 void CAttributeTemplate<bool>::toBinary(StdOStream & os) const166 {167 bool value = this->getValue();168 os.write (reinterpret_cast<const char*>(&value) , sizeof(bool));169 }170 171 template <> // Double172 void CAttributeTemplate<double>::toBinary(StdOStream & os) const173 {174 double value = this->getValue();175 os.write (reinterpret_cast<const char*>(&value) , sizeof(double));176 }177 178 //---------------------------------------------------------------179 180 /// Spécialisations des templates pour la fonction [fromBinary] ///181 182 template <> // Chaîne de caractÚres.183 void CAttributeTemplate<StdString>::fromBinary(StdIStream & is)184 {185 StdSize size = 0;186 is.read (reinterpret_cast<char*>(&size), sizeof(StdSize));187 StdString value(size, ' ');188 is.read (const_cast<char *>(value.data()), size * sizeof(char));189 this->setValue(value);190 }191 192 template <> // Entier193 void CAttributeTemplate<int>::fromBinary(StdIStream & is)194 {195 int value = 0;196 is.read (reinterpret_cast<char*>(&value), sizeof(int));197 this->setValue(value);198 }199 200 template <> // Booléen201 void CAttributeTemplate<bool>::fromBinary(StdIStream & is)202 {203 bool value = false;204 is.read (reinterpret_cast<char*>(&value), sizeof(bool));205 this->setValue(value);206 }207 208 template <> // Double209 void CAttributeTemplate<double>::fromBinary(StdIStream & is)210 {211 double value = 0.;212 is.read (reinterpret_cast<char*>(&value), sizeof(double));213 this->setValue(value);214 }215 ///--------------------------------------------------------------216 */217 8 } // namespace xios -
XIOS3/trunk/src/client.cpp
r2628 r2629 3 3 #include "cxios.hpp" 4 4 #include "client.hpp" 5 #include <boost/functional/hash.hpp>6 5 #include "type.hpp" 7 6 #include "context.hpp" -
XIOS3/trunk/src/cxios.cpp
r2547 r2629 5 5 #include "server.hpp" 6 6 #include "xml_parser.hpp" 7 #include <boost/functional/hash.hpp>8 7 #include "mpi.hpp" 9 8 #include "memory.hpp" -
XIOS3/trunk/src/date.cpp
r1496 r2629 3 3 #include "calendar_type.hpp" 4 4 #include "calendar_util.hpp" 5 #include <boost/date_time/gregorian/gregorian.hpp>6 #include <boost/date_time/posix_time/posix_time.hpp>7 8 using namespace boost::posix_time;9 using namespace boost::gregorian;10 5 11 6 namespace xios -
XIOS3/trunk/src/distribution/client_server_mapping_distributed.cpp
r1918 r2629 10 10 #include "client_server_mapping_distributed.hpp" 11 11 #include <limits> 12 #include <boost/functional/hash.hpp>13 12 #include "utils.hpp" 14 13 #include "mpi_tag.hpp" -
XIOS3/trunk/src/exception.cpp
r1622 r2629 2 2 3 3 /// boost headers /// 4 #include <boost/cast.hpp>5 4 #include "client.hpp" 6 5 #include "server.hpp" … … 52 51 53 52 StdOStringStream & CException::getStream(void) 54 // { return (*boost::polymorphic_cast<StdOStringStream*>(this)); }55 53 { return stream; } 56 54 -
XIOS3/trunk/src/exception.hpp
r2282 r2629 5 5 #include "xios_spl.hpp" 6 6 #include "object.hpp" 7 #include <boost_extract.hpp> 7 8 #include <iomanip> 8 9 #include <stdexcept> … … 59 60 #define FILE_NAME (std::strrchr("/" __FILE__, '/') + 1) 60 61 61 #define FUNCTION_NAME (StdString( BOOST_CURRENT_FUNCTION).length() > 100 ? \62 StdString( BOOST_CURRENT_FUNCTION).substr(0,100).append("...)") : BOOST_CURRENT_FUNCTION)62 #define FUNCTION_NAME (StdString(XIOS_CURRENT_FUNCTION).length() > 100 ? \ 63 StdString(XIOS_CURRENT_FUNCTION).substr(0,100).append("...)") : XIOS_CURRENT_FUNCTION) 63 64 64 65 #define INFO(x) \ 65 "In file \""<< FILE_NAME <<"\", function \"" << BOOST_CURRENT_FUNCTION <<"\", line " << __LINE__ << " -> " x << std::endl;66 "In file \""<< FILE_NAME <<"\", function \"" << XIOS_CURRENT_FUNCTION <<"\", line " << __LINE__ << " -> " x << std::endl; 66 67 67 68 #ifdef __XIOS_DEBUG -
XIOS3/trunk/src/filter/temporal_filter.hpp
r2193 r2629 3 3 4 4 #include "filter.hpp" 5 #include <boost/smart_ptr/scoped_ptr.hpp>6 5 #include "functor.hpp" 7 6 #include "array_new.hpp" … … 60 59 // Warning the declaration order matters here, double-check the constructor before changing it 61 60 CArray<double, 1> tmpData; //!< The array of data used for temporary storage 62 const boost::scoped_ptr<func::CFunctor> functor; //!< The functor corresponding to the temporal operation61 const std::unique_ptr<func::CFunctor> functor; //!< The functor corresponding to the temporal operation 63 62 const bool isOnceOperation; //!< True if the operation should be computed just once 64 63 const bool isInstantOperation; //!< True if the operation is instant -
XIOS3/trunk/src/group_parser.hpp
r591 r2629 3 3 4 4 /// boost headers /// 5 #include <boost /cast.hpp>5 #include <boost_extract.hpp> 6 6 7 7 namespace xios … … 33 33 V* group_ptr = (this->hasId()) 34 34 ? V::get(this->getId()) 35 : boost::polymorphic_downcast<V*>(this);35 : xios_polymorphic_downcast<V*>(this); 36 36 37 37 if (!(node.goToChildElement())) … … 90 90 V* group_ptr = (this->hasId()) 91 91 ? V::get(this->getId()) 92 : boost::polymorphic_downcast<V*>(this);92 : xios_polymorphic_downcast<V*>(this); 93 93 94 94 StdString name = node.getElementName(); -
XIOS3/trunk/src/group_template_impl.hpp
r2614 r2629 12 12 #include "type.hpp" 13 13 #include "type_util.hpp" 14 14 #include <boost_extract.hpp> 15 15 16 16 namespace xios … … 340 340 V* group_ptr = (this->hasId()) 341 341 ? V::get(this->getId()) 342 : boost::polymorphic_downcast<V*>(this);342 : xios_polymorphic_downcast<V*>(this); 343 343 344 344 if (!(node.goToChildElement())) … … 396 396 V* group_ptr = (this->hasId()) 397 397 ? V::get(this->getId()) 398 : boost::polymorphic_downcast<V*>(this);398 : xios_polymorphic_downcast<V*>(this); 399 399 400 400 StdString name = node.getElementName(); -
XIOS3/trunk/src/indent_xml.cpp
r501 r2629 2 2 3 3 /// boost headers /// 4 #include <boost/algorithm/string.hpp> 5 #include <boost/algorithm/string/split.hpp> 4 #include <boost_extract.hpp> 6 5 7 6 namespace xios … … 32 31 StdOStringStream retvalue; 33 32 std::vector<StdString> str; 34 boost::split(str, content, boost::is_any_of("\n"));33 xios_split<std::vector<StdString>>(str, content, "\n"); 35 34 36 35 std::vector<StdString>::iterator it = str.begin(), end = str.end(); -
XIOS3/trunk/src/interface/c/icaxis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/iccalendar_wrapper.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/iccompute_connectivity_domain.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include "xios.hpp" -
XIOS3/trunk/src/interface/c/iccontext.cpp
r2607 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icdata.cpp
r2628 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 #include <string> -
XIOS3/trunk/src/interface/c/icdate.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include "xios.hpp" -
XIOS3/trunk/src/interface/c/icdomain.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icduplicate_scalar_to_axis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/icexpand_domain.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icextract_domain.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icextract_to_axis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/icextract_to_scalar.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/icfield.cpp
r1869 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icfile.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/icgenerate_rectilinear_domain.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icgrid.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include "xios.hpp" -
XIOS3/trunk/src/interface/c/icinterpolate.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include "xios.hpp" -
XIOS3/trunk/src/interface/c/icinverse_axis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icreduce_axis_to_axis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icreduce_scalar_to_scalar.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icreduce_to_axis.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icreduce_to_scalar.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include "xios.hpp" -
XIOS3/trunk/src/interface/c/icreorder_domain.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icscalar.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/ictemporal_splitting.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icvariable.cpp
r1622 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c/icxml_tree.cpp
r1542 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include <memory> 7 7 -
XIOS3/trunk/src/interface/c/iczoom.cpp
r2339 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 7 7 #include <memory> -
XIOS3/trunk/src/interface/c_attr/icaxis_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icaxisgroup_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/iccalendar_wrapper_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/iccompute_connectivity_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/iccontext_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icdomain_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icdomaingroup_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icduplicate_scalar_to_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icexpand_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icextract_axis_to_scalar_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icextract_domain_attr.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icextract_domain_to_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icfield_attr.cpp
r2617 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icfieldgroup_attr.cpp
r2617 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icfile_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icfilegroup_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icgenerate_rectilinear_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icgrid_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icgridgroup_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icinterpolate_axis_attr.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icinterpolate_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icinverse_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp>6 5 #include "xios.hpp" 7 6 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icredistribute_axis_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp>6 5 #include "xios.hpp" 7 6 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icredistribute_domain_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp>6 5 #include "xios.hpp" 7 6 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icredistribute_scalar_attr.cpp
r2616 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp>6 5 #include "xios.hpp" 7 6 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreduce_axis_to_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreduce_axis_to_scalar_attr.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreduce_domain_to_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreduce_domain_to_scalar_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreduce_scalar_to_scalar_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icreorder_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icscalar_attr.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icscalargroup_attr.cpp
r2338 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/ictemporal_splitting_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icvariable_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/icvariablegroup_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/iczoom_axis_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/interface/c_attr/iczoom_domain_attr.cpp
r1626 r2629 3 3 * ************************************************************************** */ 4 4 5 #include <boost/multi_array.hpp> 5 6 6 #include "xios.hpp" 7 7 #include "attribute_template.hpp" -
XIOS3/trunk/src/io/inetcdf4.cpp
r2308 r2629 3 3 #include "netCdf_cf_constant.hpp" 4 4 5 #include <boost /algorithm/string.hpp>5 #include <boost_extract.hpp> 6 6 7 7 namespace xios … … 435 435 StdString value = this->getCoordinatesId(name, path); 436 436 437 boost::split(retvalue, value, boost::is_any_of(" "));437 xios_split<std::list<StdString>>(retvalue, value, " "); 438 438 439 439 std::list<StdString>::iterator it = retvalue.begin(), end = retvalue.end(); -
XIOS3/trunk/src/io/nc4_data_output.cpp
r2628 r2629 14 14 15 15 #include <limits.h> 16 #include <cfloat> 16 17 #define X_FLOAT_MAX FLT_MAX 17 18 #define X_FLOAT_MIN FLT_MIN … … 1972 1973 { // Ecriture des coordonnes 1973 1974 1974 StdString coordstr; //boost::algorithm::join(coodinates, " ")1975 StdString coordstr; 1975 1976 std::vector<StdString>::iterator 1976 1977 itc = coodinates.begin(), endc = coodinates.end(); -
XIOS3/trunk/src/node/field.cpp
r2628 r2629 25 25 #include "tracer.hpp" 26 26 #include "graph_package.hpp" 27 #include <boost_extract.hpp> 27 28 28 29 namespace xios … … 682 683 if (hasExpression()) 683 684 { 684 boost::scoped_ptr<IFilterExprNode> expr(parseExpr(getExpression() + '\0'));685 std::unique_ptr<IFilterExprNode> expr(parseExpr(getExpression() + '\0')); 685 686 filterExpr = expr->reduce(gc, *this); 686 687 … … 1390 1391 1391 1392 CFieldGroup* group = CFieldGroup::get(gref); 1392 CFieldGroup* owner = CFieldGroup::get( boost::polymorphic_downcast<CFieldGroup*>(this));1393 CFieldGroup* owner = CFieldGroup::get(xios_polymorphic_downcast<CFieldGroup*>(this)); 1393 1394 owner->setAttributes(group); // inherite of attributes of group reference 1394 1395 -
XIOS3/trunk/src/node/mesh.cpp
r2409 r2629 6 6 7 7 #include "mesh.hpp" 8 #include <boost/functional/hash.hpp>8 #include "utils.hpp" 9 9 //#include <unordered_map> 10 10 … … 2103 2103 CArray<double, 2> faceToNodes (nvertex, nbFaces); 2104 2104 2105 std::unordered_map <pairDouble, int, boost::hash<pairDouble>> mapNodes;2105 std::unordered_map <pairDouble, int, pair_xios_hash> mapNodes; 2106 2106 2107 2107 for (int nf = 0; nf < nbFaces; ++nf) … … 2119 2119 2120 2120 // faceToFaces connectivity 2121 std::unordered_map <pairInt, int, boost::hash<pairInt>> mapEdges;2121 std::unordered_map <pairInt, int, pair_xios_hash> mapEdges; 2122 2122 faceToFaces.resize(nvertex, nbFaces); 2123 2123 CArray<int, 2> edgeToFaces(2, nbFaces*nvertex); // max possible -
XIOS3/trunk/src/node/variable.cpp
r2627 r2629 9 9 #include "context.hpp" 10 10 #include "context_client.hpp" 11 #include <boost /algorithm/string.hpp>11 #include <boost_extract.hpp> 12 12 13 13 namespace xios { … … 60 60 << " ] variable is not defined !. It does not have any content. See error log for more details."); 61 61 } 62 content = boost::trim_copy(content) ;62 content = xios_trim_copy(content) ; 63 63 } 64 64 … … 231 231 endid = content.find_first_of ( " \r\n\t=", beginid ); 232 232 subid = content.substr ( beginid, endid-beginid); 233 subid = boost::to_lower_copy(boost::trim_copy(subid)) ;233 subid = xios_to_lower_copy(xios_trim_copy(subid)) ; 234 234 235 235 begindata = content.find_first_of ( "=", endid ) + 1; 236 236 enddata = content.find_first_of ( ";", begindata ); 237 237 subdata = content.substr ( begindata, enddata-begindata); 238 subdata = boost::trim_copy(subdata) ;238 subdata = xios_trim_copy(subdata) ; 239 239 group_ptr->createChild(subid)->content = subdata ; 240 240 } -
XIOS3/trunk/src/object_template_impl.hpp
r2620 r2629 510 510 oss << " * ************************************************************************** */" << iendl; 511 511 oss << iendl; 512 oss << "#include <boost/multi_array.hpp>" << iendl;513 512 oss << "#include \"xios.hpp\"" << iendl; 514 513 oss << "#include \"attribute_template.hpp\"" << iendl; -
XIOS3/trunk/src/parse_expr/filter_expr_node.cpp
r2194 r2629 45 45 46 46 } 47 else ERROR(" boost::shared_ptr<COutputPin> CFilterFieldExprNode::reduce(CGarbageCollector& gc, CField& thisField) const",47 else ERROR("std::shared_ptr<COutputPin> CFilterFieldExprNode::reduce(CGarbageCollector& gc, CField& thisField) const", 48 48 << "The field " << id << " does not exist."); 49 49 } -
XIOS3/trunk/src/parse_expr/filter_expr_node.hpp
r1542 r2629 3 3 4 4 #include <string> 5 #include < boost/smart_ptr/scoped_ptr.hpp>5 #include <memory> 6 6 #include "scalar_expr_node.hpp" 7 7 … … 90 90 private: 91 91 std::string opId; //!< The identifier of the field 92 boost::scoped_ptr<IFilterExprNode> child; //!< The child node to which the operator is applied92 std::unique_ptr<IFilterExprNode> child; //!< The child node to which the operator is applied 93 93 }; 94 94 … … 115 115 private: 116 116 std::string opId; //!< The identifier of the field 117 boost::scoped_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied118 boost::scoped_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied117 std::unique_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied 118 std::unique_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied 119 119 }; 120 120 … … 141 141 private: 142 142 std::string opId; //!< The identifier of the field 143 boost::scoped_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied144 boost::scoped_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied143 std::unique_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied 144 std::unique_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied 145 145 }; 146 146 … … 166 166 private: 167 167 std::string opId; //!< The identifier of the field 168 boost::scoped_ptr<IFilterExprNode> child1, child2; //!< The field child nodes to which the operator is applied168 std::unique_ptr<IFilterExprNode> child1, child2; //!< The field child nodes to which the operator is applied 169 169 }; 170 170 … … 194 194 private: 195 195 std::string opId; //!< The identifier of the field 196 boost::scoped_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied197 boost::scoped_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied198 boost::scoped_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied196 std::unique_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied 197 std::unique_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied 198 std::unique_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied 199 199 }; 200 200 … … 223 223 private: 224 224 std::string opId; //!< The identifier of the field 225 boost::scoped_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied226 boost::scoped_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied227 boost::scoped_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied225 std::unique_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied 226 std::unique_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied 227 std::unique_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied 228 228 }; 229 229 … … 252 252 private: 253 253 std::string opId; //!< The identifier of the field 254 boost::scoped_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied255 boost::scoped_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied256 boost::scoped_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied254 std::unique_ptr<IScalarExprNode> child1; //!< The scalar child node to which the operator is applied 255 std::unique_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied 256 std::unique_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied 257 257 }; 258 258 … … 282 282 private: 283 283 std::string opId; //!< The identifier of the field 284 boost::scoped_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied285 boost::scoped_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied286 boost::scoped_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied284 std::unique_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied 285 std::unique_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied 286 std::unique_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied 287 287 }; 288 288 … … 311 311 private: 312 312 std::string opId; //!< The identifier of the field 313 boost::scoped_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied314 boost::scoped_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied315 boost::scoped_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied313 std::unique_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied 314 std::unique_ptr<IScalarExprNode> child2; //!< The scalar child node to which the operator is applied 315 std::unique_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied 316 316 }; 317 317 … … 339 339 private: 340 340 std::string opId; //!< The identifier of the field 341 boost::scoped_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied342 boost::scoped_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied343 boost::scoped_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied341 std::unique_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied 342 std::unique_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied 343 std::unique_ptr<IScalarExprNode> child3; //!< The scalar child node to which the operator is applied 344 344 }; 345 345 … … 368 368 private: 369 369 std::string opId; //!< The identifier of the field 370 boost::scoped_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied371 boost::scoped_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied372 boost::scoped_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied370 std::unique_ptr<IFilterExprNode> child1; //!< The field child node to which the operator is applied 371 std::unique_ptr<IFilterExprNode> child2; //!< The field child node to which the operator is applied 372 std::unique_ptr<IFilterExprNode> child3; //!< The field child node to which the operator is applied 373 373 }; 374 374 -
XIOS3/trunk/src/parse_expr/scalar_expr_node.hpp
r1158 r2629 3 3 4 4 #include <string> 5 #include < boost/smart_ptr/scoped_ptr.hpp>5 #include <memory> 6 6 7 7 namespace xios … … 81 81 private: 82 82 std::string opId; //!< The identifier of the field 83 boost::scoped_ptr<IScalarExprNode> child; //!< The scalar child node to which the operator is applied83 std::unique_ptr<IScalarExprNode> child; //!< The scalar child node to which the operator is applied 84 84 }; 85 85 … … 105 105 private: 106 106 std::string opId; //!< The identifier of the field 107 boost::scoped_ptr<IScalarExprNode> child1, child2; //!< The scalar child nodes to which the operator is applied107 std::unique_ptr<IScalarExprNode> child1, child2; //!< The scalar child nodes to which the operator is applied 108 108 }; 109 109 … … 126 126 private: 127 127 std::string opId; //!< The identifier of the field 128 boost::scoped_ptr<IScalarExprNode> child1, child2, child3; //!< The scalar child nodes to which the operator is applied128 std::unique_ptr<IScalarExprNode> child1, child2, child3; //!< The scalar child nodes to which the operator is applied 129 129 }; 130 130 } -
XIOS3/trunk/src/registry.hpp
r2209 r2629 8 8 9 9 // Those two headers can be replaced by the C++11 equivalent in the future 10 #include <boost/utility/enable_if.hpp>11 #include <boost/type_traits.hpp>12 10 13 11 namespace xios … … 33 31 34 32 /** insert a value associated to a key*/ 35 template<typename T> typename boost::enable_if_c<!boost::is_convertible<T&, CBaseType&>::value>::type33 template<typename T> typename std::enable_if<!std::is_convertible<T&, CBaseType&>::value>::type 36 34 setKey(const std::string& key, const T& value) { this->setKey_(key,CType<T>(value)); } 37 35 … … 41 39 42 40 /** retrieve a value from a key */ 43 template<typename T> typename boost::enable_if_c<!boost::is_convertible<T&, CBaseType&>::value>::type41 template<typename T> typename std::enable_if<!std::is_convertible<T&, CBaseType&>::value>::type 44 42 getKey(const std::string& key, T& value) const { CType_ref<T> valRef(value); this->getKey_(key,valRef); } 45 43 -
XIOS3/trunk/src/server.cpp
r2628 r2629 8 8 #include "object_template.hpp" 9 9 #include "oasis_cinterface.hpp" 10 #include <boost/functional/hash.hpp>11 #include <boost/algorithm/string.hpp>12 10 #include "mpi.hpp" 13 11 #include "tracer.hpp" … … 562 560 if (eventSent) 563 561 { 564 boost::hash<string> hashString;562 std::hash<string> hashString; 565 563 size_t hashId = hashString("oasis_enddef"); 566 564 … … 579 577 { 580 578 MPI_Recv(&msg,1,MPI_INT,root,5,intraComm_,&status) ; // tags oasis_endded = 5 581 boost::hash<string> hashString;579 std::hash<string> hashString; 582 580 size_t hashId = hashString("oasis_enddef"); 583 581 CXios::getPoolRessource()->getEventScheduler()->registerEvent(0,hashId); -
XIOS3/trunk/src/test/test.cpp
r501 r2629 3 3 #include <string> 4 4 5 #include <boost/date_time/gregorian/gregorian.hpp>6 #include <boost/date_time/posix_time/posix_time.hpp>7 5 #include "calendar_type.hpp" 8 6 #include "date.hpp" … … 21 19 22 20 using namespace std ; 23 using namespace boost::posix_time ;24 using namespace boost::gregorian ;25 21 using namespace xios; 26 22 using namespace blitz; -
XIOS3/trunk/src/transport/context_client.cpp
r2556 r2629 13 13 #include "server.hpp" 14 14 #include "services.hpp" 15 #include <boost/functional/hash.hpp>16 15 #include <random> 17 16 #include <chrono> -
XIOS3/trunk/src/transport/context_client.cpp.old
r2343 r2629 13 13 #include "server.hpp" 14 14 #include "services.hpp" 15 #include <boost/functional/hash.hpp>16 15 #include <random> 17 16 #include <chrono> -
XIOS3/trunk/src/transport/context_server.cpp
r2556 r2629 27 27 28 28 29 #include <boost/functional/hash.hpp>30 29 #include <random> 31 30 #include <chrono> -
XIOS3/trunk/src/transport/legacy_context_client.cpp
r2628 r2629 14 14 #include "services.hpp" 15 15 #include "ressources_manager.hpp" 16 #include <boost/functional/hash.hpp>17 16 #include <random> 18 17 #include <chrono> -
XIOS3/trunk/src/transport/legacy_context_server.cpp
r2628 r2629 22 22 #include "timeline_events.hpp" 23 23 24 #include <boost/functional/hash.hpp>25 24 #include <random> 26 25 #include <chrono> -
XIOS3/trunk/src/transport/one_sided_context_client.cpp
r2592 r2629 12 12 #include "server.hpp" 13 13 #include "services.hpp" 14 #include <boost/functional/hash.hpp>15 14 #include <random> 16 15 #include <chrono> -
XIOS3/trunk/src/transport/one_sided_context_server.cpp
r2628 r2629 22 22 #include "timeline_events.hpp" 23 23 24 #include <boost/functional/hash.hpp>25 24 #include <random> 26 25 #include <chrono> -
XIOS3/trunk/src/transport/p2p_context_client.cpp
r2589 r2629 12 12 #include "server.hpp" 13 13 #include "services.hpp" 14 #include <boost/functional/hash.hpp>15 14 #include <random> 16 15 #include <chrono> -
XIOS3/trunk/src/transport/p2p_context_server.cpp
r2628 r2629 22 22 #include "timeline_events.hpp" 23 23 24 #include <boost/functional/hash.hpp>25 24 #include <random> 26 25 #include <chrono> -
XIOS3/trunk/src/type/enum_impl.hpp
r1158 r2629 8 8 #include "message.hpp" 9 9 #include <string> 10 #include <boost /algorithm/string.hpp>10 #include <boost_extract.hpp> 11 11 12 12 namespace xios … … 138 138 void CEnum<T>::_fromString(const string& str) 139 139 { 140 string tmpStr= boost::to_lower_copy(boost::trim_copy(str)) ;140 string tmpStr=xios_to_lower_copy(xios_trim_copy(str)) ; 141 141 142 142 bool found=false ; 143 143 for(int i=0;i<T::getSize();i++) 144 144 { 145 if ( boost::to_lower_copy(string(T::getStr()[i]))==tmpStr)145 if (xios_to_lower_copy(string(T::getStr()[i]))==tmpStr) 146 146 { 147 147 allocate() ; … … 155 155 { 156 156 if (i>0) strList<<", " ; 157 strList<< boost::to_lower_copy(string(T::getStr()[i])) ;157 strList<<xios_to_lower_copy(string(T::getStr()[i])) ; 158 158 } 159 159 -
XIOS3/trunk/src/type/enum_ref_impl.hpp
r1158 r2629 8 8 #include "message.hpp" 9 9 #include <string> 10 #include <boost/algorithm/string.hpp>11 10 12 11 namespace xios … … 140 139 { 141 140 checkEmpty() ; 142 string tmpStr= boost::to_lower_copy(boost::trim_copy(str)) ;141 string tmpStr=xios_to_lower_copy(xios_trim_copy(str)) ; 143 142 144 143 bool found=false ; 145 144 for(int i=0;i<T::getSize();i++) 146 145 { 147 if ( boost::to_lower_copy(string(T::getStr()[i]))==tmpStr)146 if (xios_to_lower_copy(string(T::getStr()[i]))==tmpStr) 148 147 { 149 148 *ptrValue=(T_enum) i ; … … 156 155 { 157 156 if (i>0) strList<<", " ; 158 strList<< boost::to_lower_copy(string(T::getStr()[i])) ;157 strList<<xios_to_lower_copy(string(T::getStr()[i])) ; 159 158 } 160 159 -
XIOS3/trunk/src/type/type_specialisation.hpp
r591 r2629 8 8 #include "type.hpp" 9 9 #include <string> 10 #include <boost/algorithm/string.hpp>11 10 #include "date.hpp" 11 #include <boost_extract.hpp> 12 12 13 13 namespace xios … … 18 18 template <> void CType<bool>::_fromString(const string& str) 19 19 { 20 string tmpStr= boost::to_lower_copy(boost::trim_copy(str)) ;20 string tmpStr=xios_to_lower_copy(xios_trim_copy(str)) ; 21 21 if (tmpStr=="true" || tmpStr==".true." || tmpStr=="yes" || tmpStr=="y") set(true) ; 22 22 else if (tmpStr=="false" || tmpStr==".false." || tmpStr=="no" || tmpStr=="n") set(false) ; … … 32 32 template <> void CType_ref<bool>::_fromString(const string& str) const 33 33 { 34 string tmpStr= boost::to_lower_copy(boost::trim_copy(str)) ;34 string tmpStr=xios_to_lower_copy(xios_trim_copy(str)) ; 35 35 if (tmpStr=="true" || tmpStr==".true." || tmpStr=="yes" || tmpStr=="y") set(true) ; 36 36 else if (tmpStr=="false" || tmpStr==".false." || tmpStr=="no" || tmpStr=="n") set(false) ; … … 40 40 template <> void CType_ref<bool>::_fromString(const string& str) 41 41 { 42 string tmpStr= boost::to_lower_copy(boost::trim_copy(str)) ;42 string tmpStr=xios_to_lower_copy(xios_trim_copy(str)) ; 43 43 if (tmpStr=="true" || tmpStr==".true." || tmpStr=="yes" || tmpStr=="y") set(true) ; 44 44 else if (tmpStr=="false" || tmpStr==".false." || tmpStr=="no" || tmpStr=="n") set(false) ; … … 426 426 427 427 428 /*429 template<size_t numDim>430 boost::detail::multi_array::extent_gen<numDim> getExtentNull(void) { return getExtentNull<numDim-1>()[0];}431 432 template<>433 boost::detail::multi_array::extent_gen<1> getExtentNull<1>(void) { return extents[0]; }434 */435 428 /* 436 429 #define CTYPE_ARRAY(ValueType,NumsDims) \ -
XIOS3/trunk/src/utils.hpp
r2177 r2629 185 185 return hash; 186 186 } 187 187 188 188 static inline size_t hash_combine(size_t seed, const T& value) 189 189 { … … 193 193 194 194 }; 195 196 struct pair_xios_hash { 197 template <class T> 198 std::size_t operator () (const std::pair<T,T> &p) const 199 { 200 const std::vector<T> hash_vec = {p.first, p.second}; 201 return HashAlgorithm<T>::boost_hash(hash_vec ); 202 } 203 }; 204 195 205 196 206 template<typename T, typename Algo = Int2Type<0> > -
XIOS3/trunk/src/uuid.cpp
r1174 r2629 1 #include <boost/uuid/uuid.hpp> 2 #include <boost/uuid/uuid_generators.hpp> 3 #include <boost/uuid/uuid_io.hpp> 1 #include <string> 2 #include <boost_uuid.hpp> 4 3 5 4 namespace xios … … 8 7 std::string getUuidStr(void) 9 8 { 10 boost::uuids::random_generator gen; 11 boost::uuids::uuid u = gen(); 12 return boost::uuids::to_string(u) ; 9 boost_uuid uuid = gen_boost_uuid(); 10 return to_string(uuid) ; 13 11 } 14 12 -
XIOS3/trunk/src/xios_spl.hpp
r1984 r2629 37 37 38 38 /// boost headers /// 39 #include <boost/cast.hpp>40 #include <boost/current_function.hpp>41 39 42 40 /// Map /// … … 69 67 #include "log.hpp" 70 68 using namespace std; 71 //using namespace boost ;72 69 73 70 #endif //__XIOS_SPL__ -
XIOS3/trunk/src/xml_node.cpp
r1367 r2629 1 1 #include "xml_node.hpp" 2 #include <boost /algorithm/string.hpp>2 #include <boost_extract.hpp> 3 3 4 4 namespace xios … … 87 87 nextElement = nextElement->next_sibling(); 88 88 } 89 boost::algorithm::replace_all(content,"\n"," ") ;90 boost::algorithm::trim(content) ;89 xios_replace_all(content,"\n"," ") ; 90 content = xios_trim_copy(content); 91 91 if (content.size()==0) return false ; 92 92 else return true ;
Note: See TracChangeset
for help on using the changeset viewer.