seqdur.h
1 /***************************************************************************
2  seqdur.h - description
3  -------------------
4  begin : Wed Aug 14 2002
5  copyright : (C) 2000-2015 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 
19 
20 #ifndef SEQDUR_H
21 #define SEQDUR_H
22 
23 #include <odinseq/seqtree.h>
24 
38 class SeqDur : public virtual SeqTreeObj {
39 
40 
41  public:
42 
46  SeqDur(const STD_string& object_label, float duration);
47 
48 
52  SeqDur(const STD_string& object_label="unnamedSeqDur");
53 
54 
58  SeqDur(const SeqDur& sd);
59 
60 
64  SeqDur& set_duration(float duration);
65 
66 
67  // implementing virtual functions of SeqTreeObj
68  double get_duration() const;
69 
70 
74  SeqDur& operator = (const SeqDur& sd);
75 
76 
77  private:
78  double dur;
79 
80 };
81 
82 
86 #endif
SeqDur & set_duration(float duration)
Definition: seqdur.h:38
SeqDur & operator=(const SeqDur &sd)
double get_duration() const
SeqDur(const STD_string &object_label, float duration)