00001 /* ======================================================================== 00002 * Copyright (C) 2004 Rikshospitalet University Hospital 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 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 GNU 00012 * 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 library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * For further information please contact Eigil Samset under 00019 * <eigil.samset@klinmed.uio.no> or write to Eigil Samset, 00020 * The Interventional Centre, Rikshospitalet, 0027 Oslo, Norway. 00021 * ======================================================================== 00022 * PROJECT: OpenTracker 00023 * ======================================================================== */ 00030 /* ======================================================================= */ 00031 00032 #ifndef _MEDSCANSOURCE_H 00033 #define _MEDSCANSOURCE_H 00034 00035 #include <OpenTracker/OpenTracker.h> 00036 #include <OpenTracker/dllinclude.h> 00037 #include "mrdebug.h" 00038 00039 namespace ot { 00040 00047 class OPENTRACKER_API MedScanSource : public Node 00048 { 00049 // Members 00050 public: 00052 int number; 00054 Event event; 00056 int changed; 00057 00058 int server_fd; 00059 std::string service; 00060 std::string host; 00061 std::string port; 00062 std::string service_options; 00063 00064 // Methods 00065 public: 00068 MedScanSource( int number_) : Node(), number( number_ ), changed( 1 ) 00069 { 00070 server_fd=-1; 00071 }; 00072 00076 int isEventGenerator() 00077 { 00078 return 1; 00079 }; 00080 00081 private: 00082 00083 00084 }; 00085 } 00086 #endif
1.4.6