X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/74c1bf2b26c5a3aa0d8c29674dc12993e7c0de15..e5679b57719f0adbb09bb3a59f03d71bb5c227d9:/src/smpi/mpi/smpi_info.cpp diff --git a/src/smpi/mpi/smpi_info.cpp b/src/smpi/mpi/smpi_info.cpp index 160892edb7..7b3efad28c 100644 --- a/src/smpi/mpi/smpi_info.cpp +++ b/src/smpi/mpi/smpi_info.cpp @@ -1,21 +1,16 @@ -/* Copyright (c) 2007-2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "smpi_info.hpp" -#include "xbt/ex.hpp" -#include "xbt/sysdep.h" +#include "simgrid/Exception.hpp" -namespace simgrid{ -namespace smpi{ +namespace simgrid { +namespace smpi { -Info::Info(Info* info) : map_(info->map_) +void Info::ref() { -} - -void Info::ref(){ refcount_++; } @@ -26,10 +21,6 @@ void Info::unref(Info* info){ } } -void Info::set(char *key, char *value){ - map_[key] = value; -} - int Info::get(char *key, int valuelen, char *value, int *flag){ *flag=false; auto val = map_.find(key);