2007-09-02 18:48:22 +02:00
|
|
|
/*
|
2008-04-11 06:24:27 +02:00
|
|
|
TRACK.hpp - structural asset used as global track identifier
|
2007-09-02 18:48:22 +02:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2007-09-02 18:48:22 +02:00
|
|
|
|
|
|
|
|
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 ASSET_TRACK_H
|
|
|
|
|
#define ASSET_TRACK_H
|
|
|
|
|
|
|
|
|
|
#include "proc/asset/struct.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-06 04:30:12 +01:00
|
|
|
namespace asset {
|
|
|
|
|
|
|
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
/**
|
2010-03-06 04:30:12 +01:00
|
|
|
* Structural Asset used as a global identifier for placing
|
|
|
|
|
* media objects onto a given track. Not to be confused with the "track-MO",
|
|
|
|
|
* the MObject which becomes part of the high-level-model:
|
|
|
|
|
* In order actually to use a track within an Sequence, we need to attach a
|
2010-02-22 03:52:52 +01:00
|
|
|
* Placement<mobject::session::Track> to the tree-of-tracks of this Sequence.
|
2010-03-06 04:30:12 +01:00
|
|
|
* Thus, we have one global track-identifier (this class here), but maybe
|
|
|
|
|
* several instances (placement of a track-MO) within various Sequences
|
2007-09-02 18:48:22 +02:00
|
|
|
*/
|
|
|
|
|
class Track : public Struct
|
|
|
|
|
{
|
2008-01-07 18:16:03 +01:00
|
|
|
protected:
|
|
|
|
|
Track (const Asset::Ident& idi);
|
2008-02-10 17:23:16 +01:00
|
|
|
friend class StructFactoryImpl;
|
2007-09-02 18:48:22 +02:00
|
|
|
};
|
|
|
|
|
|
2008-01-07 18:16:03 +01:00
|
|
|
|
2008-05-19 08:46:19 +02:00
|
|
|
typedef P<const Track> PTrack;
|
2010-03-06 04:30:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-09-02 18:48:22 +02:00
|
|
|
} // namespace asset
|
|
|
|
|
#endif
|