00001 /*-------------------------------------------------------------------- 00002 * 00003 * (C) Copyright Koninklijke Philips Electronics NV 2006. 00004 * All rights reserved. This software is licensed under the terms of 00005 * version 2.1 of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation. For licensing and warranty 00007 * information, see the file COPYING in the main directory. 00008 * 00009 *------------------------------------------------------------------*/ 00010 00011 #ifndef _API_RTE_H 00012 #define _API_RTE_H 00013 00014 #include <iostream> 00015 00016 #include "baseRte.h" 00017 00018 class RTE { 00019 00020 private: 00021 Rte* r; 00022 00023 public: 00024 RTE () { r = ::newRte();}; 00025 ~RTE () { delete r;}; 00026 00027 void start (ProcessNetwork& n) {r->start(n);}; 00028 00029 void setOutStream(std::ostream& o) {r->setCout(o);}; 00030 void setErrorStream(std::ostream& e) {r->setCerr(e);}; 00031 std::ostream& getOutStream() {return r->cout();}; 00032 std::ostream& getErrorStream() {return r->cerr();}; 00033 00034 }; 00035 00036 00037 #endif