1/**************************************************************************** 2** libmatroska : parse Matroska files, see http://www.matroska.org/ 3** 4** <file/class MATROSKA_DLL_API description> 5** 6** Copyright (C) 2002-2004 Steve Lhomme. All rights reserved. 7** 8** This file is part of libmatroska. 9** 10** This library is free software; you can redistribute it and/or 11** modify it under the terms of the GNU Lesser General Public 12** License as published by the Free Software Foundation; either 13** version 2.1 of the License, or (at your option) any later version. 14** 15** This library is distributed in the hope that it will be useful, 16** but WITHOUT ANY WARRANTY; without even the implied warranty of 17** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18** Lesser General Public License for more details. 19** 20** You should have received a copy of the GNU Lesser General Public 21** License along with this library; if not, write to the Free Software 22** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23** 24** See http://www.matroska.org/license/lgpl/ for LGPL licensing information.** 25** Contact license@matroska.org if any conditions of this licensing are 26** not clear to you. 27** 28**********************************************************************/ 29 30/*! 31 \file 32 \version \$Id: KaxClusterData.h,v 1.9 2004/04/21 19:50:10 mosu Exp $ 33 \author Steve Lhomme <robux4 @ users.sf.net> 34*/ 35#ifndef LIBMATROSKA_CLUSTER_DATA_H 36#define LIBMATROSKA_CLUSTER_DATA_H 37 38#include "matroska/KaxTypes.h" 39#include "ebml/EbmlMaster.h" 40#include "ebml/EbmlUInteger.h" 41 42using namespace LIBEBML_NAMESPACE; 43 44START_LIBMATROSKA_NAMESPACE 45 46class MATROSKA_DLL_API KaxClusterTimecode : public EbmlUInteger { 47 public: 48 KaxClusterTimecode() {} 49 KaxClusterTimecode(const KaxClusterTimecode & ElementToClone) :EbmlUInteger(ElementToClone) {} 50 static EbmlElement & Create() {return *(new KaxClusterTimecode);} 51 const EbmlCallbacks & Generic() const {return ClassInfos;} 52 static const EbmlCallbacks ClassInfos; 53 operator const EbmlId &() const {return ClassInfos.GlobalId;} 54 EbmlElement * Clone() const {return new KaxClusterTimecode(*this);} 55}; 56 57class MATROSKA_DLL_API KaxClusterSilentTracks : public EbmlMaster { 58 public: 59 KaxClusterSilentTracks(); 60 KaxClusterSilentTracks(const KaxClusterSilentTracks & ElementToClone) :EbmlMaster(ElementToClone) {} 61 static EbmlElement & Create() {return *(new KaxClusterSilentTracks);} 62 const EbmlCallbacks & Generic() const {return ClassInfos;} 63 static const EbmlCallbacks ClassInfos; 64 operator const EbmlId &() const {return ClassInfos.GlobalId;} 65 EbmlElement * Clone() const {return new KaxClusterSilentTracks(*this);} 66}; 67 68class MATROSKA_DLL_API KaxClusterSilentTrackNumber : public EbmlUInteger { 69 public: 70 KaxClusterSilentTrackNumber() {} 71 KaxClusterSilentTrackNumber(const KaxClusterSilentTrackNumber & ElementToClone) :EbmlUInteger(ElementToClone) {} 72 static EbmlElement & Create() {return *(new KaxClusterSilentTrackNumber);} 73 const EbmlCallbacks & Generic() const {return ClassInfos;} 74 static const EbmlCallbacks ClassInfos; 75 operator const EbmlId &() const {return ClassInfos.GlobalId;} 76 EbmlElement * Clone() const {return new KaxClusterSilentTrackNumber(*this);} 77}; 78 79class MATROSKA_DLL_API KaxClusterPosition : public EbmlUInteger { 80 public: 81 KaxClusterPosition() {} 82 KaxClusterPosition(const KaxClusterPosition & ElementToClone) :EbmlUInteger(ElementToClone) {} 83 static EbmlElement & Create() {return *(new KaxClusterPosition);} 84 const EbmlCallbacks & Generic() const {return ClassInfos;} 85 static const EbmlCallbacks ClassInfos; 86 operator const EbmlId &() const {return ClassInfos.GlobalId;} 87 EbmlElement * Clone() const {return new KaxClusterPosition(*this);} 88}; 89 90class MATROSKA_DLL_API KaxClusterPrevSize : public EbmlUInteger { 91 public: 92 KaxClusterPrevSize() {} 93 KaxClusterPrevSize(const KaxClusterPrevSize & ElementToClone) :EbmlUInteger(ElementToClone) {} 94 static EbmlElement & Create() {return *(new KaxClusterPrevSize);} 95 const EbmlCallbacks & Generic() const {return ClassInfos;} 96 static const EbmlCallbacks ClassInfos; 97 operator const EbmlId &() const {return ClassInfos.GlobalId;} 98 EbmlElement * Clone() const {return new KaxClusterPrevSize(*this);} 99}; 100 101END_LIBMATROSKA_NAMESPACE 102 103#endif // LIBMATROSKA_CLUSTER_DATA_H 104