//------------------------------------------------------------------------- // Filename: mididevice.cc // Version: $Id: mididevice.cc,v 1.1.2.2 1999/06/09 10:14:04 erik Exp $ // Copyright: Copyright (C) 1999, Erik Mouw (J.A.K.Mouw@its.tudelft.nl) // Author: Erik Mouw // Description: MIDI device virtual base class // Created at: Sat May 22 19:21:26 1999 // Modified by: Erik Mouw // Modified at: Wed May 26 11:27:40 1999 //------------------------------------------------------------------------- // // 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #ident "$Id: mididevice.cc,v 1.1.2.2 1999/06/09 10:14:04 erik Exp $" #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifdef MUSICA_DEBUG # include #endif #include #if STDC_HEADERS # include # include #else # ifdef HAVE_MALLOC_H # include # else # ifndef NULL # define NULL ((void *)0) # endif # endif #endif #include "mididevice.hh" #ifndef HAVE_STRDUP extern "C" char *strdup(const char *s); #endif static const char *deviceType = "midi-device"; midiDevice::midiDevice(const char *theName) { #ifdef MUSICA_DEBUG cerr<< __PRETTY_FUNCTION__<< endl; #endif assert(theName != 0); name = strdup(theName); type = deviceType; } midiDevice::~midiDevice(void) { #ifdef MUSICA_DEBUG cerr<< __PRETTY_FUNCTION__<< endl; #endif free(name); }