Program: gdcm
Module: $RCSfile: gdcmUtil.cxx,v $
Language: C++
- Date: $Date: 2004/11/16 02:54:35 $
- Version: $Revision: 1.64 $
+ Date: $Date: 2004/11/16 10:37:54 $
+ Version: $Revision: 1.66 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <stdarg.h> //only included in implementation file
#include <stdio.h> //only included in implementation file
-#include <unistd.h> // for gethostname
-#include <netdb.h> // for gethostbyname
+#if defined _MSC_VER || defined(__BORLANDC__)
+ #include <winsock.h> // for gethostname & gethostbyname
+ #undef GetCurrentTime
+#else
+ #include <unistd.h> // for gethostname
+ #include <netdb.h> // for gethostbyname
+#endif
namespace gdcm
{
-
/**
* \ingroup Globals
* \brief Provide a better 'c++' approach for sprintf
/**
* \ingroup Globals
* \brief Add a SEPARATOR to the end of the name is necessary
- * @param name file/directory name to normalize
+ * @param pathname file/directory name to normalize
*/
std::string Util::NormalizePath(std::string const & pathname)
{
}
/**
- * \ingroup Util
* \brief Create a /DICOM/ string:
* It should a of even length (no odd length ever)
- * It can contains as many \0 as you want.
+ * It can contain as many (if you are reading this from your
+ * editor the following character is is backslash followed by zero
+ * that needed to be escaped with an extra backslash for doxygen) \\0
+ * as you want.
*/
std::string Util::DicomString(const char* s, size_t l)
{
* \ingroup Util
* \brief Create a /DICOM/ string:
* It should a of even lenght (no odd length ever)
- * It can contains as many \0 as you want.
+ * It can contain as many (if you are reading this from your
+ * editor the following character is is backslash followed by zero
+ * that needed to be escaped with an extra backslash for doxygen) \\0
+ * as you want.
* This function is similar to DicomString(const char*),
* except it doesn't take a lenght.
* It only pad with a null character if length is odd