arcstk::v_1_0_0::ARId class final

AccurateRip-Identifier of a compact disc.

The AccurateRip identifier determines the URL of the compact disc dataset as well as the standard filename of the AccurateRip response.

ARIds can be constructed either from three precomputed ids or from a TOC using function make_arid().

In some cases, an ARId is syntactically required, but semantically superflous. An ARId can be empty() to indicate that it carries no identifier. An ARId that qualifies as empty() can be constructed by make_empty_arid().

Constructors, destructors, conversion operators

ARId(ARId&& rhs) noexcept
Default move constructor.
ARId(const ARId& rhs)
Copy constructor.
ARId(const TrackNo track_count, const uint32_t id_1, const uint32_t id_2, const uint32_t cddb_id)
Construct ARId.
~ARId() noexcept
Default destructor.

Public functions

auto cddb_id() const -> uint32_t noexcept
Return the CDDB id.
auto disc_id_1() const -> uint32_t noexcept
Return the disc_id 1.
auto disc_id_2() const -> uint32_t noexcept
Return the disc_id 2.
auto empty() const -> bool noexcept
Return TRUE iff this ARId is empty (holding no information).
auto filename() const -> std::string noexcept
Return the AccurateRip filename of the response file.
auto prefix() const -> std::string noexcept
Return the standard URL prefix for AccurateRip request urls.
auto to_string() const -> std::string noexcept
Return a default string representation of this ARId.
auto track_count() const -> int noexcept
Return the track count.
auto url() const -> std::string noexcept
Return the AccurateRip request URL.

Function documentation

arcstk::v_1_0_0::ARId::ARId(ARId&& rhs) noexcept

Default move constructor.

Parameters
rhs in The ARId to move

arcstk::v_1_0_0::ARId::ARId(const ARId& rhs)

Copy constructor.

Parameters
rhs in The ARId to copy

arcstk::v_1_0_0::ARId::ARId(const TrackNo track_count, const uint32_t id_1, const uint32_t id_2, const uint32_t cddb_id)

Construct ARId.

Parameters
track_count in Number of tracks in this medium
id_1 in Id 1 of this medium
id_2 in Id 2 of this medium
cddb_id in CDDB id of this medium

uint32_t arcstk::v_1_0_0::ARId::cddb_id() const noexcept

Return the CDDB id.

Returns CDDB id of this medium

uint32_t arcstk::v_1_0_0::ARId::disc_id_1() const noexcept

Return the disc_id 1.

Returns Disc id 1 of this medium

uint32_t arcstk::v_1_0_0::ARId::disc_id_2() const noexcept

Return the disc_id 2.

Returns Disc id 2 of this medium

bool arcstk::v_1_0_0::ARId::empty() const noexcept

Return TRUE iff this ARId is empty (holding no information).

Returns TRUE iff this ARId is empty

std::string arcstk::v_1_0_0::ARId::filename() const noexcept

Return the AccurateRip filename of the response file.

Returns AccurateRip filename of the response file

std::string arcstk::v_1_0_0::ARId::prefix() const noexcept

Return the standard URL prefix for AccurateRip request urls.

Returns URL prefix for AccurateRip request URLs.

std::string arcstk::v_1_0_0::ARId::to_string() const noexcept

Return a default string representation of this ARId.

Returns Default string representation of this ARId

int arcstk::v_1_0_0::ARId::track_count() const noexcept

Return the track count.

Returns Track count of this medium

std::string arcstk::v_1_0_0::ARId::url() const noexcept

Return the AccurateRip request URL.

Returns The AccurateRip request URL