A device detection library that is used natively or by 51Degrees products

FiftyoneDegrees::Common::ValueMetaData Class Reference

Detailed Description

Meta data relating to a value populated by an engine implementation.

Inheritance diagram for FiftyoneDegrees::Common::ValueMetaData:

[legend]

Collaboration diagram for FiftyoneDegrees::Common::ValueMetaData:

[legend]

Public Member Functions

Constructors

 ValueMetaData ()
 Default constructor, should not be used externally as it produces an invalid instance.
 ValueMetaData (ValueMetaData *value)
 Construct a new instance of ValueMetaData from an existing instance.
 ValueMetaData (ValueMetaDataKey key, string description, string url)
 Create a new instance of ValueMetaData.

Getters

string getName () const
 Get the name of the value.
string getDescription () const
 Get the full description of the value.
string getUrl () const
 Get the URL containing any extra information about the value.
std::vector< uint8_t > getUtf8ValueName () const
 Get the name of the value as a UTF-8 byte vector.

Constructor & Destructor Documentation

◆ ValueMetaData() [1/2]

FiftyoneDegrees::Common::ValueMetaData::ValueMetaData ( ValueMetaData * value)

Construct a new instance of ValueMetaData from an existing instance.

This copies the existing instance and does not hold a reference to it.

Parameters
valueto copy

◆ ValueMetaData() [2/2]

FiftyoneDegrees::Common::ValueMetaData::ValueMetaData ( ValueMetaDataKey key,
string description,
string url )

Create a new instance of ValueMetaData.

This should only be used internally by the Collection class.

Parameters
keycontaining the value and property names
descriptionfull description of the value
urlrelating to the value

Member Function Documentation

◆ getDescription()

string FiftyoneDegrees::Common::ValueMetaData::getDescription ( ) const

Get the full description of the value.

Returns
description string, empty if the value has none

◆ getName()

string FiftyoneDegrees::Common::ValueMetaData::getName ( ) const

Get the name of the value.

This is a string representation of the value itself.

Returns
value name

◆ getUrl()

string FiftyoneDegrees::Common::ValueMetaData::getUrl ( ) const

Get the URL containing any extra information about the value.

Returns
URL string, empty if the value has none

◆ getUtf8ValueName()

std::vector< uint8_t > FiftyoneDegrees::Common::ValueMetaData::getUtf8ValueName ( ) const

Get the name of the value as a UTF-8 byte vector.

Returns
value name as UTF-8 bytes

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