ufe 7.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
value.h
Go to the documentation of this file.
1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/value.h"
2#ifndef UFE_VALUE_H
3#define UFE_VALUE_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
11// ===========================================================================
12
13#include "common/ufeExport.h"
14
15#include <memory>
16#include <string>
17#include <unordered_map>
18
20
21#define UFE_VALUE_SUPPORTS_VECTOR_AND_COLOR 1
22
24
67public:
70
75 template<typename T> Value(const T& v);
76
78 Value(const Value&);
79
82 Value(Value&&) noexcept;
83
85 Value& operator=(const Value& v);
86
89 Value& operator=(Value&&) noexcept;
90
93
100 template<typename T> T get() const;
101
106 template<typename T> T safeGet(T arg) const;
107
114 bool empty() const;
115
155 std::string typeName() const;
156
158 template<typename T> bool isType() const;
159
162 bool operator==(const Value& rhs) const;
163 bool operator!=(const Value& rhs) const;
165
166private:
167
168 struct Imp;
169
170 std::unique_ptr<Imp> _imp;
171};
172
173using ValueDictionary = std::unordered_map<std::string, Value>;
174
175}
176
177#endif /* UFE_VALUE_H */
Value class that can hold a wide set of types.
Definition: value.h:66
Value()
Default constructor. Creates an empty Value.
Value(const T &v)
Value(Value &&) noexcept
Value(const Value &)
Default copy constructor.
const Ptr & get()
std::unordered_map< std::string, Value > ValueDictionary
Definition: value.h:173
Definition: path.h:202
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35