104 static bool ParseDateTime(time_t &timep,
long &milliseconds,
const char date[22]);
112 static size_t EncodeBytes(
char *out,
const unsigned char *data,
int size);
126 static char *
StrTokR(
char *ptr,
const char *sep,
char **end);
131 static char *
StrSep(
char **stringp,
const char *delim);
Class to do system operation.
Definition gdcmSystem.h:27
static bool FileExists(const char *filename)
Check whether the specified file exist on the system.
static const char * GetLocaleCharset()
return locale charmap
static bool FormatDateTime(char date[22], time_t t, long milliseconds=0)
static bool SetPermissions(const char *file, unsigned short mode)
static int StrNCaseCmp(const char *s1, const char *s2, size_t n)
static time_t FileTime(const char *filename)
static const char * GetCurrentResourcesDirectory()
static bool MakeDirectory(const char *path)
Create a directory name path.
static char * StrTokR(char *ptr, const char *sep, char **end)
strtok_r
static bool GetCurrentDateTime(char date[22])
static bool ParseDateTime(time_t &timep, const char date[22])
Parse a date stored as ASCII text into a time_t structured (discard millisecond if any)
static bool GetHostName(char hostname[255])
static size_t EncodeBytes(char *out, const unsigned char *data, int size)
static bool FileIsSymlink(const char *name)
Check whether name is a symlink.
static char * StrSep(char **stringp, const char *delim)
static const char * GetLastSystemError()
Return the last error.
static std::wstring ConvertToUNC(const char *utf8path)
static const char * GetCWD()
static size_t FileSize(const char *filename)
static int StrCaseCmp(const char *s1, const char *s2)
consistent func for C99 spec of strcasecmp/strncasecmp
static bool FileIsDirectory(const char *name)
Check whether the file specified is a directory:
static const char * GetCurrentModuleFileName()
static bool ParseDateTime(time_t &timep, long &milliseconds, const char date[22])
static bool RemoveFile(const char *source)
remove a file named source
static bool DeleteDirectory(const char *source)
remove a directory named source
static bool GetPermissions(const char *file, unsigned short &mode)
NOT THREAD SAFE.
static const char * GetTimezoneOffsetFromUTC()
static const char * GetCurrentProcessFileName()
#define GDCM_EXPORT
Definition gdcmWin32.h:34