Blame trackdb/SubTrack.cc
|
Packit |
bf707c |
/* cdrdao - write audio CD-Rs in disc-at-once mode
|
|
Packit |
bf707c |
*
|
|
Packit |
bf707c |
* Copyright (C) 1998-2001 Andreas Mueller <andreas@daneb.de>
|
|
Packit |
bf707c |
*
|
|
Packit |
bf707c |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
bf707c |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
bf707c |
* the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
bf707c |
* (at your option) any later version.
|
|
Packit |
bf707c |
*
|
|
Packit |
bf707c |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
bf707c |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
bf707c |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
bf707c |
* GNU General Public License for more details.
|
|
Packit |
bf707c |
*
|
|
Packit |
bf707c |
* You should have received a copy of the GNU General Public License
|
|
Packit |
bf707c |
* along with this program; if not, write to the Free Software
|
|
Packit |
bf707c |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Packit |
bf707c |
*/
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
#include <config.h>
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
#include <stdio.h>
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
#include "SubTrack.h"
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
SubTrack::SubTrack(Type t, unsigned long start, const TrackData &data)
|
|
Packit |
bf707c |
: TrackData(data)
|
|
Packit |
bf707c |
{
|
|
Packit |
bf707c |
type_ = t;
|
|
Packit |
bf707c |
start_ = start;
|
|
Packit |
bf707c |
next_ = pred_ = NULL;
|
|
Packit |
bf707c |
}
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
SubTrack::SubTrack(Type t, const TrackData &data)
|
|
Packit |
bf707c |
: TrackData(data)
|
|
Packit |
bf707c |
{
|
|
Packit |
bf707c |
type_ = t;
|
|
Packit |
bf707c |
start_ = 0;
|
|
Packit |
bf707c |
next_ = pred_ = NULL;
|
|
Packit |
bf707c |
}
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
SubTrack::SubTrack(const SubTrack &obj) : TrackData(obj)
|
|
Packit |
bf707c |
{
|
|
Packit |
bf707c |
type_ = obj.type_;
|
|
Packit |
bf707c |
start_ = obj.start_;
|
|
Packit |
bf707c |
next_ = pred_ = NULL;
|
|
Packit |
bf707c |
}
|
|
Packit |
bf707c |
|
|
Packit |
bf707c |
SubTrack::~SubTrack()
|
|
Packit |
bf707c |
{
|
|
Packit |
bf707c |
next_ = pred_ = NULL;
|
|
Packit |
bf707c |
}
|