DNA Calib 1.1
Project brief
RenameMeshCommand.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "dnacalib/Command.h"
6#include "dnacalib/Defs.h"
8
9#include <cstdint>
10
11namespace dnac {
12
13class DNACalibDNAReader;
14
18class RenameMeshCommand : public Command {
19 public:
20 DNACAPI explicit RenameMeshCommand(MemoryResource* memRes = nullptr);
21 DNACAPI RenameMeshCommand(std::uint16_t meshIndex, const char* newName, MemoryResource* memRes = nullptr);
22 DNACAPI RenameMeshCommand(const char* oldName, const char* newName, MemoryResource* memRes = nullptr);
23
25
28
31
39 DNACAPI void setName(std::uint16_t meshIndex, const char* newName);
40
50 DNACAPI void setName(const char* oldName, const char* newName);
51 DNACAPI void run(DNACalibDNAReader* output) override;
52
53 private:
54 class Impl;
56
57};
58
59} // namespace dnac
Command is an abstract class whose implementations are expected to modify the DNA provided in the run...
Definition: Command.h:15
Definition: DNACalibDNAReader.h:12
Definition: RenameMeshCommand.cpp:17
RenameMeshCommand is used to rename a mesh.
Definition: RenameMeshCommand.h:18
DNACAPI void setName(std::uint16_t meshIndex, const char *newName)
Method for setting a new name for mesh with given index.
Definition: RenameMeshCommand.cpp:62
DNACAPI void run(DNACalibDNAReader *output) override
Definition: RenameMeshCommand.cpp:70
RenameMeshCommand(const RenameMeshCommand &)=delete
DNACAPI RenameMeshCommand(MemoryResource *memRes=nullptr)
Definition: RenameMeshCommand.cpp:43
DNACAPI RenameMeshCommand & operator=(RenameMeshCommand &&)
RenameMeshCommand & operator=(const RenameMeshCommand &)=delete
ScopedPtr< Impl > pImpl
Definition: RenameMeshCommand.h:55
DNACAPI RenameMeshCommand(RenameMeshCommand &&)
MemoryResource is an abstract class that allows the implementation of polymorphic allocators.
Definition: MemoryResource.h:17
Takes ownership over the given pointer and handles it's lifetime.
Definition: ScopedPtr.h:116
#define DNACAPI
Definition: dnacalib/Defs.h:26
Definition: Command.h:8