oggfile.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library 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 *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_OGGFILE_H
#define TAGLIB_OGGFILE_H
#include "tfile.h"
#include "tbytevectorlist.h"
#include "taglib_export.h"
namespace TagLib {
namespace Ogg {
class PageHeader;
class TAGLIB_EXPORT File : public TagLib::File
{
public:
~File() override;
File(const File &) = delete;
File &operator=(const File &) = delete;
ByteVector packet(unsigned int i);
void setPacket(unsigned int i, const ByteVector &p);
const PageHeader *firstPageHeader();
const PageHeader *lastPageHeader();
bool save() override;
protected:
File(FileName file);
File(IOStream *stream);
private:
bool readPages(unsigned int i);
void writePacket(unsigned int i, const ByteVector &packet);
class FilePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<FilePrivate> d;
};
} // namespace Ogg
} // namespace TagLib
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::File
A file class with some useful methods for tag manipulation.
Definition tfile.h:51
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition tiostream.h:65
TagLib::Ogg::File::lastPageHeader
const PageHeader * lastPageHeader()
TagLib::Ogg::File::~File
~File() override
TagLib::Ogg::File::operator=
File & operator=(const File &)=delete
TagLib::Ogg::File::File
File(const File &)=delete
TagLib::Ogg::File::packet
ByteVector packet(unsigned int i)
TagLib::Ogg::File::firstPageHeader
const PageHeader * firstPageHeader()
TagLib::Ogg::File::File
File(IOStream *stream)
TagLib::Ogg::File::setPacket
void setPacket(unsigned int i, const ByteVector &p)
TagLib::Ogg::File::save
bool save() override
TagLib::Ogg::File::File
File(FileName file)
TagLib::Ogg::PageHeader
An implementation of the page headers associated with each Ogg::Page.
Definition oggpageheader.h:49
TagLib::Ogg
A namespace for the classes used by Ogg-based metadata files.
Definition flacfile.h:41
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
TagLib::FileName
const char * FileName
Definition tiostream.h:59
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55
tbytevectorlist.h
tfile.h