object (UPnP AV) (Compact 7)

3/12/2014

This structure represents a DIDL-Lite object, as specified in detail in the ContentDirectory documentation referenced at UPnP Forum AV Web site.

Syntax

struct object
{
  bool bContainer;
  wstring strID;
  wstring strParentID;
  wstring strTitle;
  wstring strClass;
  bool bRestricted;
};

Members

  • bContainer
    Contains true if the object is a container, that is, part of the DIDL-Lite object.container hierarchy. Contains false if the object is an item, that is, part of the DIDL-Lite object.item hierarchy.
  • strID
    Object identifier. Unique in the ContentDirectory service instance.
  • strParentID
    The object identifier (ID) of this object's parent. The root container has a parent ID of -1.
  • strTitle
    Name of the object.
  • strClass
    DIDL-Lite class of the object. For example, object.container, object.item.audioItem, and so on.
  • bRestricted
    Contains true if only the ContentDirectory instance can modify this object. Contains false if control points can modify this object.

Remarks

The data members of this class contain required properties of every DIDL-Lite object. To retrieve optional properties, use object::GetProperty.

The object class is defined in the av_upnp::DIDL_Lite C++ namespace and so is usually refererred to using the code av_upnp::DIDL_Lite::object, or using the av alias, as av::DIDL_Lite::object.

For more information about the DIDL-Lite schema defined by the UPnP AV DCP, see the ContentDirectory documentation referenced at the UPnP Forum AV web site.

Requirements

Header

av_upnp.h

Library

Av_upnp.lib

See Also

Reference

UPnP AV Structures