Class combining the url, type, library of a medium, and a unique identifier.
More...
#include <Library.h>
|
| Definition ()=default |
| Default constructor.
|
|
| Definition (std::string url, const Medium::Type type, std::string library, std::string uniqueIdentifier=std::string()) |
| Creates a new definition object.
|
|
const std::string & | url () const |
| Returns the URL of the medium definition.
|
|
Medium::Type | type () const |
| Returns the type of the medium.
|
|
const std::string & | library () const |
| Returns the name of the library to which the medium belongs.
|
|
const std::string & | uniqueIdentifier () const |
| Returns the optional unique identifier of the medium.
|
|
Class combining the url, type, library of a medium, and a unique identifier.
◆ Definition() [1/2]
Ocean::Media::Library::Definition::Definition |
( |
| ) |
|
|
default |
◆ Definition() [2/2]
Ocean::Media::Library::Definition::Definition |
( |
std::string |
url, |
|
|
const Medium::Type |
type, |
|
|
std::string |
library, |
|
|
std::string |
uniqueIdentifier = std::string() |
|
) |
| |
|
inline |
Creates a new definition object.
- Parameters
-
url | The URL of the medium |
type | The type of the medium |
library | The name of the library to which the medium belongs |
uniqueIdentifier | Optional unique identifier of the medium (e.g., in case the medium is a USB device). |
◆ library()
const std::string & Ocean::Media::Library::Definition::library |
( |
| ) |
const |
|
inline |
Returns the name of the library to which the medium belongs.
- Returns
- The medium's library
◆ type()
Medium::Type Ocean::Media::Library::Definition::type |
( |
| ) |
const |
|
inline |
Returns the type of the medium.
- Returns
- The medium's type
◆ uniqueIdentifier()
const std::string & Ocean::Media::Library::Definition::uniqueIdentifier |
( |
| ) |
const |
|
inline |
Returns the optional unique identifier of the medium.
- Returns
- The medium's unique identifier, empty if unknown
◆ url()
const std::string & Ocean::Media::Library::Definition::url |
( |
| ) |
const |
|
inline |
Returns the URL of the medium definition.
@retrn The medium's URL
◆ library_
std::string Ocean::Media::Library::Definition::library_ |
|
protected |
◆ type_
◆ uniqueIdentifier_
std::string Ocean::Media::Library::Definition::uniqueIdentifier_ |
|
protected |
Optional unique identifier of the medium, e.g., a device name or a serial number.
◆ url_
std::string Ocean::Media::Library::Definition::url_ |
|
protected |
The documentation for this class was generated from the following file: