1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.9-windows/ufe/include/attribute.h" 40 typedef std::shared_ptr<Attribute>
Ptr;
45 static constexpr
char kInvalid[] =
"Invalid";
46 static constexpr
char kBool[] =
"Bool";
47 static constexpr
char kInt[] =
"Int";
48 static constexpr
char kFloat[] =
"Float";
49 static constexpr
char kDouble[] =
"Double";
50 static constexpr
char kString[] =
"String";
51 static constexpr
char kColorFloat3[] =
"ColorFloat3";
52 static constexpr
char kEnumString[] =
"EnumString";
53 static constexpr
char kInt3[] =
"Int3";
54 static constexpr
char kFloat3[] =
"Float3";
55 static constexpr
char kDouble3[] =
"Double3";
56 static constexpr
char kGeneric[] =
"Generic";
75 virtual bool hasValue()
const = 0;
84 virtual Type type()
const = 0;
98 static constexpr
char kLocked[] =
"Locked";
134 virtual bool clearMetadata(
const std::string& key) = 0;
137 virtual bool hasMetadata(
const std::string& key)
const = 0;
152 typedef std::shared_ptr<AttributeGeneric>
Ptr;
160 virtual
std::
string nativeType() const = 0;
168 typedef std::shared_ptr<AttributeEnumString>
Ptr;
177 virtual
std::
string get() const = 0;
180 virtual
void set(const
std::
string& value) = 0;
197 typedef std::shared_ptr<TypedAttribute<T>>
Ptr;
205 virtual T
get() const = 0;
208 virtual
void set(const T& value) = 0;
std::shared_ptr< Attribute > Ptr
std::shared_ptr< UndoableCommand > Ptr
Typed attribute template for creating a specialized type.
Attribute(const SceneItem::Ptr &)
Constructor.
Attribute which has a list of strings as enumerated values.
std::string string(const Path &path)
Definition of macros for symbol visibility.
std::shared_ptr< AttributeEnumString > Ptr
const SceneItem::Ptr fItem
std::shared_ptr< TypedAttribute< T > > Ptr
std::shared_ptr< AttributeGeneric > Ptr
Value class that can hold a wide set of types.
Typed vector template for creating a specialized vector.
virtual Type type() const =0
Abstract base class for undoable commands.
Abstract base class for Attribute interface.
std::shared_ptr< SceneItem > Ptr
std::vector< std::string > EnumValues
Generic attribute which doesn't match any defined type.