plumbing Namespace Reference

Data Structures

class  at_job
class  at_service
class  endpoint
class  endpoint_chargen
class  endpoint_client
class  endpoint_client_stdout
class  endpoint_daytime
class  endpoint_functor
class  endpoint_listener
class  endpoint_listener_chargen
class  endpoint_listener_daytime
class  logging
class  logging_file
class  logging_null
class  logging_stderr
class  logging_syslog
class  logging_tee
class  reactor
class  time_value

Functions

logginglog ()
void progname_set (const char *argv0)
std::string progname_get (void)
const char * version (void)
const char * copyright_years (void)
void version_print (void)

Function Documentation

const char * plumbing::copyright_years ( void   ) 

Definition at line 30 of file version.cc.

logging& plumbing::log (  )  [inline]

The plumbing::log() function is used to make it possible to simply say

plumbing::log().fatal_error("croak")

to issue error messages. If you need errno translated, use libexplain to do it, and send it through fatal_error(). For example

fd = open(filename, flags); if (fd < 0) plumbing::log().fatal_error("%s", libexplain_open(filename, flags));

Definition at line 197 of file logging.h.

std::string plumbing::progname_get ( void   ) 

The plumbing::progname_get function is used to retrieve the name of the currently executing programme. Used by error messages.

Definition at line 52 of file progname.cc.

void plumbing::progname_set ( const char *  argv0  ) 

The plumbing::progname_set function is used by main() to set the name of the currently executing programme. This is not essential on Linux.

Parameters:
argv0 The name of the executable.

Definition at line 28 of file progname.cc.

const char * plumbing::version ( void   ) 

Definition at line 23 of file version.cc.

void plumbing::version_print ( void   ) 

The libplumbing::version_print function may be used to print information about the ownership and copyright of Plumbing, and its accompanying programs.

Definition at line 25 of file version_print.cc.

Generated on Thu Sep 16 14:51:27 2010 for Plumbing by  doxygen 1.6.3