Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreUID.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_UID__
8#define __HDI_CORE_UID__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace aip
17 {
18 class UID;
19 }
20
21 namespace core
22 {
23 class Art;
24
31 class UID
32 {
33 public:
44 UID();
45
53 UID(const UID& u_);
54
62 UID(const std::string& name_);
63
71 UID(const AIUIDRef aiUID_);
72
78 virtual ~UID();
79
88 virtual UID& operator=(const UID& rhs_);
89
98 virtual bool operator==(const UID& rhs_) const;
99
108 virtual bool operator!=(const UID& rhs_) const;
109
123 virtual AIUIDRef aiUIDRef() const;
124
132 virtual bool isEmpty() const;
133
141 virtual std::unique_ptr<Art> art() const;
142
150 virtual std::string name() const;
151
169 void setName(const std::string& name_);
170
171
172 private:
173 friend aip::UID* __accessImpl(const UID&);
174 friend UID __accessCtor(const aip::UID&);
175
179 aip::UID* __impl;
180
186 UID(const aip::UID&);
187 };
188
189 typedef std::unique_ptr<UID> UIDUP;
190 typedef std::shared_ptr<UID> UIDSP;
191 typedef std::weak_ptr<UID> UIDWP;
192
193 extern aip::UID* __accessImpl(const UID&);
194 extern UID __accessCtor(const aip::UID&);
195 }
196}
197
198#endif
199// HDI_CORE_AIP_MODE
200
201#endif
202// __HDI_CORE_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.
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.
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.