ufe  3.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 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.9-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 
20 UFE_NS_DEF {
21 
23 
34 public:
36  Value();
37 
42  template<typename T> Value(const T& v);
43 
45  Value(const Value&);
46 
48  Value(Value&&) noexcept;
49 
51  Value& operator=(const Value& v);
52 
54  Value& operator=(Value&&) noexcept;
55 
57  ~Value();
58 
60  template<typename T> T get() const;
61 
63  bool empty() const;
64 
66  std::string typeName() const;
67 
69  template<typename T> bool isType() const;
70 
72  bool operator==(const Value& rhs) const;
74  bool operator!=(const Value& rhs) const;
76 
77 private:
78 
79  struct Imp;
80 
81  std::unique_ptr<Imp> _imp;
82 };
83 
84 }
85 
86 #endif /* _ufeValue */
std::string string(const Path &path)
Definition of macros for symbol visibility.
Value class that can hold a wide set of types.
Definition: value.h:33
#define UFE_NS_DEF
Definition: ufe.h:35
std::unique_ptr< Imp > _imp
Definition: value.h:79
#define UFE_SDK_DECL
Definition: ufeExport.h:36