aboutsummaryrefslogtreecommitdiff
path: root/composer/Song.hpp
blob: ead728593d9a5c7d76ba75c1284a463a031bbe7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COMPOSER_SONG_H_INCLUDED
#define COMPOSER_SONG_H_INCLUDED

#include <map>
#include <string>

#include <m_pd.h>

#include "Track.hpp"

using std::map;
using std::string;

class Song
{
private:
	static map<string,Song *> byname;
public:
	static Song *byName(string songName);
private:
	string name;
	map<string,Track *> tracks;
protected:
	Song(string songName);
public:
	void print();
	Track *getTrackByName(string trackName);
	inline const string &getName() {return name;}
};

#endif // COMPOSER_SONG_H_INCLUDED