connection.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_CONNECTION_H
00012 #define _GEDDEI_CONNECTION_H
00013 
00014 #ifdef __GEDDEI_BUILD
00015 #include "signaltype.h"
00016 #include "signaltyperef.h"
00017 #else
00018 #include <geddei/signaltype.h>
00019 #include <geddei/signaltyperef.h>
00020 #endif
00021 using namespace Geddei;
00022 
00023 namespace Geddei
00024 {
00025 
00034 class Connection
00035 {
00036 protected:
00037  SignalType *theType;
00038 
00039 public:
00045  virtual const SignalTypeRef type() = 0;
00046 
00058  virtual void enforceMinimum(const uint elements) = 0;
00059 
00063  Connection();
00064 
00068  virtual ~Connection();
00069 };
00070 
00071 }
00072 
00073 #endif

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