PlasCom2  1.0
XPACC Multi-physics simluation application
ix::sys Namespace Reference

Unix system utilities. More...

Detailed Description

Unix system utilities.

Namespaces

 net
 TCP/IP Network Utilities.
 

Classes

class  Directory
 
class  DynamicObjectLib
 
class  Environment
 
class  fdinbuf
 
class  fdistream
 
class  fdostream
 
class  fdoutbuf
 
class  FDSetMan
 
class  InProcess
 
class  ObjectFactory
 
struct  platform_info
 
class  testmanager
 

Typedefs

typedef void * dlHandleType
 
typedef test::manager< test::resultsTestManagerType
 
typedef test::Global TestGlobalType
 

Functions

std::ostream & operator<< (std::ostream &outStream, const platform_info &platformInfo)
 
platform_info PlatformInfo (const std::string &systemInfo)
 
std::string SystemInfo ()
 
std::string LogTime ()
 
void TokenizePath (std::vector< std::string > rv, const std::string &path)
 
std::string TempFileName (const std::string &stub)
 
int OpenTemp (std::string &stub)
 
const std::string Hostname (bool longname=false)
 
const std::string StripDirs (const std::string &)
 
const std::string CWD ()
 
int SymLink (const std::string &source, const std::string &target)
 
void SafeRemove (const std::string &fname, const std::string &ext)
 
int ChDir (const std::string &path)
 
bool FILEEXISTS (const std::string &fname)
 
bool ISDIR (const std::string &fname)
 
bool ISLINK (const std::string &fname)
 
int CreateDirectory (const std::string &fname)
 
const std::string ResolveLink (const std::string &path)
 
int Remove (const std::string &fname)
 
int Rename (const std::string &source_file, const std::string &target_file)
 
std::ostream & operator<< (std::ostream &outStream, const struct platform_info &platformInfo)
 
std::ostream & operator<< (std::ostream &output, const Environment &env)
 

Typedef Documentation

◆ dlHandleType

typedef void* dlHandleType

Definition at line 16 of file DLTools.H.

◆ TestGlobalType

Definition at line 11 of file SysTest.H.

◆ TestManagerType

Definition at line 10 of file SysTest.H.

Function Documentation

◆ ChDir()

int ChDir ( const std::string &  path)

Definition at line 297 of file UnixUtils.C.

Referenced by TestIntegrated_PFCurvilinear2DX(), TestIntegrated_PFCurvilinear2DY(), TestIntegrated_PFCurvilinear3DZ(), TestIntegrated_PFRectilinear2DX(), TestIntegrated_PFRectilinear2DY(), TestIntegrated_PFRectilinear3DZ(), TestIntegrated_Poiseuille2DX(), TestIntegrated_Poiseuille2DY(), TestIntegrated_Poiseuille3DZ(), TestIntegrated_Scalar_Advection3DZ(), TestIntegrated_ViscousShock2DX(), TestIntegrated_ViscousShock2DY(), TestIntegrated_ViscousShock3DZ(), TestIntegrated_VSCurvilinear2DX(), TestIntegrated_VSCurvilinear2DY(), TestIntegrated_VSCurvilinear3DZ(), TestIntegrated_VSRectilinear2DX(), TestIntegrated_VSRectilinear2DY(), TestIntegrated_VSRectilinear3DZ(), TestPlasCom2_AcousticPulseFarfield2D(), TestPlasCom2_AcousticPulseFarfield3D(), TestPlasCom2_AcousticPulsePeriodic2D(), TestPlasCom2_AcousticPulsePeriodic3D(), TestPlasCom2_AcousticPulseSlipwall2D(), TestPlasCom2_AcousticPulseSlipwall3D(), TestPlasCom2_AcousticPulseSponge2D(), TestPlasCom2_AcousticPulseSponge3D(), TestPlasCom2_APCurvilinearFarfield2D(), TestPlasCom2_APCurvilinearFarfield3D(), TestPlasCom2_APCurvilinearPeriodic2D(), TestPlasCom2_APCurvilinearPeriodic3D(), TestPlasCom2_APCurvilinearSlipwall2D(), TestPlasCom2_APCurvilinearSlipwall3D(), TestPlasCom2_APCurvilinearSponge2D(), TestPlasCom2_APCurvilinearSponge3D(), TestPlasCom2_APRectilinearFarfield2D(), TestPlasCom2_APRectilinearFarfield3D(), TestPlasCom2_APRectilinearPeriodic2D(), TestPlasCom2_APRectilinearPeriodic3D(), TestPlasCom2_APRectilinearSlipwall2D(), TestPlasCom2_APRectilinearSlipwall3D(), TestPlasCom2_APRectilinearSponge2D(), TestPlasCom2_APRectilinearSponge3D(), TestPlasCom2_PFCurvilinear2DX_Regression(), TestPlasCom2_PFCurvilinear2DY_Regression(), TestPlasCom2_PFCurvilinear3DZ_Regression(), TestPlasCom2_PFRectilinear2DX_Regression(), TestPlasCom2_PFRectilinear2DY_Regression(), TestPlasCom2_PFRectilinear3DZ_Regression(), TestPlasCom2_Poiseuille2DX_Regression(), TestPlasCom2_Poiseuille2DY_Regression(), TestPlasCom2_Poiseuille3DZ_Regression(), TestPlasCom2_Restart(), TestPlasCom2_Scalar_Advection2DX(), TestPlasCom2_Scalar_Advection2DY(), TestPlasCom2_Scalar_AdvectionDiffusion2DX(), TestPlasCom2_Scalar_AdvectionDiffusion2DY(), TestPlasCom2_ViscousShock2DX_Regression(), TestPlasCom2_ViscousShock2DY_Regression(), TestPlasCom2_ViscousShock3DZ_Regression(), TestPlasCom2_VSCurvilinear2DX_Regression(), TestPlasCom2_VSCurvilinear2DY_Regression(), TestPlasCom2_VSCurvilinear3DZ_Regression(), TestPlasCom2_VSRectilinear2DX_Regression(), TestPlasCom2_VSRectilinear2DY_Regression(), TestPlasCom2_VSRectilinear3DZ_Regression(), TestPlasCom2Input(), and platform_info::UnPack().

