casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::AppRC Class Reference

#include <AppRC.h>

Public Member Functions

 AppRC ()
 
 AppRC (const string &filename, const casacore::Bool addPID=false, const casacore::Bool deleteFile=false)
 
 ~AppRC ()
 
void setID (const string &id)
 
void init (const string &filename, const casacore::Bool addPID=false, const casacore::Bool deleteFile=true)
 
string get (const string &name)
 
string get (const string &name, casacore::Int &val)
 
string get (const string &name, casacore::Float &val)
 
string get (const string &name, casacore::Double &val)
 
void put (const string &name, const string &val)
 
void put (const string &name, const casacore::Int &val)
 
void put (const string &name, const casacore::Float &val)
 
void put (const string &name, const casacore::Double &val)
 

Static Public Member Functions

static casacore::Double getMemoryAvailable (string envVarName="CASA_MAX_MEMORY")
 The environment variable is assumed in MB if that is used. More...
 

Private Member Functions

void setPID ()
 

Private Attributes

casacore::Casarcrc_p
 
casacore::CasarcCleanup rcCleanup
 
pid_t myPID_p
 
casacore::Bool addPID_p
 
casacore::Bool deleteFile_p
 
string fileName_p
 
string id_p
 

Detailed Description

Definition at line 40 of file AppRC.h.

Constructor & Destructor Documentation

casa::AppRC::AppRC ( )
inline

Definition at line 43 of file AppRC.h.

casa::AppRC::AppRC ( const string &  filename,
const casacore::Bool  addPID = false,
const casacore::Bool  deleteFile = false 
)
inline

Definition at line 48 of file AppRC.h.

casa::AppRC::~AppRC ( )

Member Function Documentation

string casa::AppRC::get ( const string &  name)
string casa::AppRC::get ( const string &  name,
casacore::Int val 
)
string casa::AppRC::get ( const string &  name,
casacore::Float val 
)
string casa::AppRC::get ( const string &  name,
casacore::Double val 
)
static casacore::Double casa::AppRC::getMemoryAvailable ( string  envVarName = "CASA_MAX_MEMORY")
static

The environment variable is assumed in MB if that is used.

returns Bytes available (reason why it is a double)

void casa::AppRC::init ( const string &  filename,
const casacore::Bool  addPID = false,
const casacore::Bool  deleteFile = true 
)
void casa::AppRC::put ( const string &  name,
const string &  val 
)
void casa::AppRC::put ( const string &  name,
const casacore::Int val 
)
void casa::AppRC::put ( const string &  name,
const casacore::Float val 
)
void casa::AppRC::put ( const string &  name,
const casacore::Double val 
)
void casa::AppRC::setID ( const string &  id)
inline

Definition at line 59 of file AppRC.h.

void casa::AppRC::setPID ( )
inlineprivate

Definition at line 78 of file AppRC.h.

Member Data Documentation

casacore::Bool casa::AppRC::addPID_p
private

Definition at line 76 of file AppRC.h.

casacore::Bool casa::AppRC::deleteFile_p
private

Definition at line 76 of file AppRC.h.

string casa::AppRC::fileName_p
private

Definition at line 77 of file AppRC.h.

string casa::AppRC::id_p
private

Definition at line 77 of file AppRC.h.

pid_t casa::AppRC::myPID_p
private

Definition at line 75 of file AppRC.h.

casacore::Casarc* casa::AppRC::rc_p
private

Definition at line 73 of file AppRC.h.

casacore::CasarcCleanup casa::AppRC::rcCleanup
private

Definition at line 74 of file AppRC.h.


The documentation for this class was generated from the following file: