value.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 _SIGNALTYPES_VALUE_H
00011 #define _SIGNALTYPES_VALUE_H
00012 
00013 #ifdef __GEDDEI_BUILD
00014 #include "signaltype.h"
00015 #else
00016 #include <geddei/signaltype.h>
00017 #endif
00018 using namespace Geddei;
00019 
00020 namespace SignalTypes
00021 {
00022 
00032 class Value: public SignalType
00033 {
00034  virtual const uint id() const { return 0; }
00035  virtual SignalType *copyBE() const { return new Value(theFrequency); }
00036 
00037 public:
00047  Value(const float frequency = 0) : SignalType(1, frequency) {}
00048 };
00049 
00050 };
00051 
00052 #endif

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