Platform_Win32_FileSystem_Device.cpp
Go to the documentation of this file.00001 //*** Platform_Win32_FileSystem_Device.cpp *** 00002 00003 #include "Platform_Win32_FileSystem_Device.h" 00004 #include "Platform_OS.h" 00005 00006 #define WIN32_LEAN_AND_MEAN 00007 #define VC_EXTRALEAN 00008 #include <string.h> 00009 #include <malloc.h> 00010 00011 00012 //*** Constructor *** 00013 00014 Platform_Win32_FileSystem_Device::Platform_Win32_FileSystem_Device(const char* deviceName): 00015 name_(0) 00016 { 00017 if (!deviceName) 00018 { 00019 Platform::GetPlatform_OS()->OutputDebugText("No device name specified\n"); 00020 } 00021 00022 if (deviceName) 00023 { 00024 name_=strdup(deviceName); 00025 } 00026 } 00027 00028 00029 //*** Destructor *** 00030 00031 Platform_Win32_FileSystem_Device::~Platform_Win32_FileSystem_Device() 00032 { 00033 if (name_) 00034 { 00035 free(name_); 00036 } 00037 } 00038 00039 00040 //*** GetName *** 00041 00042 const char* Platform_Win32_FileSystem_Device::GetName() const 00043 { 00044 return name_; 00045 } 00046 00047
Reproduction/republishing of any material on this site without permission is strictly prohibited.
