3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / media / plugins / matroska / libebml / ebml / EbmlVoid.h
blob125c65aea3656889ce5f7972de9f3f2666ff87bc
1 /****************************************************************************
2 ** libebml : parse EBML files, see http://embl.sourceforge.net/
3 **
4 ** <file/class description>
5 **
6 ** Copyright (C) 2002-2005 Steve Lhomme. All rights reserved.
7 **
8 ** This file is part of libebml.
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
24 ** See http://www.matroska.org/license/lgpl/ for LGPL licensing information.
26 ** Contact license@matroska.org if any conditions of this licensing are
27 ** not clear to you.
29 **********************************************************************/
31 /*!
32 \file
33 \version \$Id: EbmlVoid.h 1079 2005-03-03 13:18:14Z robux4 $
34 \author Steve Lhomme <robux4 @ users.sf.net>
36 #ifndef LIBEBML_VOID_H
37 #define LIBEBML_VOID_H
39 #include "EbmlTypes.h"
40 #include "EbmlBinary.h"
42 START_LIBEBML_NAMESPACE
44 class EBML_DLL_API EbmlVoid : public EbmlBinary {
45 public:
46 EbmlVoid();
47 EbmlVoid(const EbmlVoid & ElementToClone) :EbmlBinary(ElementToClone){}
48 static EbmlElement & Create() {return *(new EbmlVoid);}
49 const EbmlCallbacks & Generic() const {return ClassInfos;}
50 bool ValidateSize() const {return true;} // any void element is accepted
51 static const EbmlCallbacks ClassInfos;
53 operator const EbmlId &() const {return ClassInfos.GlobalId;}
54 bool IsYourId(const EbmlId & TestId) const;
56 /*!
57 \brief Set the size of the data (not the complete size of the element)
59 void SetSize(uint64 aSize) {Size = aSize;}
61 /*!
62 \note overwrite to write fake data
64 uint32 RenderData(IOCallback & output, bool bForceRender, bool bKeepIntact = false);
66 /*!
67 \brief Replace the void element content (written) with this one
69 uint64 ReplaceWith(EbmlElement & EltToReplaceWith, IOCallback & output, bool ComeBackAfterward = true, bool bKeepIntact = false);
71 /*!
72 \brief Void the content of an element
74 uint64 Overwrite(const EbmlElement & EltToVoid, IOCallback & output, bool ComeBackAfterward = true, bool bKeepIntact = false);
76 EbmlElement * Clone() const {return new EbmlVoid(*this);}
79 END_LIBEBML_NAMESPACE
81 #endif // LIBEBML_VOID_H