Open CASCADE Technology
7.7.0
|
Disk management (a set of disk oriented tools) More...
#include <OSD_Disk.hxx>
Public Member Functions | |
OSD_Disk () | |
Creates a disk object. This is used only when a class contains a Disk field. By default, its name is initialized to current working disk. More... | |
OSD_Disk (const OSD_Path &Name) | |
Initializes the object Disk with the disk name associated to the OSD_Path. More... | |
OSD_Disk (const Standard_CString PathName) | |
Initializes the object Disk with <PathName>. <PathName> specifies any file within the mounted file system. Example : OSD_Disk myDisk ("/tmp") Initializes a disk object with the mounted file associated to /tmp. More... | |
OSD_Path | Name () const |
Returns disk name of <me>. More... | |
void | SetName (const OSD_Path &Name) |
Instantiates <me> with <Name>. More... | |
Standard_Integer | DiskSize () |
Returns total disk capacity in 512 bytes blocks. More... | |
Standard_Integer | DiskFree () |
Returns free available 512 bytes blocks on disk. More... | |
Standard_Boolean | Failed () const |
Returns TRUE if an error occurs. More... | |
void | Reset () |
Resets error counter to zero. More... | |
void | Perror () |
Raises OSD_Error. More... | |
Standard_Integer | Error () const |
Returns error number if 'Failed' is TRUE. More... | |
Disk management (a set of disk oriented tools)
OSD_Disk::OSD_Disk | ( | ) |
Creates a disk object. This is used only when a class contains a Disk field. By default, its name is initialized to current working disk.
OSD_Disk::OSD_Disk | ( | const OSD_Path & | Name | ) |
Initializes the object Disk with the disk name associated to the OSD_Path.
OSD_Disk::OSD_Disk | ( | const Standard_CString | PathName | ) |
Initializes the object Disk with <PathName>. <PathName> specifies any file within the mounted file system. Example : OSD_Disk myDisk ("/tmp") Initializes a disk object with the mounted file associated to /tmp.
Standard_Integer OSD_Disk::DiskFree | ( | ) |
Returns free available 512 bytes blocks on disk.
Standard_Integer OSD_Disk::DiskSize | ( | ) |
Returns total disk capacity in 512 bytes blocks.
|
inline |
Returns error number if 'Failed' is TRUE.
|
inline |
Returns TRUE if an error occurs.
OSD_Path OSD_Disk::Name | ( | ) | const |
Returns disk name of <me>.
|
inline |
Raises OSD_Error.
|
inline |
Resets error counter to zero.
void OSD_Disk::SetName | ( | const OSD_Path & | Name | ) |
Instantiates <me> with <Name>.