Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

gdcm::System Class Reference

#include <gdcmSystem.h>

List of all members.


Detailed Description

Class to do system operation.

OS independant functionalities

Definition at line 27 of file gdcmSystem.h.


Static Public Member Functions

static size_t EncodeBytes (char *out, const unsigned char *data, int size)
 Encode bytes.
static bool FileExists (const char *filename)
 Check whether the specified file exist on the sytem.
static bool FileIsDirectory (const char *name)
 Check whether the file specified is a directory:.
static size_t FileSize (const char *filename)
static time_t FileTime (const char *filename)
static bool FormatDateTime (char date[22], time_t t, long milliseconds=0)
static bool GetCurrentDateTime (char date[22])
 Return the current data time, and format it as ASCII text.
static const char * GetCurrentModuleFileName ()
static const char * GetCurrentProcessFileName ()
static const char * GetCurrentResourcesDirectory ()
static const char * GetCWD ()
static bool GetHardwareAddress (unsigned char addr[6])
static bool GetHostName (char hostname[255])
static const char * GetLastSystemError ()
 Return the last error.
static bool MakeDirectory (const char *path)
 Create a directory.
static bool ParseDateTime (time_t &timep, long &milliseconds, const 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 RemoveFile (const char *source)
 remove a file
static int StrCaseCmp (const char *s1, const char *s2)
 consistant func for C99 spec of strcasecmp/strncasecmp
static int StrNCaseCmp (const char *s1, const char *s2, size_t n)

Static Protected Member Functions

static bool GetPermissions (const char *file, unsigned short &mode)
 NOT THREAD SAFE.
static bool SetPermissions (const char *file, unsigned short mode)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index