/*
  midi-stream.hh -- declare Midi_stream

  (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/

#ifndef MIDI_STREAM_HH
#define MIDI_STREAM_HH

#include <cstdio>
using namespace std;

#include "std-string.hh"

class Midi_item;

/// Midi outputfile
struct Midi_stream
{
  Midi_stream (std::string file_name_string);
  ~Midi_stream ();

  Midi_stream &operator << (std::string str);
  Midi_stream &operator << (Midi_item const &midi_c_r);
  Midi_stream &operator << (int i);

  void open ();

  FILE *out_file_;
  std::string file_name_string_;
};

#endif // MIDI_STREAM_HH
