ApparatusFramework::WinFileSys Class Reference
[Device Services]

#include <DeviceServices/Win32/current/include/WinFileSys.h>

Inheritance diagram for ApparatusFramework::WinFileSys:
ApparatusFramework::FileSystem ApparatusFramework::Monitor

List of all members.

Public Member Functions

 WinFileSys (const char *baseDir)
virtual ~WinFileSys ()
virtual Fileopen (const char *fileName, const char *mode)
virtual Filecreate (const char *fileName, const char *mode, const int32 version)
virtual int32 remove (const char *fileName)
virtual void closed (WinFile *pFile)

Detailed Description

Implementation of the file system interface for windows targets. This file system can be mounted in the file manager, which provides a common access point for file access.

Definition at line 60 of file WinFileSys.h.


Constructor & Destructor Documentation

ApparatusFramework::WinFileSys::WinFileSys ( const char *  baseDir  ) 

Construction, destruction Constructs a new windows file system.

Parameters:
baseDir The base directory on the actual disk.
virtual ApparatusFramework::WinFileSys::~WinFileSys (  )  [virtual]

Destructs the file system.


Member Function Documentation

virtual void ApparatusFramework::WinFileSys::closed ( WinFile pFile  )  [virtual]

Notifies the file system that a file has been closed and the associated resources can be recycled.

Parameters:
pFile Pointer to the file that has been closed.
virtual File* ApparatusFramework::WinFileSys::create ( const char *  fileName,
const char *  mode,
const int32  version 
) [virtual]

Creates a file by its name. The file name (without the mount directory) is passed on from the file manager (e.g. myfile.txt).

Parameters:
fileName The path and filename
mode Specifies read "r" or write "w" access, according to ANSI C conventions.
version The version of this file. Useful when the format of the stored information changes. Not supported by the windows file system.
Returns:
The created file, or null if the file already exist or could not be created.

Implements ApparatusFramework::FileSystem.

virtual File* ApparatusFramework::WinFileSys::open ( const char *  fileName,
const char *  mode 
) [virtual]

File access methods Opens a file by its name. The file name (without the mount directory) is passed on from the file manager (e.g. myfile.txt).

Parameters:
fileName The path and filename
mode Specifies read "r" or write "w" access, according to ANSI C conventions.
Returns:
The requested file, or null if the file does not exist or is already in use.

Implements ApparatusFramework::FileSystem.

virtual int32 ApparatusFramework::WinFileSys::remove ( const char *  fileName  )  [virtual]

Removes the specified file. The file name has to contain the path according to UNIX conventions (e.g. /eeprom/myfile.txt).

Parameters:
fileName The absolute path and filename (no relative paths)
Returns:
Status of the method. See FileSysReturnCodes.

Implements ApparatusFramework::FileSystem.

© 2004-2010 bbv Software Services AG / Apparatus Services