ARB
Classes | Functions | Variables
arb_handlers.cxx File Reference
#include <arb_handlers.h>
#include <arb_msg.h>
#include "arb_misc.h"
#include <smartptr.h>
#include <unistd.h>
#include <time.h>
#include <arb_algo.h>
Include dependency graph for arb_handlers.cxx:

Go to the source code of this file.

Classes

class  BasicStatus
 

Functions

static void to_arberr (const char *msg)
 
static void to_arbout (const char *msg)
 
static void basic_openstatus (const char *title)
 
static void basic_closestatus ()
 
static void basic_set_title (const char *)
 
static void basic_set_subtitle (const char *stitle)
 
static void basic_set_gauge (double gauge)
 
static bool basic_user_abort ()
 
void ARB_install_handlers (arb_handlers &handlers)
 
void ARB_redirect_handlers_to (FILE *errStream, FILE *outStream)
 

Variables

static FILE * arberr = stderr
 
static FILE * arbout = stdout
 
const int WIDTH = 70
 
const char CHAR = '.'
 
const int MIN_SECONDS_PER_ROW = 10
 
const int MAX_SECONDS_PER_ROW = 3*60
 
const int DEFAULT_HEIGHT = 12
 
const int MAXHEIGHT = 3*DEFAULT_HEIGHT
 
static BasicStatus status
 
static arb_status_implementation ARB_arbout_status
 
static arb_handlers arbout_handlers
 
arb_handlersactive_arb_handlers = &arbout_handlers
 

Function Documentation

static void to_arberr ( const char msg)
static

Definition at line 27 of file arb_handlers.cxx.

References arberr, arbout, and fflush().

static void to_arbout ( const char msg)
static

Definition at line 32 of file arb_handlers.cxx.

References arbout.

static void basic_openstatus ( const char title)
static

Definition at line 202 of file arb_handlers.cxx.

References BasicStatus::open().

static void basic_closestatus ( )
static

Definition at line 203 of file arb_handlers.cxx.

References BasicStatus::close().

static void basic_set_title ( const char )
static

Definition at line 204 of file arb_handlers.cxx.

static void basic_set_subtitle ( const char stitle)
static

Definition at line 205 of file arb_handlers.cxx.

References BasicStatus::set_subtitle().

static void basic_set_gauge ( double  gauge)
static

Definition at line 206 of file arb_handlers.cxx.

References arb_assert, and BasicStatus::set_gauge().

static bool basic_user_abort ( )
static

Definition at line 210 of file arb_handlers.cxx.

void ARB_install_handlers ( arb_handlers handlers)

Definition at line 231 of file arb_handlers.cxx.

void ARB_redirect_handlers_to ( FILE *  errStream,
FILE *  outStream 
)

Definition at line 233 of file arb_handlers.cxx.

References arberr, and arbout.

Referenced by ARB_main(), export_newick(), and main().

Variable Documentation

FILE* arberr = stderr
static

Definition at line 24 of file arb_handlers.cxx.

Referenced by ARB_redirect_handlers_to(), and to_arberr().

FILE* arbout = stdout
static
const int WIDTH = 70
const char CHAR = '.'

Definition at line 40 of file arb_handlers.cxx.

Referenced by shouldReflow().

const int MIN_SECONDS_PER_ROW = 10

Definition at line 42 of file arb_handlers.cxx.

const int MAX_SECONDS_PER_ROW = 3*60

Definition at line 43 of file arb_handlers.cxx.

const int DEFAULT_HEIGHT = 12

Definition at line 45 of file arb_handlers.cxx.

const int MAXHEIGHT = 3*DEFAULT_HEIGHT

Definition at line 46 of file arb_handlers.cxx.

BasicStatus status
static
arb_status_implementation ARB_arbout_status
static
Initial value:
= {
}
static bool basic_user_abort()
static void basic_openstatus(const char *title)
static void basic_set_title(const char *)
static void basic_closestatus()
static void basic_set_subtitle(const char *stitle)
static void basic_set_gauge(double gauge)

Definition at line 212 of file arb_handlers.cxx.

arb_handlers arbout_handlers
static
Initial value:
= {
}
static void to_arbout(const char *msg)
static void to_arberr(const char *msg)
static arb_status_implementation ARB_arbout_status

Definition at line 222 of file arb_handlers.cxx.

arb_handlers* active_arb_handlers = &arbout_handlers