A class for 'File' and 'Directory' grouping common methods (file/directory manipulation tools). The "file oriented" name means files or directories which are in fact hard coded as files.
More...
#include <OSD_FileNode.hxx>
|
| OSD_FileNode () |
| Creates FileNode object This is to be used with SetPath . Allocate space for the file name and initializes this name to an empty name.
|
|
| OSD_FileNode (const OSD_Path &Name) |
| Instantiates the object FileNode storing its name. If a name is not found, it raises a program error.
|
|
| ~OSD_FileNode () |
| Destructor is protected for safer inheritance.
|
|
A class for 'File' and 'Directory' grouping common methods (file/directory manipulation tools). The "file oriented" name means files or directories which are in fact hard coded as files.
◆ OSD_FileNode() [1/2]
OSD_FileNode::OSD_FileNode |
( |
| ) |
|
|
protected |
Creates FileNode object This is to be used with SetPath . Allocate space for the file name and initializes this name to an empty name.
◆ OSD_FileNode() [2/2]
OSD_FileNode::OSD_FileNode |
( |
const OSD_Path & | Name | ) |
|
|
protected |
Instantiates the object FileNode storing its name. If a name is not found, it raises a program error.
◆ ~OSD_FileNode()
OSD_FileNode::~OSD_FileNode |
( |
| ) |
|
|
inlineprotected |
Destructor is protected for safer inheritance.
◆ AccessMoment()
Returns last write access. On UNIX, AccessMoment and CreationMoment return the same value.
◆ Copy()
void OSD_FileNode::Copy |
( |
const OSD_Path & | ToPath | ) |
|
Copies <me> to another FileNode.
◆ CreationMoment()
Returns creation date. On UNIX, AccessMoment and CreationMoment return the same value.
◆ Error()
Returns error number if 'Failed' is TRUE.
◆ Exists()
Returns TRUE if <me> exists.
◆ Failed()
Returns TRUE if an error occurs.
◆ Move()
void OSD_FileNode::Move |
( |
const OSD_Path & | NewPath | ) |
|
Moves <me> into another directory.
◆ Path()
void OSD_FileNode::Path |
( |
OSD_Path & | Name | ) |
const |
◆ Perror()
void OSD_FileNode::Perror |
( |
| ) |
|
◆ Protection()
Returns access mode of <me>.
◆ Remove()
void OSD_FileNode::Remove |
( |
| ) |
|
Erases the FileNode from directory.
◆ Reset()
void OSD_FileNode::Reset |
( |
| ) |
|
Resets error counter to zero.
◆ SetPath()
void OSD_FileNode::SetPath |
( |
const OSD_Path & | Name | ) |
|
Sets file name and path. If a name is not found, it raises a program error.
◆ SetProtection()
Changes protection of the FileNode.
◆ myError
◆ myPath
The documentation for this class was generated from the following file: