ufe 6.2
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.11-windows/ufe/include/value.h"
2#ifndef _ufeValue
3#define _ufeValue
4
5// =======================================================================
6// Copyright 2021 Autodesk, Inc. All rights reserved.
7//
8// This computer source code and related instructions and comments are the
9// unpublished confidential and proprietary information of Autodesk, Inc.
10// and are protected under applicable copyright and trade secret law. They
11// may not be disclosed to, copied or used by any third party without the
12// prior written consent of Autodesk, Inc.
13// =======================================================================
14
15#include "common/ufeExport.h"
16
17#include <memory>
18#include <string>
19#include <unordered_map>
20
22
24
45#define UFE_VALUE_SUPPORTS_VECTOR_AND_COLOR 1
46
48public:
51
56 template<typename T> Value(const T& v);
57
59 Value(const Value&);
60
62 Value(Value&&) noexcept;
63
65 Value& operator=(const Value& v);
66
68 Value& operator=(Value&&) noexcept;
69
72
75 template<typename T> T get() const;
76
81 template<typename T> T safeGet(T arg) const;
82
84 bool empty() const;
85
104 std::string typeName() const;
105
107 template<typename T> bool isType() const;
108
110
111 bool operator==(const Value& rhs) const;
112 bool operator!=(const Value& rhs) const;
114
115private:
116
117 struct Imp;
118
119 std::unique_ptr<Imp> _imp;
120};
121
122using ValueDictionary = std::unordered_map<std::string, Value>;
123
124}
125
126#endif /* _ufeValue */
Value()
Default constructor. Creates an empty Value.
Value(const T &v)
Value(Value &&) noexcept
Move constructor.
Value(const Value &)
Default copy constructor.
const Ptr & get()
std::unordered_map< std::string, Value > ValueDictionary
Definition: value.h:122
Definition: path.h:201
#define UFE_NS_DEF
Definition: ufe.h:35
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:36