TagLib API Documentation
asffile.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2005-2007 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4 **************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef TAGLIB_ASFFILE_H
27#define TAGLIB_ASFFILE_H
28
29#include "tfile.h"
30#include "taglib_export.h"
31#include "tag.h"
32#include "asfproperties.h"
33#include "asftag.h"
34
35namespace TagLib {
37 namespace ASF {
39
47 {
48 public:
49
57 File(FileName file, bool readProperties = true,
59
70 File(IOStream *stream, bool readProperties = true,
72
76 ~File() override;
77
78 File(const File &) = delete;
79 File &operator=(const File &) = delete;
80
91 Tag *tag() const override;
92
96 PropertyMap properties() const override;
97
102 void removeUnsupportedProperties(const StringList &properties) override;
103
108
112 Properties *audioProperties() const override;
113
119 bool save() override;
120
128 static bool isSupported(IOStream *stream);
129
130 private:
131 void read();
132
133 class FilePrivate;
135 std::unique_ptr<FilePrivate> d;
136 };
137 } // namespace ASF
138} // namespace TagLib
139
140#endif
An implementation of TagLib::File with ASF specific methods.
Definition: asffile.h:47
~File() override
static bool isSupported(IOStream *stream)
File(const File &)=delete
File(IOStream *stream, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
PropertyMap setProperties(const PropertyMap &) override
bool save() override
Tag * tag() const override
Properties * audioProperties() const override
PropertyMap properties() const override
void removeUnsupportedProperties(const StringList &properties) override
File(FileName file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
File & operator=(const File &)=delete
An implementation of ASF audio properties.
Definition: asfproperties.h:37
An implementation of ASF (WMA) tags.
Definition: asftag.h:44
ReadStyle
Definition: audioproperties.h:56
@ Average
Read more of the file and make better values guesses.
Definition: audioproperties.h:60
A file class with some useful methods for tag manipulation.
Definition: tfile.h:51
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:65
A map for format-independent <key,values> tag representations.
Definition: tpropertymap.h:123
A list of strings.
Definition: tstringlist.h:44
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
const char * FileName
Definition: tiostream.h:59
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55