ufe  4.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
attributeInfo.h
Go to the documentation of this file.
1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/attributeInfo.h"
2 #ifndef _ufe_attributeInfo
3 #define _ufe_attributeInfo
4 
5 // =======================================================================
6 // Copyright 2022 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 "attribute.h"
18 
19 #include <memory>
20 #include <string>
21 
22 UFE_NS_DEF {
23 
35 {
36 public:
37  AttributeInfo(const Attribute::Ptr& attr);
38  AttributeInfo(const Path& path, const std::string& name);
39  AttributeInfo(const AttributeInfo& attr) = default;
40  ~AttributeInfo();
41 
42  inline Rtid runTimeId() const { return fNodePath.runTimeId(); }
43  inline Path path() const { return fNodePath; }
44  inline std::string name() const { return fAttributeName; }
45 
50  Attribute::Ptr attribute() const;
51 
52 private:
53  const Path fNodePath;
55 };
56 
57 }
58 
59 #endif /* _ufe_attributeInfo */
const std::string fAttributeName
Definition: attributeInfo.h:54
std::shared_ptr< Attribute > Ptr
Definition: attribute.h:40
const Path fNodePath
Definition: attributeInfo.h:53
std::string string(const Path &path)
Definition of macros for symbol visibility.
Identify an object or 3D path in the scene.
Definition: path.h:37
uint32_t Rtid
Definition: rtid.h:26
#define UFE_NS_DEF
Definition: ufe.h:35
This class keeps information of an attribute.
Definition: attributeInfo.h:34
Path path(const std::string &pathString)
Rtid runTimeId() const
Definition: attributeInfo.h:42
std::string name() const
Definition: attributeInfo.h:44
Path path() const
Definition: attributeInfo.h:43
#define UFE_SDK_DECL
Definition: ufeExport.h:36