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
codeWrapperContext.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/codeWrapperContext.h"
2#ifndef UFE_CODEWRAPPERCONTEXT_H
3#define UFE_CODEWRAPPERCONTEXT_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 "codeWrapper.h"
14
15#include <string>
16#include <vector>
17
19
20class Selection;
21
26{
27public:
33 const CodeWrapperContainer& container,
34 const std::string& subOperation);
36
37 // Do not allow copying since the CodeWrapper prelude and cleanup
38 // must only be executed once.
41
44
47 void cleanup();
48
49private:
50 // This function is called during construction.
51 void prelude();
52
53 // The CodeWrapperContext can only be created with a valid container of
54 // code wrapper but does not manage the lifetime of that container. The
55 // container is held by another class, for example a BatchCompositeCommand,
56 // which is also the class that uses the context. See BatchCompositeCommand.cpp
57 // for an example.
58 //
59 // Note: we need to keep it as a pointer so we can clear it out when cleanup()
60 // is explicitly called.
63};
64
65}
66
67#endif /* UFE_CODEWRAPPERCONTEXT_H */
A container of multiple CodeWrapper, one per UFE run-time that is involved in an operation.
Definition: codeWrapper.h:49
Wraps execution of other code by calling the prelude and cleanup code wrappers for given sub-operatio...
CodeWrapperContext(CodeWrapperContext &&)=delete
const CodeWrapperContext & operator=(const CodeWrapperContext &)=delete
CodeWrapperContext(const CodeWrapperContainer &container, const std::string &subOperation)
Creates a context that immediately calls all the prelude functions of the code wrapper kept in the gi...
CodeWrapperContext(const CodeWrapperContext &)=delete
const CodeWrapperContext & operator=(CodeWrapperContext &&)=delete
const CodeWrapperContainer * fContainer
void cleanup()
Invoke the cleanup of the wrappers immediately, before the destructor. After this call,...
std::string string(const Path &path)
#define UFE_NS_DEF
Definition: ufe.h:36
#define UFE_SDK_DECL
Definition: ufeExport.h:35