Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

ExEnv Class Reference

The ExEnv class is used to find out about how the program is being run. More...

#include <exenv.h>

List of all members.

Static Public Methods

void init (int &argcref, char **&argvref)
 Set the argument count and vector.

int initialized ()
 Return nonzero if ExEnv has been initialized.

int& argc ()
 Return an reference to the argument count.

char**& argv ()
 Return an reference to the argument vector.

const char* program_name ()
 Return argv[0] with the path removed.

const char* hostname ()
 Return the host name.

const char* username ()
void set_out (std::ostream *o)
std::ostream& out ()
std::ostream& err ()
unsigned long memory ()
 The amount of memory on this node.

int nproc ()
 The number of processors on this node.


Static Protected Attributes

int initialized_
int* argc_
char*** argv_
char hostname_ [256]
char username_ [9]
unsigned long mem_
int nproc_
std::ostream* out_


Detailed Description

The ExEnv class is used to find out about how the program is being run.


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 18:09:06 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.