localsession.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Gav Wood                                        *
00003  *   gav@cs.york.ac.uk                                                     *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  ***************************************************************************/
00010 #ifndef RGEDDEISIMPLEFORWARDER_H
00011 #define RGEDDEISIMPLEFORWARDER_H
00012 
00013 #include <qstring.h>
00014 
00015 #ifdef __GEDDEI_BUILD
00016 #include "processorforwarder.h"
00017 #include "processorgroup.h"
00018 #else
00019 #include <geddei/processorforwarder.h>
00020 #include <geddei/processorgroup.h>
00021 #endif
00022 using namespace Geddei;
00023 
00024 namespace rGeddei
00025 {
00026 
00027 class LocalProcessor;
00028 class RemoteProcessor;
00029 class LocalDomProcessor;
00030 class RemoteDomProcessor;
00031 
00054 class LocalSession: private ProcessorForwarder, private ProcessorGroup
00055 {
00056  QString theHost;
00057  uint thePort;
00058 
00059  friend class LocalProcessor;
00060  friend class RemoteProcessor;
00061  friend class LocalDomProcessor;
00062  friend class RemoteDomProcessor;
00063 
00064  virtual Processor *lookup(uint /*key*/, const QString &name)
00065  {
00066   return &(this->ProcessorGroup::operator[](name));
00067  }
00068 
00069 public:
00082  LocalSession(const QString &host, uint port = GEDDEI_PORT - 1);
00083 };
00084 
00085 };
00086 
00087 #endif

Generated on Fri Nov 10 21:58:26 2006 for Exscalibar by  doxygen 1.5.1