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
connections.h
Go to the documentation of this file.
1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/connections.h"
2 #ifndef _ufe_connections
3 #define _ufe_connections
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 "connection.h"
18 
19 #include <memory>
20 
21 UFE_NS_DEF {
22 
28 {
29 public:
30  typedef std::shared_ptr<Connections> Ptr;
31 
33  {
34  ATTR_IS_SOURCE = 0x01,
35  ATTR_IS_DESTINATION = 0x02,
36  ATTR_ANY = 0x03
37  };
38 
40  Connections();
42  virtual ~Connections();
43 
45  Connections(const Connections&) = delete;
47  Connections& operator=(const Connections&) = delete;
48  Connections(Connections&&) = delete;
49  Connections& operator=(Connections&&) = delete;
51 
53  virtual std::vector<Connection::Ptr> allConnections() const = 0;
54 
64  virtual bool hasConnection(const Attribute::Ptr& attr, AttributeType attrType) const;
65 
75  virtual std::vector<Connection::Ptr> connections(const Attribute::Ptr& attr, AttributeType attrType) const;
76 };
77 
78 }
79 
80 #endif
std::shared_ptr< Attribute > Ptr
Definition: attribute.h:40
Definition of macros for symbol visibility.
The class represents a list of existing connections.
Definition: connections.h:27
#define UFE_NS_DEF
Definition: ufe.h:35
#define UFE_SDK_DECL
Definition: ufeExport.h:36
std::shared_ptr< Connections > Ptr
Definition: connections.h:30