summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/midi_byte_array.h
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2008-06-02 05:02:28 +0000
committerDoug McLain <doug@nostar.net>2008-06-02 05:02:28 +0000
commit9c0d7d72d70082a54f823cd44c0ccda5da64bb6f (patch)
tree96ec400b83b8c1c06852b1936f684b5fbcd47a79 /libs/surfaces/mackie/midi_byte_array.h
parent2f3f697bb8e185eb43c2c50b4eefc2bcb937f269 (diff)
remove empty sigc++2 directory
git-svn-id: svn://localhost/ardour2/branches/3.0@3432 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/midi_byte_array.h')
-rw-r--r--libs/surfaces/mackie/midi_byte_array.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/libs/surfaces/mackie/midi_byte_array.h b/libs/surfaces/mackie/midi_byte_array.h
deleted file mode 100644
index e77ece1b88..0000000000
--- a/libs/surfaces/mackie/midi_byte_array.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- Copyright (C) 2006,2007 John Anderson
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-#ifndef midi_byte_array_h
-#define midi_byte_array_h
-
-#include <iostream>
-#include <vector>
-
-#include <boost/shared_array.hpp>
-
-//#include <midi++/types.h>
-namespace MIDI {
- typedef unsigned char byte;
-}
-
-/**
- To make building arrays of bytes easier. Thusly:
-
- MidiByteArray mba;
- mba << 0xf0 << 0x00 << 0xf7;
-
- MidiByteArray buf;
- buf << mba;
-
- MidiByteArray direct( 3, 0xf0, 0x00, 0xf7 );
-
- cout << mba << endl;
- cout << buf << endl;
- cout << direct << endl;
-
- will all result in "f0 00 f7" being output to stdout
-*/
-class MidiByteArray : public std::vector<MIDI::byte>
-{
-public:
- MidiByteArray() : std::vector<MIDI::byte>() {}
-
- MidiByteArray( size_t count, MIDI::byte array[] );
-
- /**
- Accepts a preceding count, and then a list of bytes
- */
- MidiByteArray( size_t count, MIDI::byte first, ... );
-
- /// return smart pointer to a copy of the bytes
- boost::shared_array<MIDI::byte> bytes() const;
-
- /// copy the given number of bytes from the given array
- void copy( size_t count, MIDI::byte arr[] );
-};
-
-/// append the given byte to the end of the array
-MidiByteArray & operator << ( MidiByteArray & mba, const MIDI::byte & b );
-
-/// append the given array to the end of this array
-MidiByteArray & operator << ( MidiByteArray & mba, const MidiByteArray & barr );
-
-/// output the bytes as hex to the given stream
-std::ostream & operator << ( std::ostream & os, const MidiByteArray & mba );
-
-#endif