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
codeWrapper.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/codeWrapper.h"
2#ifndef UFE_CODEWRAPPER_H
3#define UFE_CODEWRAPPER_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 <vector>
18
20
21class Selection;
22
30{
31public:
32 using Ptr = std::shared_ptr<CodeWrapper>;
33
34 virtual ~CodeWrapper();
35
38 virtual void prelude(const std::string& subOperation) = 0;
39
42 virtual void cleanup(const std::string& subOperation) = 0;
43};
44
49{
50public:
51 using Container = std::vector<CodeWrapper::Ptr>;
52
57 const Selection& selection,
58 const std::string& operationName
59 );
60
62 const Container& codeWrappers() const {
63 return fWrappers;
64 }
65
66private:
68};
69
70}
71
72#endif /* UFE_CODEWRAPPER_H */
A container of multiple CodeWrapper, one per UFE run-time that is involved in an operation.
Definition: codeWrapper.h:49
CodeWrapperContainer(const Selection &selection, const std::string &operationName)
Creates a container of wrapper, one for each run-time that is used in the selection.
std::vector< CodeWrapper::Ptr > Container
Definition: codeWrapper.h:51
const Container & codeWrappers() const
Retrieves the code wrappers that were created in the constructor.
Definition: codeWrapper.h:62
Wrap the execution of some other function, called sub-operation, with arbitrary prelude and cleanup v...
Definition: codeWrapper.h:30
std::shared_ptr< CodeWrapper > Ptr
Definition: codeWrapper.h:32
virtual void cleanup(const std::string &subOperation)=0
Function called after execution of some other code.
virtual void prelude(const std::string &subOperation)=0
Function called before execution of some other code.
virtual ~CodeWrapper()
Selection list for objects in the scene.
Definition: selection.h:29
std::string string(const Path &path)
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35