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
batchCompositeCommand.h
Go to the documentation of this file.
1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/batchCompositeCommand.h"
2 #ifndef _ufeBatchCompositeCommand
3 #define _ufeBatchCompositeCommand
4 // ===========================================================================
5 // Copyright 2023 Autodesk, Inc. All rights reserved.
6 //
7 // Use of this software is subject to the terms of the Autodesk license
8 // agreement provided at the time of installation or download, or which
9 // otherwise accompanies this software in either electronic or hard copy form.
10 // ===========================================================================
11 
12 #include "undoableCommand.h"
13 
14 #include "codeWrapper.h"
15 #include "selection.h"
16 
17 #include <string>
18 
19 UFE_NS_DEF {
20 
21 class Selection;
22 
73 {
74 public:
78  static std::shared_ptr<BatchCompositeCommand> create(
79  const Selection& selection,
80  const std::string& operationName);
81 
83  const BatchCompositeCommand& operator=(const BatchCompositeCommand&) = delete;
84 
89  const Selection& selection,
90  const std::string& operationName);
91 
94  return fWrappers;
95  }
96 
98  static const std::string execSubOp;
99  static const std::string undoSubOp;
100  static const std::string redoSubOp;
101 
103  void execute() override;
104 
106  void undo() override;
107 
109  void redo() override;
110 
111 private:
113 };
114 
115 }
116 
117 #endif /* _ufeBatchCompositeCommand */
void execute() override
Calls execute() on each command in the list, in forward order.
std::string string(const Path &path)
static std::shared_ptr< CompositeUndoableCommand > create(std::initializer_list< Ptr > undoableCommands)
void redo() override
Calls redo() on each command in the list, in forward order.
Composite command affecting a batch (selection) of items. For each item run-time, allow the run-time ...
Composite undoable command.
A container of multiple CodeWrapper, one per UFE run-time that is involved in an operation.
Definition: codeWrapper.h:47
static const std::string execSubOp
The sub-operations for the code wrappers associated with the execute, undo and redo.
void undo() override
Calls undo() on each command in the list, in reverse order.
Selection list for objects in the scene.
Definition: selection.h:27
#define UFE_NS_DEF
Definition: ufe.h:35
const CodeWrapperContainer & codeWrappers() const
Retrieves the container of code-wrappers, one per run-time found in the selection.
static const std::string undoSubOp
static const std::string redoSubOp
#define UFE_SDK_DECL
Definition: ufeExport.h:36