Source: masterEvent.h


Annotated List
Files
Globals
Hierarchy
Index
#ifndef _MASTEREVENT_H_
#define _MASTEREVENT_H_

#include "event.h"

/** This event contains information on tempo and meter of a part */

class MasterEvent : public Event
{
 private:
  int _tempo;
  int _meter0;
  int _meter1;

 public:
  MasterEvent();
  MasterEvent(const MasterEvent&);
  MasterEvent(Position pos, int tempo);
  MasterEvent(Position pos, int met0, int met1);
  MasterEvent(Position pos, int tempo, int met0, int met1);

  // virtual bool operator==(Element*);

  int tempo() const { return _tempo; }
  int meter0() const { return _meter0; }
  int meter1() const { return _meter1; }
  void setTempo(int);
  void setMeter0(int);
  void setMeter1(int);

  virtual ostream & print(int,ostream&) const;
  virtual void flush(const char*) const;
  virtual Element * copy() const;

  static Element * load(char*,ifstream*&,Element*);
};


#endif

Generated by: wuerthne on clouseau on Fri Sep 21 19:20:46 2001, using kdoc 2.0a53.