lxconnectionnull.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 
00011 #ifndef _GEDDEI_LXCONNECTIONNULL_H
00012 #define _GEDDEI_LXCONNECTIONNULL_H
00013 
00014 #ifdef __GEDDEI_BUILD
00015 #include "signaltyperef.h"
00016 #include "lxconnection.h"
00017 #else
00018 #include <geddei/signaltyperef.h>
00019 #include <geddei/lxconnection.h>
00020 #endif
00021 using namespace Geddei;
00022 
00023 namespace Geddei
00024 {
00025 
00034 class LxConnectionNull: public LxConnection
00035 {
00036  virtual const SignalTypeRef type() { return SignalTypeRef(theType); }
00037  virtual void push(const BufferData &) {}
00038  virtual void pushPlunger() {}
00039  virtual void startPlungers() {}
00040  virtual void plungerSent() {}
00041  virtual void noMorePlungers() {}
00042  virtual const uint maximumScratchElements(const uint) { return Undefined; }
00043  virtual const uint maximumScratchElementsEver() { return Undefined; }
00044  virtual BufferData makeScratchElements(const uint, bool = false) { return BufferData::fake(); }
00045  virtual void setType(const SignalType *type) { theType = type->copy(); }
00046  virtual void resetType() { delete theType; theType = 0L; }
00047  virtual const bool waitUntilReady() { return true; }
00048  virtual void sourceStopping() {}
00049  virtual void sourceStopped() {}
00050  virtual void reset() {}
00051  virtual void enforceMinimum(const uint) {}
00052 
00053 public:
00054  LxConnectionNull(Source *source, const uint sourceIndex) : LxConnection(source, sourceIndex) {}
00055 };
00056 
00057 };
00058 
00059 #endif

Generated on Thu Jul 13 06:56:33 2006 for Exscalibar by  doxygen 1.4.7