TagLib  2.0.2
modfile.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2011 by Mathias Panzenböck
3  email : grosser.meister.morti@gmx.net
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_MODFILE_H
27 #define TAGLIB_MODFILE_H
28 
29 #include "tfile.h"
30 #include "taglib_export.h"
31 #include "audioproperties.h"
32 #include "modfilebase.h"
33 #include "modtag.h"
34 #include "modproperties.h"
35 
36 namespace TagLib {
37 
39 
44  namespace Mod {
45 
47 
56  {
57  public:
65  File(FileName file, bool readProperties = true,
66  AudioProperties::ReadStyle propertiesStyle =
68 
79  File(IOStream *stream, bool readProperties = true,
80  AudioProperties::ReadStyle propertiesStyle =
82 
86  ~File() override;
87 
88  File(const File &) = delete;
89  File &operator=(const File &) = delete;
90 
91  Mod::Tag *tag() const override;
92 
97  PropertyMap properties() const override;
98 
103  PropertyMap setProperties(const PropertyMap &) override;
108  Mod::Properties *audioProperties() const override;
109 
116  bool save() override;
117 
118  private:
119  void read(bool readProperties);
120 
121  class FilePrivate;
123  std::unique_ptr<FilePrivate> d;
124  };
125  } // namespace Mod
126 } // namespace TagLib
127 #endif
An implementation of audio property reading for Mod.
Definition: modproperties.h:34
A map for format-independent <key,values> tag representations.
Definition: tpropertymap.h:122
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:64
Base class for module files.
Definition: modfilebase.h:37
Read more of the file and make better values guesses.
Definition: audioproperties.h:60
const char * FileName
Definition: tiostream.h:59
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
ReadStyle
Definition: audioproperties.h:56
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
An implementation of TagLib::File with Mod specific methods.
Definition: modfile.h:55
A module file tag implementation.
Definition: modtag.h:48
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41