Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

osdep.hpp File Reference

OS dependant utility functions. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/filename.h>

Include dependency graph for osdep.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define wxCGetFileLength   getFileLength
 Version of the getFileLength function to use (system ou 64 bits).


Typedefs

typedef off_t wxCOff_t
 Use the system off_t type.


Functions

off_t getFileLength (const wxChar *fileName)
 Gets the length of the specified file.

wxArrayString getResourcesPaths ()
 Gets the absolute paths where the resources of the program can be placed.

wxString UTF8toLocal (const wxString utf8)
 Converts an UTF-8 string to the local encoded string.


Detailed Description

OS dependant utility functions.

Definition in file osdep.hpp.


Define Documentation

#define wxCGetFileLength   getFileLength
 

Version of the getFileLength function to use (system ou 64 bits).

Definition at line 55 of file osdep.hpp.

Referenced by dlgBatchCreation::batchCreation(), ChecksumsListView::check(), dlgMultiCheck::checkFile(), getFilesInSubdirectoriesRec(), ChecksumsListView::recompute(), SFVFile::write(), and MD5File::write().


Typedef Documentation

typedef off_t wxCOff_t
 

Use the system off_t type.

Definition at line 53 of file osdep.hpp.

Referenced by dlgBatchCreation::batchCreation(), ChecksumsListView::check(), dlgMultiCheck::checkFile(), getFilesInSubdirectoriesRec(), ChecksumsListView::recompute(), SFVFile::write(), and MD5File::write().


Function Documentation

off_t getFileLength const wxChar *  fileName  ) 
 

Gets the length of the specified file.

Should not work with large files.

Parameters:
fileName The name of the file of which we want to get the length.
Returns:
The length of the specified file or wxInvalidOffset if an error has occured.

Definition at line 100 of file osdep.cpp.

wxArrayString getResourcesPaths  ) 
 

Gets the absolute paths where the resources of the program can be placed.

Returns:
The absolute paths where the resources of the program can be placed.

Definition at line 148 of file osdep.cpp.

References APP_NAME.

wxString UTF8toLocal const wxString  utf8  ) 
 

Converts an UTF-8 string to the local encoded string.

Parameters:
utf8 String encoded in UTF-8.
Returns:
The string encoded in local encoding.

Definition at line 231 of file osdep.cpp.

Referenced by Languages::readLanguagesSettings().


Generated on Sun May 30 13:38:00 2004 for wxChecksums by doxygen 1.3.7