◆ CreateDirectory()

int CreateDirectory ( const std::string &  fname)

Definition at line 217 of file UnixUtils.C.

Referenced by TestMaxwellRHSTimeIntegrate(), TestPlasCom2_Restart(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ CWD()

const std::string CWD ( )

Definition at line 291 of file UnixUtils.C.

Referenced by TestIntegrated_PFCurvilinear2DX(), TestIntegrated_PFCurvilinear2DY(), TestIntegrated_PFCurvilinear3DZ(), TestIntegrated_PFRectilinear2DX(), TestIntegrated_PFRectilinear2DY(), TestIntegrated_PFRectilinear3DZ(), TestIntegrated_Poiseuille2DX(), TestIntegrated_Poiseuille2DY(), TestIntegrated_Poiseuille3DZ(), TestIntegrated_Scalar_Advection3DZ(), TestIntegrated_ViscousShock2DX(), TestIntegrated_ViscousShock2DY(), TestIntegrated_ViscousShock3DZ(), TestIntegrated_VSCurvilinear2DX(), TestIntegrated_VSCurvilinear2DY(), TestIntegrated_VSCurvilinear3DZ(), TestIntegrated_VSRectilinear2DX(), TestIntegrated_VSRectilinear2DY(), TestIntegrated_VSRectilinear3DZ(), TestPlasCom2_AcousticPulseFarfield2D(), TestPlasCom2_AcousticPulseFarfield3D(), TestPlasCom2_AcousticPulsePeriodic2D(), TestPlasCom2_AcousticPulsePeriodic3D(), TestPlasCom2_AcousticPulseSlipwall2D(), TestPlasCom2_AcousticPulseSlipwall3D(), TestPlasCom2_AcousticPulseSponge2D(), TestPlasCom2_AcousticPulseSponge3D(), TestPlasCom2_APCurvilinearFarfield2D(), TestPlasCom2_APCurvilinearFarfield3D(), TestPlasCom2_APCurvilinearPeriodic2D(), TestPlasCom2_APCurvilinearPeriodic3D(), TestPlasCom2_APCurvilinearSlipwall2D(), TestPlasCom2_APCurvilinearSlipwall3D(), TestPlasCom2_APCurvilinearSponge2D(), TestPlasCom2_APCurvilinearSponge3D(), TestPlasCom2_APRectilinearFarfield2D(), TestPlasCom2_APRectilinearFarfield3D(), TestPlasCom2_APRectilinearPeriodic2D(), TestPlasCom2_APRectilinearPeriodic3D(), TestPlasCom2_APRectilinearSlipwall2D(), TestPlasCom2_APRectilinearSlipwall3D(), TestPlasCom2_APRectilinearSponge2D(), TestPlasCom2_APRectilinearSponge3D(), TestPlasCom2_PFCurvilinear2DX_Regression(), TestPlasCom2_PFCurvilinear2DY_Regression(), TestPlasCom2_PFCurvilinear3DZ_Regression(), TestPlasCom2_PFRectilinear2DX_Regression(), TestPlasCom2_PFRectilinear2DY_Regression(), TestPlasCom2_PFRectilinear3DZ_Regression(), TestPlasCom2_Poiseuille2DX_Regression(), TestPlasCom2_Poiseuille2DY_Regression(), TestPlasCom2_Poiseuille3DZ_Regression(), TestPlasCom2_Restart(), TestPlasCom2_Scalar_Advection2DX(), TestPlasCom2_Scalar_Advection2DY(), TestPlasCom2_Scalar_AdvectionDiffusion2DX(), TestPlasCom2_Scalar_AdvectionDiffusion2DY(), TestPlasCom2_ViscousShock2DX_Regression(), TestPlasCom2_ViscousShock2DY_Regression(), TestPlasCom2_ViscousShock3DZ_Regression(), TestPlasCom2_VSCurvilinear2DX_Regression(), TestPlasCom2_VSCurvilinear2DY_Regression(), TestPlasCom2_VSCurvilinear3DZ_Regression(), TestPlasCom2_VSRectilinear2DX_Regression(), TestPlasCom2_VSRectilinear2DY_Regression(), TestPlasCom2_VSRectilinear3DZ_Regression(), TestPlasCom2Input(), and platform_info::UnPack().

◆ FILEEXISTS()

bool FILEEXISTS ( const std::string &  fname)

Definition at line 189 of file UnixUtils.C.

Referenced by base::base(), plascom2::util::ConvertLegacyConfiguration(), plascom2::io::hdf5::OutputSingle(), pcpp::util::ProcessConfigurationRestart(), pcpp::util::RecursiveReadConfiguration(), ix::RunTest(), SafeRemove(), TestGrid_CurvilinearMetric(), TestGrid_CurvilinearVGWavy(), TestGrid_RectilinearMetric(), TestHDF5GridIO(), TestHDF5HyperSlab(), TestHDF5PBSGridIO(), TestIntegrated_PFCurvilinear2DX(), TestIntegrated_PFCurvilinear2DY(), TestIntegrated_PFCurvilinear3DZ(), TestIntegrated_PFRectilinear2DX(), TestIntegrated_PFRectilinear2DY(), TestIntegrated_PFRectilinear3DZ(), TestIntegrated_Poiseuille2DX(), TestIntegrated_Poiseuille2DY(), TestIntegrated_Poiseuille3DZ(), TestIntegrated_Scalar_Advection3DZ(), TestIntegrated_ViscousShock2DX(), TestIntegrated_ViscousShock2DY(), TestIntegrated_ViscousShock3DZ(), TestIntegrated_VSCurvilinear2DX(), TestIntegrated_VSCurvilinear2DY(), TestIntegrated_VSCurvilinear3DZ(), TestIntegrated_VSRectilinear2DX(), TestIntegrated_VSRectilinear2DY(), TestIntegrated_VSRectilinear3DZ(), TestMaxwellRHSTimeIntegrate(), TestPCPPHDF5Write(), TestPlasCom2_AcousticPulseFarfield2D(), TestPlasCom2_AcousticPulseFarfield3D(), TestPlasCom2_AcousticPulsePeriodic2D(), TestPlasCom2_AcousticPulsePeriodic3D(), TestPlasCom2_AcousticPulseSlipwall2D(), TestPlasCom2_AcousticPulseSlipwall3D(), TestPlasCom2_AcousticPulseSponge2D(), TestPlasCom2_AcousticPulseSponge3D(), TestPlasCom2_APCurvilinearFarfield2D(), TestPlasCom2_APCurvilinearFarfield3D(), TestPlasCom2_APCurvilinearPeriodic2D(), TestPlasCom2_APCurvilinearPeriodic3D(), TestPlasCom2_APCurvilinearSlipwall2D(), TestPlasCom2_APCurvilinearSlipwall3D(), TestPlasCom2_APCurvilinearSponge2D(), TestPlasCom2_APCurvilinearSponge3D(), TestPlasCom2_APRectilinearFarfield2D(), TestPlasCom2_APRectilinearFarfield3D(), TestPlasCom2_APRectilinearPeriodic2D(), TestPlasCom2_APRectilinearPeriodic3D(), TestPlasCom2_APRectilinearSlipwall2D(), TestPlasCom2_APRectilinearSlipwall3D(), TestPlasCom2_APRectilinearSponge2D(), TestPlasCom2_APRectilinearSponge3D(), TestPlasCom2_PFCurvilinear2DX_Regression(), TestPlasCom2_PFCurvilinear2DY_Regression(), TestPlasCom2_PFCurvilinear3DZ_Regression(), TestPlasCom2_PFRectilinear2DX_Regression(), TestPlasCom2_PFRectilinear2DY_Regression(), TestPlasCom2_PFRectilinear3DZ_Regression(), TestPlasCom2_Poiseuille2DX_Regression(), TestPlasCom2_Poiseuille2DY_Regression(), TestPlasCom2_Poiseuille3DZ_Regression(), TestPlasCom2_Restart(), TestPlasCom2_Scalar_Advection2DX(), TestPlasCom2_Scalar_Advection2DY(), TestPlasCom2_Scalar_AdvectionDiffusion2DX(), TestPlasCom2_Scalar_AdvectionDiffusion2DY(), TestPlasCom2_ViscousShock2DX_Regression(), TestPlasCom2_ViscousShock2DY_Regression(), TestPlasCom2_ViscousShock3DZ_Regression(), TestPlasCom2_VSCurvilinear2DX_Regression(), TestPlasCom2_VSCurvilinear2DY_Regression(), TestPlasCom2_VSCurvilinear3DZ_Regression(), TestPlasCom2_VSRectilinear2DX_Regression(), TestPlasCom2_VSRectilinear2DY_Regression(), TestPlasCom2_VSRectilinear3DZ_Regression(), TestPlasCom2Input(), TestPlasCom2Output(), and platform_info::UnPack().

◆ Hostname()

const std::string Hostname ( bool  longname = false)

Definition at line 17 of file UnixUtils.C.

Referenced by CommunicatorObject::CartRank(), PlatformInfo(), ix::RunTest(), SystemInfo(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ ISDIR()

bool ISDIR ( const std::string &  fname)

Definition at line 197 of file UnixUtils.C.

Referenced by Remove(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ ISLINK()

bool ISLINK ( const std::string &  fname)

Definition at line 207 of file UnixUtils.C.

Referenced by SafeRemove(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ LogTime()

std::string LogTime ( )

Definition at line 160 of file UnixUtils.C.

Referenced by GlobalObj< StackType, ErrorType, ProfilerType >::LogOut(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ OpenTemp()

int OpenTemp ( std::string &  stub)

Definition at line 333 of file UnixUtils.C.

Referenced by platform_info::UnPack().

Here is the caller graph for this function:

◆ operator<<() [1/3]

std::ostream& ix::sys::operator<< ( std::ostream &  outStream,
const struct platform_info platformInfo 
)

◆ operator<<() [2/3]

std::ostream& ix::sys::operator<< ( std::ostream &  outStream,
const platform_info platformInfo 
)

Referenced by platform_info::UnPack().

Here is the caller graph for this function:

◆ operator<<() [3/3]

std::ostream& ix::sys::operator<< ( std::ostream &  output,
const Environment env 
)

Definition at line 454 of file UnixUtils.C.

◆ PlatformInfo()

struct platform_info PlatformInfo ( const std::string &  systemInfo)

◆ Remove()

int Remove ( const std::string &  fname)

Definition at line 141 of file UnixUtils.C.

References ISDIR().

Referenced by plascom2::io::hdf5::OutputSingle(), ix::RunTest(), TempFileName(), TestGrid_CurvilinearMetric(), TestGrid_CurvilinearVGWavy(), TestGrid_RectilinearMetric(), TestHDF5GridIO(), TestHDF5HyperSlab(), TestHDF5PBSGridIO(), TestIntegrated_PFCurvilinear2DX(), TestIntegrated_PFCurvilinear2DY(), TestIntegrated_PFCurvilinear3DZ(), TestIntegrated_PFRectilinear2DX(), TestIntegrated_PFRectilinear2DY(), TestIntegrated_PFRectilinear3DZ(), TestIntegrated_Poiseuille2DX(), TestIntegrated_Poiseuille2DY(), TestIntegrated_Poiseuille3DZ(), TestIntegrated_Scalar_Advection3DZ(), TestIntegrated_ViscousShock2DX(), TestIntegrated_ViscousShock2DY(), TestIntegrated_ViscousShock3DZ(), TestIntegrated_VSCurvilinear2DX(), TestIntegrated_VSCurvilinear2DY(), TestIntegrated_VSCurvilinear3DZ(), TestIntegrated_VSRectilinear2DX(), TestIntegrated_VSRectilinear2DY(), TestIntegrated_VSRectilinear3DZ(), TestPCPPHDF5Write(), TestPlasCom2_AcousticPulseFarfield2D(), TestPlasCom2_AcousticPulseFarfield3D(), TestPlasCom2_AcousticPulsePeriodic2D(), TestPlasCom2_AcousticPulsePeriodic3D(), TestPlasCom2_AcousticPulseSlipwall2D(), TestPlasCom2_AcousticPulseSlipwall3D(), TestPlasCom2_AcousticPulseSponge2D(), TestPlasCom2_AcousticPulseSponge3D(), TestPlasCom2_APCurvilinearFarfield2D(), TestPlasCom2_APCurvilinearFarfield3D(), TestPlasCom2_APCurvilinearPeriodic2D(), TestPlasCom2_APCurvilinearPeriodic3D(), TestPlasCom2_APCurvilinearSlipwall2D(), TestPlasCom2_APCurvilinearSlipwall3D(), TestPlasCom2_APCurvilinearSponge2D(), TestPlasCom2_APCurvilinearSponge3D(), TestPlasCom2_APRectilinearFarfield2D(), TestPlasCom2_APRectilinearFarfield3D(), TestPlasCom2_APRectilinearPeriodic2D(), TestPlasCom2_APRectilinearPeriodic3D(), TestPlasCom2_APRectilinearSlipwall2D(), TestPlasCom2_APRectilinearSlipwall3D(), TestPlasCom2_APRectilinearSponge2D(), TestPlasCom2_APRectilinearSponge3D(), TestPlasCom2_PFCurvilinear2DX_Regression(), TestPlasCom2_PFCurvilinear2DY_Regression(), TestPlasCom2_PFCurvilinear3DZ_Regression(), TestPlasCom2_PFRectilinear2DX_Regression(), TestPlasCom2_PFRectilinear2DY_Regression(), TestPlasCom2_PFRectilinear3DZ_Regression(), TestPlasCom2_Poiseuille2DX_Regression(), TestPlasCom2_Poiseuille2DY_Regression(), TestPlasCom2_Poiseuille3DZ_Regression(), TestPlasCom2_Restart(), TestPlasCom2_Scalar_Advection2DX(), TestPlasCom2_Scalar_Advection2DY(), TestPlasCom2_Scalar_AdvectionDiffusion2DX(), TestPlasCom2_Scalar_AdvectionDiffusion2DY(), TestPlasCom2_ViscousShock2DX_Regression(), TestPlasCom2_ViscousShock2DY_Regression(), TestPlasCom2_ViscousShock3DZ_Regression(), TestPlasCom2_VSCurvilinear2DX_Regression(), TestPlasCom2_VSCurvilinear2DY_Regression(), TestPlasCom2_VSCurvilinear3DZ_Regression(), TestPlasCom2_VSRectilinear2DX_Regression(), TestPlasCom2_VSRectilinear2DY_Regression(), TestPlasCom2_VSRectilinear3DZ_Regression(), TestPlasCom2Input(), TestPlasCom2Output(), and platform_info::UnPack().

Here is the call graph for this function:

◆ Rename()

int Rename ( const std::string &  source_file,
const std::string &  target_file 
)

Definition at line 132 of file UnixUtils.C.

Referenced by TestPlasCom2_Restart(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ ResolveLink()

const std::string ResolveLink ( const std::string &  path)

Definition at line 222 of file UnixUtils.C.

References x.

Referenced by platform_info::UnPack().

Here is the caller graph for this function:

◆ SafeRemove()

void SafeRemove ( const std::string &  fname,
const std::string &  ext 
)

Definition at line 170 of file UnixUtils.C.

References FILEEXISTS(), and ISLINK().

Referenced by platform_info::UnPack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StripDirs()

const std::string StripDirs ( const std::string &  pname)

Definition at line 303 of file UnixUtils.C.

References x.

Referenced by platform_info::UnPack().

Here is the caller graph for this function:

◆ SymLink()

int SymLink ( const std::string &  source,
const std::string &  target 
)

Definition at line 136 of file UnixUtils.C.

Referenced by ix::RunTest(), and platform_info::UnPack().

Here is the caller graph for this function:

◆ SystemInfo()

std::string SystemInfo ( )

Definition at line 99 of file UnixUtils.C.

References InProcess::Execute(), platform_info::hostName, and Hostname().

Referenced by application::ConfigureApplication(), testmanager::Test__SystemInfo(), and platform_info::UnPack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TempFileName()

std::string TempFileName ( const std::string &  stub)

Definition at line 313 of file UnixUtils.C.

References Remove().

Referenced by ix::RunTest(), and platform_info::UnPack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TokenizePath()

void TokenizePath ( std::vector< std::string >  rv,
const std::string &  path 
)

Definition at line 350 of file UnixUtils.C.

Referenced by platform_info::UnPack().

Here is the caller graph for this function: