7#ifndef __HDI_CORE_UID__
8#define __HDI_CORE_UID__
10#if defined(HDI_CORE_AIP_MODE)
84 UID(
const std::string& name_);
93 UID(
const AIUIDRef aiUID_);
163 virtual std::unique_ptr<Art>
art()
const;
172 virtual std::string
name()
const;
195 friend aip::UID* __accessImpl(
const UID&);
196 friend UID __accessCtor(
const aip::UID&);
208 UID(
const aip::UID&);
211 typedef std::unique_ptr<UID> UIDUP;
212 typedef std::shared_ptr<UID> UIDSP;
213 typedef std::weak_ptr<UID> UIDWP;
215 extern aip::UID* __accessImpl(
const UID&);
216 extern UID __accessCtor(
const aip::UID&);
Allows for easy UID acquisition, art access, etc.
Definition: hdicoreUID.h:32
UID(const std::string &name_)
Constructs a new UID object from a UID name.
void setName(const std::string &name_)
Sets the name of the target UID object.
static std::string normalizeName(const std::string &name_)
Normalizes the proposed name into Adobe's special UID naming format.
virtual std::unique_ptr< Art > art() const
Gets an Art object for the target UID.
virtual bool operator==(const UID &rhs_) const
Tests whether a given UID object is the same as another.
UID(const UID &u_)
UID copy constructor.
UID()
Creates an empty UID object.
virtual bool operator!=(const UID &rhs_) const
Tests whether a given UID object is not the same as another.
static std::string denormalizeID(const std::string &id_)
Denormalizes the UID name/ID back into a regular/user-readable name.
virtual ~UID()
Destructs a UID object.
virtual UID & operator=(const UID &rhs_)
Overloaded assignment operator for UID objects.
virtual bool isEmpty() const
Gets whether the target UID object is empty (constructed with the default ctor)
virtual std::string name() const
Gets the unique name of the target UID object.
virtual AIUIDRef aiUIDRef() const
Gets the UID ref around which the target object is wrapped.
UID(const AIUIDRef aiUID_)
Constructs a new UID object from an AIUIDRef.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.