FFmpegfs Fuse Multi Media Filesystem 2.14
vcdinfo.h
Go to the documentation of this file.
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 3 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
15 */
16
28#ifndef VCDINFO_H
29#define VCDINFO_H
30
31#pragma once
32
33#include "vcdchapter.h"
34
39{
40public:
44 explicit VcdInfo();
48 virtual ~VcdInfo() = default;
49
53 void clear();
59 int load_file(const std::string & path);
60
61 const time_t & get_file_date() const;
62 const std::string & get_id() const;
63 VCDTYPE get_type() const;
64 std::string get_type_str() const;
66 std::string get_profile_tag_str() const;
67 const std::string & get_album_id() const;
68 int get_number_of_cds() const;
69 int get_cd_number() const;
71protected:
72 // Common data
73 std::string m_disk_path;
74 time_t m_file_date;
75 std::string m_id;
78 // INFO.XXX data
79 std::string m_album_id;
82};
83
84#endif // VCDINFO_H
The VcdInfo class.
Definition: vcdinfo.h:39
int load_file(const std::string &path)
Load VCD from path.
Definition: vcdinfo.cc:127
VCDPROFILETAG m_profile_tag
System profile tag.
Definition: vcdinfo.h:77
std::string get_type_str() const
Get disk type as string.
Definition: vcdinfo.cc:204
virtual ~VcdInfo()=default
Destruct VcdInfo object.
VcdInfo()
Construct VcdInfo object.
Definition: vcdinfo.cc:110
const std::string & get_id() const
Get disk ID.
Definition: vcdinfo.cc:194
int m_number_of_cds
Number of CDs in set.
Definition: vcdinfo.h:80
VCDPROFILETAG get_profile_tag() const
Get disk profile tag.
Definition: vcdinfo.cc:209
VCDTYPE get_type() const
Get disk type.
Definition: vcdinfo.cc:199
std::string m_id
ID of this CD.
Definition: vcdinfo.h:75
std::string m_album_id
Album ID.
Definition: vcdinfo.h:79
int m_cd_number
Number of this CD in set.
Definition: vcdinfo.h:81
void clear()
Reset this object.
Definition: vcdinfo.cc:115
VCDTYPE m_type
Type of CD.
Definition: vcdinfo.h:76
const time_t & get_file_date() const
Date of disk (of INFO.VCD or SVD)
Definition: vcdinfo.cc:189
int get_cd_number() const
Get CD number in set.
Definition: vcdinfo.cc:229
time_t m_file_date
File date.
Definition: vcdinfo.h:74
const std::string & get_album_id() const
Get album ID.
Definition: vcdinfo.cc:219
int get_number_of_cds() const
Get number of CDs in set.
Definition: vcdinfo.cc:224
std::string m_disk_path
Path to disk.
Definition: vcdinfo.h:73
std::string get_profile_tag_str() const
Get disk profile tag as string.
Definition: vcdinfo.cc:214
S/VCD VcdChapter class.
VCDTYPE
Definition: vcdchapter.h:40
VCDPROFILETAG
Definition: vcdchapter.h:50