00001 /*************************************************************************** 00002 * Copyright (C) 2006 by Gerd v. Egidy * 00003 * gve@intra2net.com * 00004 * * 00005 * This library is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU Lesser General Public License version * 00007 * 2.1 as published by the Free Software Foundation. * 00008 * * 00009 * This library is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU Lesser General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU Lesser General Public * 00015 * License along with this program; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00018 ***************************************************************************/ 00019 #ifndef __LIBT2N_CLIENT 00020 #define __LIBT2N_CLIENT 00021 00022 #include <string> 00023 #include <iostream> 00024 00025 #include "connection.hxx" 00026 #include "types.hxx" 00027 00028 namespace libt2n 00029 { 00030 00033 class client_connection : public connection 00034 { 00035 private: 00036 log_level_values log_level; 00037 std::ostream *logstream; 00038 00039 public: 00040 client_connection(); 00041 00042 void set_logging(std::ostream *_logstream, log_level_values _log_level); 00043 00044 std::ostream* get_logstream(log_level_values level); 00045 }; 00046 00047 } 00048 00049 #endif
1.5.6