Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXSystem Namespace Reference

Functions

FXTime now ()
FXString time (FXTime value)
FXString time (const FXchar *format, FXTime value)
FXuint user ()
FXuint group ()
FXString userName (FXuint uid)
FXString groupName (FXuint gid)
FXString currentUserName ()
FXString currentGroupName ()
FXString modeString (FXuint mode)
FXString getEnvironment (const FXString &name)
bool setEnvironment (const FXString &name, const FXString &value)
FXString getCurrentDirectory ()
FXbool setCurrentDirectory (const FXString &path)
FXString getCurrentDrive ()
FXbool setCurrentDrive (const FXString &prefix)
FXString getExecPath ()
FXString getHomeDirectory ()
FXString getUserDirectory (const FXString &user)
FXString getTempDirectory ()
FXString dllName (const FXString &name)

Function Documentation

Return current time.

FXString FX::FXSystem::time ( FXTime  value)

Convert time value to date-string.

FXString FX::FXSystem::time ( const FXchar *  format,
FXTime  value 
)

Convert time value to date-string as per strftime.

Format characters supported by most systems are:

a A b B c d H I j m M p S U w W x X y Y Z %%

Some systems support additional conversions.

Get effective user id.

Return owner name from uid if available.

Return group name from gid if available.

Get current effective user name.

Get current effective group name.

Get permissions string.

FXString FX::FXSystem::getEnvironment ( const FXString &  name)

Return value of environment variable name.

bool FX::FXSystem::setEnvironment ( const FXString &  name,
const FXString &  value 
)

Change value of environment variable name, return true if success.

Get the current working directory.

FXbool FX::FXSystem::setCurrentDirectory ( const FXString &  path)

Set the current working directory.

Return the current drive (for Win32 systems)

FXbool FX::FXSystem::setCurrentDrive ( const FXString &  prefix)

Set the current drive (for Win32 systems)

Get executable path.

Return the home directory for the current user.

FXString FX::FXSystem::getUserDirectory ( const FXString &  user)

Return the home directory for a given user.

Return temporary directory.

FXString FX::FXSystem::dllName ( const FXString &  name)

Get DLL name for given base name; for example "png" becomes "libpng.so" on Linux, and "png.dll" on Windows.

Copyright © 1997-2005 Jeroen van der Zijp