Zen
A cross-platform functional programming language

application Class Reference

Intrinsic application type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 application (int argc, char *argv[])
 Default constructor.

Static Public Member Functions

static z::string path ()
 Get the application path.
static z::string getEnv (const z::string &key, const z::string &val=z::string(""))
 Get an environment variable.

Detailed Description

Intrinsic application type.


Constructor & Destructor Documentation

application ( int  argc,
char *  argv[] 
) [inline]

Default constructor.

Parameters:
argcCount of arguments
argvArgument values

Member Function Documentation

static z::string getEnv ( const z::string key,
const z::string val = z::string("") 
) [inline, static]

Get an environment variable.

Parameters:
keyThe environment value name
valThe default value
Returns:
The environment value if found, or default value
static z::string path ( ) [inline, static]

Get the application path.

Returns:
The application path

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines