blob: 0884388ef26baeb6c3f143781f24e642a90cb2c2 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#ifndef __MIDILLO_MTRK_H
#define __MIDILLO_MTRK_H
#include <istream>
#include <ostream>
#include <list>
#include <midillo/chunk.h>
#include <midillo/event.h>
/**
* @file
* @brief MTrk -- track chunk container
*/
namespace midillo {
using std::istream;
using std::ostream;
/**
* MTrk track chunk container class
*/
class MTrk_t : public chunk_t {
public:
/**
* MIDI events contained in the track
*/
events_t events;
/**
* Load MTrk chunk from the stream
* @param s input stream
*/
void load(istream& s);
/**
* Save MTrk chunk to the stream
* @param s output stream
*/
void save(ostream& s) const;
/**
* Dump textual representation of MTrk chunk to stream
* @param s output stream
*/
void dump(ostream& s) const;
};
inline ostream& operator<<(ostream& s,const MTrk_t& mtrk) {
mtrk.dump(s); return s;
}
}
#endif /* __MIDILLO_MTRK_H */
|