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

FXSystem.h File Reference

Go to the source code of this file.

Namespaces

namespace  FX
namespace  FX::FXSystem

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

FXTime FX::FXSystem::now  ) 
 

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.

FXuint FX::FXSystem::user  ) 
 

Get effective user id.

FXuint FX::FXSystem::group  ) 
 

Get effective group id.

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.

bool 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.

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