00001 /*************************************************************************** 00002 seqdur.h - description 00003 ------------------- 00004 begin : Wed Aug 14 2002 00005 copyright : (C) 2001 by Thies H. Jochimsen 00006 email : jochimse@cns.mpg.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 00019 00020 #ifndef SEQDUR_H 00021 #define SEQDUR_H 00022 00023 #include <odinseq/seqtree.h> 00024 00038 class SeqDur : public virtual SeqTreeObj { 00039 00040 00041 public: 00042 00046 SeqDur(const STD_string& object_label, float duration); 00047 00048 00052 SeqDur(const STD_string& object_label="unnamedSeqDur"); 00053 00054 00058 SeqDur(const SeqDur& sd); 00059 00060 00064 SeqDur& set_duration(float duration); 00065 00066 00067 // implementing virtual functions of SeqTreeObj 00068 double get_duration() const; 00069 00070 00074 SeqDur& operator = (const SeqDur& sd); 00075 00076 00077 private: 00078 double dur; 00079 00080 }; 00081 00082 00086 #endif
1.5.6