X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=2f5b26f1173b3e5e94999816031695c13cb2afc4;hb=619c7d36de4ec76e9e68beb4a77c3e91e72d4c89;hp=51258e66fc3abd5c418dfc480bdba43debd32442;hpb=0451c66d4a069d04db99c9d719e053c6019923d8;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 51258e6..2f5b26f 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -38,10 +38,13 @@ #if defined(unix) || defined(__APPLE__) # include # include -#elif defined(WIN32) +#elif defined(_WIN32) # include +# include #endif +#define VTK_EXCLUDE_STRSTREAM_HEADERS + //-------------------------------------------------------------------- namespace clitk { @@ -227,6 +230,18 @@ namespace clitk { //-------------------------------------------------------------------- void PrintMemoryUsed(); + //-------------------------------------------------------------------- + // Convert a map to a vector + template + void MapToVecFirst(const M & m, V & v); + template + void MapToVecSecond(const M & m, V & v); + + //-------------------------------------------------------------------- + // Find/replace string + template + int inline findAndReplace(T& source, const T& find, const T& replace); + #include "clitkCommon.txx" } // end namespace