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
attributesCommands.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/attributesCommands.h"
2#ifndef UFE_ATTRIBUTESCOMMANDS_H
3#define UFE_ATTRIBUTESCOMMANDS_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#include "attribute.h"
15#include "undoableCommand.h"
16
17#include <memory>
18
20
22
28{
29public:
30 typedef std::shared_ptr<AttributeUndoableCommand> Ptr;
33
35 ~AttributeUndoableCommand() override = default;
36
37 std::string commandString() const override { return "AddAttribute"; }
38
40 virtual Attribute::Ptr attribute() const = 0;
41};
42
43
44
45} // end namespace
46
47#endif /* UFE_ATTRIBUTESCOMMANDS_H */
std::shared_ptr< Attribute > Ptr
Definition: attribute.h:39
Command to add an attribute to a scene item.
AttributeUndoableCommand()=default
Default constructor.
std::string commandString() const override
Get a user friendly string representation of the command.
~AttributeUndoableCommand() override=default
Destructor.
std::shared_ptr< AttributeUndoableCommand > Ptr
virtual Attribute::Ptr attribute() const =0
Pure virtual method to retrieve the new attribute.
Abstract base class for undoable commands.
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