FFmpegfs Fuse Multi Media Filesystem 2.16
Public Member Functions | Protected Attributes | List of all members
VcdInfo Class Reference

The VcdInfo class. More...

#include <vcdinfo.h>

Public Member Functions

 VcdInfo ()
 Construct VcdInfo object. More...
 
virtual ~VcdInfo ()=default
 Destruct VcdInfo object.
 
void clear ()
 Reset this object. More...
 
int load_file (const std::string &path)
 Load VCD from path. More...
 
const time_t & get_file_date () const
 Date of disk (of INFO.VCD or SVD) More...
 
const std::string & get_id () const
 Get disk ID. More...
 
VCDTYPE get_type () const
 Get disk type. More...
 
std::string get_type_str () const
 Get disk type as string. More...
 
VCDPROFILETAG get_profile_tag () const
 Get disk profile tag. More...
 
std::string get_profile_tag_str () const
 Get disk profile tag as string. More...
 
const std::string & get_album_id () const
 Get album ID. More...
 
int get_number_of_cds () const
 Get number of CDs in set. More...
 
int get_cd_number () const
 Get CD number in set. More...
 

Protected Attributes

std::string m_disk_path
 Path to disk. More...
 
time_t m_file_date
 File date. More...
 
std::string m_id
 ID of this CD. More...
 
VCDTYPE m_type
 Type of CD. More...
 
VCDPROFILETAG m_profile_tag
 System profile tag. More...
 
std::string m_album_id
 Album ID. More...
 
int m_number_of_cds
 Number of CDs in set. More...
 
int m_cd_number
 Number of this CD in set. More...
 

Detailed Description

The VcdInfo class.

Definition at line 38 of file vcdinfo.h.

Constructor & Destructor Documentation

◆ VcdInfo()

VcdInfo::VcdInfo ( )
explicit

Construct VcdInfo object.

Definition at line 112 of file vcdinfo.cc.

References clear().

Member Function Documentation

◆ clear()

void VcdInfo::clear ( )

Reset this object.

Definition at line 117 of file vcdinfo.cc.

References m_album_id, m_cd_number, m_disk_path, m_file_date, m_id, m_number_of_cds, m_profile_tag, m_type, and UNKNOWN.

Referenced by load_file(), and VcdInfo().

◆ get_album_id()

const std::string & VcdInfo::get_album_id ( ) const

Get album ID.

Definition at line 220 of file vcdinfo.cc.

References m_album_id.

◆ get_cd_number()

int VcdInfo::get_cd_number ( ) const

Get CD number in set.

Definition at line 230 of file vcdinfo.cc.

References m_cd_number.

◆ get_file_date()

const time_t & VcdInfo::get_file_date ( ) const

Date of disk (of INFO.VCD or SVD)

Definition at line 190 of file vcdinfo.cc.

References m_file_date.

◆ get_id()

const std::string & VcdInfo::get_id ( ) const

Get disk ID.

Definition at line 195 of file vcdinfo.cc.

References m_id.

◆ get_number_of_cds()

int VcdInfo::get_number_of_cds ( ) const

Get number of CDs in set.

Definition at line 225 of file vcdinfo.cc.

References m_number_of_cds.

◆ get_profile_tag()

VCDPROFILETAG VcdInfo::get_profile_tag ( ) const

Get disk profile tag.

Definition at line 210 of file vcdinfo.cc.

References m_profile_tag.

◆ get_profile_tag_str()

std::string VcdInfo::get_profile_tag_str ( ) const

Get disk profile tag as string.

Definition at line 215 of file vcdinfo.cc.

References VCDUTILS::get_profile_tag_str(), and m_profile_tag.

◆ get_type()

VCDTYPE VcdInfo::get_type ( ) const

Get disk type.

Definition at line 200 of file vcdinfo.cc.

References m_type.

◆ get_type_str()

std::string VcdInfo::get_type_str ( ) const

Get disk type as string.

Definition at line 205 of file vcdinfo.cc.

References VCDUTILS::get_type_str(), and m_type.

◆ load_file()

int VcdInfo::load_file ( const std::string &  path)

Load VCD from path.

Parameters
[in]path- path to locate VCD in
Returns
If successful, returns 0; otherwise, returns errno.

Definition at line 129 of file vcdinfo.cc.

References clear(), VCDUTILS::convert_txt2string(), VCDUTILS::get_directory(), VCDUTILS::locate_file(), m_album_id, VCDINFO::m_albumid, VCDINFO::m_cd_number, m_cd_number, m_disk_path, m_file_date, VCDINFO::m_ID, m_id, m_number_of_cds, VCDINFO::m_numberof_cds, VCDINFO::m_profile_tag, m_profile_tag, VCDINFO::m_type, and m_type.

Member Data Documentation

◆ m_album_id

std::string VcdInfo::m_album_id
protected

Album ID.

Definition at line 79 of file vcdinfo.h.

Referenced by clear(), get_album_id(), and load_file().

◆ m_cd_number

int VcdInfo::m_cd_number
protected

Number of this CD in set.

Definition at line 81 of file vcdinfo.h.

Referenced by clear(), get_cd_number(), and load_file().

◆ m_disk_path

std::string VcdInfo::m_disk_path
protected

Path to disk.

Definition at line 73 of file vcdinfo.h.

Referenced by clear(), and load_file().

◆ m_file_date

time_t VcdInfo::m_file_date
protected

File date.

Definition at line 74 of file vcdinfo.h.

Referenced by clear(), get_file_date(), and load_file().

◆ m_id

std::string VcdInfo::m_id
protected

ID of this CD.

Definition at line 75 of file vcdinfo.h.

Referenced by clear(), get_id(), and load_file().

◆ m_number_of_cds

int VcdInfo::m_number_of_cds
protected

Number of CDs in set.

Definition at line 80 of file vcdinfo.h.

Referenced by clear(), get_number_of_cds(), and load_file().

◆ m_profile_tag

VCDPROFILETAG VcdInfo::m_profile_tag
protected

System profile tag.

Definition at line 77 of file vcdinfo.h.

Referenced by clear(), get_profile_tag(), get_profile_tag_str(), and load_file().

◆ m_type

VCDTYPE VcdInfo::m_type
protected

Type of CD.

Definition at line 76 of file vcdinfo.h.

Referenced by clear(), get_type(), get_type_str(), and load_file().


The documentation for this class was generated from the following files: