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

FX::FXSystem Namespace Reference


FXString localTime (FXTime value)
FXString universalTime (FXTime value)
FXString localTime (const FXchar *format, FXTime value)
FXString universalTime (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)
FXbool 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 ()
FXint getProcessId ()
FXString getHostName ()
FXbool localeIsUTF8 ()
FXString dllName (const FXString &name)

Function Documentation

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

Convert time in nanoseconds since 1/1/1970 to local date string.

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

Convert time in nanoseconds since 1/1/1970 to universal date string.

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

Convert time in nanoseconds since 1/1/1970 to local 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.

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

Convert time in nanoseconds since 1/1/1970 to universal date string as per strftime.

FXuint FX::FXSystem::user (  ) 

Get effective user id.

FXuint FX::FXSystem::group (  ) 

Get effective group id.

Referenced by FX::FXRecentFiles::getTarget(), and FX::FXRecentFiles::setSelector().

FXString FX::FXSystem::userName ( FXuint  uid  ) 

Return owner name from uid if available.

FXString FX::FXSystem::groupName ( FXuint  gid  ) 

Return group name from gid if available.

FXString FX::FXSystem::currentUserName (  ) 

Get current effective user name.

FXString FX::FXSystem::currentGroupName (  ) 

Get current effective group name.

FXString FX::FXSystem::modeString ( FXuint  mode  ) 

Get permissions string.

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

Return value of environment variable name.

FXbool FX::FXSystem::setEnvironment ( const FXString &  name,
const FXString &  value 

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

FXString FX::FXSystem::getCurrentDirectory (  ) 

Get the current working directory.

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

Set the current working directory.

FXString FX::FXSystem::getCurrentDrive (  ) 

Return the current drive (for Win32 systems).

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

Set the current drive (for Win32 systems).

FXString FX::FXSystem::getExecPath (  ) 

Get executable path.

FXString FX::FXSystem::getHomeDirectory (  ) 

Return the home directory for the current user.

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

Return the home directory for a given user.

FXString FX::FXSystem::getTempDirectory (  ) 

Return temporary directory.

FXint FX::FXSystem::getProcessId (  ) 

Get process id.

FXString FX::FXSystem::getHostName (  ) 

Return host name.

FXbool FX::FXSystem::localeIsUTF8 (  ) 

Determine if UTF8 locale in effect.

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

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

Copyright © 1997-2010 Jeroen van der Zijp