blob: 7784ad5a221355030df92fc1294985c93f53893f (
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
32
33
|
#ifndef COMPOSER_SONG_H_INCLUDED
#define COMPOSER_SONG_H_INCLUDED
#include "HasMeta.hpp"
#include <map>
#include <string>
#include <m_pd.h>
#include "Track.hpp"
using std::map;
using std::string;
class Song : public HasMeta
{
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
|