SophiaFramework UNIVERSE 5.3 |
#include <SFBFileSystem.h.hpp>
class SFBFileSystem : public SFBQuery;
SFMTYPEDEFWRAPPER(SFBFileSystem)
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
X | X | X | O |
Public Functions | |
---|---|
SFCError |
Access(
ACharConstPtr path
, SInt32 mode
) Checks the pathname pointed to by the pszPath argument for accessibility according to the bit pattern contained in Mode.
|
SFCError |
Access(
SFXAnsiStringConstRef path
, SInt32 mode
) Checks the pathname pointed to by the pszPath argument for accessibility according to the bit pattern contained in Mode.
|
SFCError |
MkDir(
ACharConstPtr path
) Creates a new directory.
|
SFCError |
MkDir(
SFXAnsiStringConstRef path
) Creates a new directory.
|
static SFBFileSystemSmp |
NewInstance(
SFCErrorPtr exception = null
) Create a new SFBFileSystem instance.
|
static SFBFileSystemSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
) Create a new SFBFileSystem instance.
|
SFCError |
Rename(
ACharConstPtr oldpath
, ACharConstPtr newpath
) Rename an existing file to a new location, which must not already exist. Renaming a directory is not supported.
|
SFCError |
Rename(
SFXAnsiStringConstRef oldpath
, SFXAnsiStringConstRef newpath
) Rename an existing file to a new location, which must not already exist. Renaming a directory is not supported.
|
SFCError |
RmDir(
ACharConstPtr path
) The IFileSystem_RmDir() removes an existing, but empty, directory.
|
SInt32 |
RmDir(
SFXAnsiStringConstRef path
) The IFileSystem_RmDir() removes an existing, but empty, directory.
|
SFCError |
Stat(
ACharConstPtr path
, FSStat * buf
, SInt32 size
) The IFileSystem_Stat() obtains information about a file or directory.
|
SInt32 |
Stat(
SFXAnsiStringConstRef path
, FSStat * buf
, SInt32 size
) The IFileSystem_Stat() obtains information about a file or directory.
|
SFCError |
StatVFS(
ACharConstPtr path
, FSStatVFS * buf
, SInt32 size
) The IFileSystem_StatVFS() obtains information about the virtual file system that contains the pszPath argument.
|
SInt32 |
StatVFS(
SFXAnsiStringConstRef path
, FSStatVFS * buf
, SInt32 size
) The IFileSystem_StatVFS() obtains information about the virtual file system that contains the pszPath argument.
|
SFCError |
Truncate(
ACharConstPtr path
, SInt32 length
) Truncate a file to the specified length.
|
SFCError |
Truncate(
SFXAnsiStringConstRef path
, SInt32 length
) Truncate a file to the specified length.
|
SFCError |
Unlink(
ACharConstPtr path
) Remove a file from a directory.
|
SFCError |
Unlink(
SFXAnsiStringConstRef path
) Remove a file from a directory.
|
SFCError |
QueryInterface(
AEECLSID clsid
, VoidHandle handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFCError |
QueryInterface(
AEECLSID clsid
, SFBBaseSmpPtr handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFBBaseSmp |
QueryInterface(
AEECLSID clsid
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
Void |
Self(
AEECLSID clsidReq
, SFBQuerySmpPtr clone
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
SFBQuerySmp |
Self(
AEECLSID clsidReq
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SFCError Access( ACharConstPtr path // the path to the file of interest SInt32 mode // mode to be checked for accessibility );
[ public ] SFCError Access( SFXAnsiStringConstRef path // the path to the file of interest SInt32 mode // mode to be checked for accessibility );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
Common error codes:
[ public ] SFCError MkDir( ACharConstPtr path // the path to the new directory );
[ public ] SFCError MkDir( SFXAnsiStringConstRef path // the path to the new directory );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
Common error codes:
[ public, static ] SFBFileSystemSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBFileSystemSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] SFCError Rename( ACharConstPtr oldpath // the existing path ACharConstPtr newpath // the desired path );
[ public ] SFCError Rename( SFXAnsiStringConstRef oldpath // the existing path SFXAnsiStringConstRef newpath // the desired path );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
Common error codes:
[ public ] SFCError RmDir( ACharConstPtr path // the path to the existing directory );
[ public ] SInt32 RmDir( SFXAnsiStringConstRef path // the path to the existing directory );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
Common error codes:
[ public ] SFCError Stat( ACharConstPtr path // the path to the file or directory of interest FSStat * buf // pointer to a struct FSStat, which is to be filled in SInt32 size // the size of buf );
[ public ] SInt32 Stat( SFXAnsiStringConstRef path // the path to the file or directory of interest FSStat * buf // pointer to a struct FSStat, which is to be filled in SInt32 size // the size of buf );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
Common error codes:
[ public ] SFCError StatVFS( ACharConstPtr path // the path to the file or directory of interest FSStatVFS * buf // pointer to a struct FSStatVFS, which is to be filled in SInt32 size // the size of buf );
[ public ] SInt32 StatVFS( SFXAnsiStringConstRef path // the path to the file or directory of interest FSStatVFS * buf // pointer to a struct FSStatVFS, which is to be filled in SInt32 size // the size of buf );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a specific error code.
Common error codes:
[ public ] SFCError Truncate( ACharConstPtr path // the path to the file of interest SInt32 length // the new length for the file );
[ public ] SFCError Truncate( SFXAnsiStringConstRef path // the path to the file of interest SInt32 length // the new length for the file );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
一般的なエラーコード:
[ public ] SFCError Unlink( ACharConstPtr path // the path to the file of interest );
[ public ] SFCError Unlink( SFXAnsiStringConstRef path // the path to the file of interest );
Returns AEE_SUCCESS if the operation was successful. Otherwise returns a more specific error code.
一般的なエラーコード:
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |