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

tty_minimal.H

Go to the documentation of this file.
00001 /*
00002  * Copyright 1997, Brown University, Providence, RI.
00003  * 
00004  *                         All Rights Reserved
00005  * 
00006  * Permission to use, copy, modify, and distribute this software and its
00007  * documentation for any purpose other than its incorporation into a
00008  * commercial product is hereby granted without fee, provided that the
00009  * above copyright notice appear in all copies and that both that
00010  * copyright notice and this permission notice appear in supporting
00011  * documentation, and that the name of Brown University not be used in
00012  * advertising or publicity pertaining to distribution of the software
00013  * without specific, written prior permission.
00014  * 
00015  * BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
00016  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY
00017  * PARTICULAR PURPOSE.  IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE FOR
00018  * ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00019  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00020  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00021  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00022  */
00023 
00024 /* -------------------------------------------------------------------------
00025                Definition of minimal TTY manager
00026    ------------------------------------------------------------------------- */
00027 
00028 #ifndef TTY_MINIMAL_HAS_BEEN_INCLUDED
00029 #define TTY_MINIMAL_HAS_BEEN_INCLUDED
00030 
00031 #ifdef unix
00032 #include "tty/tty_unix.H"
00033 #elif defined(WIN32)
00034 #include "tty/tty_win.H"
00035 #endif
00036 
00037 
00038 int
00039 install_default_fd_manager()
00040 {
00041 #ifdef unix
00042       FD_MANAGER::set_mgr(new UNIX_MANAGER);
00043 #elif defined(WIN32)
00044       FD_MANAGER::set_mgr(new WIN_MANAGER);
00045 #else
00046       cerr << "Warning - no FD_MANAGER available!!!" << endl;
00047 #endif
00048     return 0;
00049 }
00050 
00051 static int _dflt_fd_mgr = install_default_fd_manager();
00052 
00053 #endif /* TTY_HAS_BEEN_INCLUDED */

Generated on Mon Sep 15 16:25:57 2003 for gluebase by doxygen1.2.18