DNA Calib 1.1
Project brief
RenameAnimatedMapCommand.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
19 public:
20 DNACAPI explicit RenameAnimatedMapCommand(MemoryResource* memRes = nullptr);
21 DNACAPI RenameAnimatedMapCommand(std::uint16_t animatedMapIndex, const char* newName, MemoryResource* memRes = nullptr);
22 DNACAPI RenameAnimatedMapCommand(const char* oldName, const char* newName, MemoryResource* memRes = nullptr);
23
25
28
31
39 DNACAPI void setName(std::uint16_t animatedMapIndex, 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: RenameAnimatedMapCommand.cpp:17
RenameAnimatedMapCommand is used to rename an animated map.
Definition: RenameAnimatedMapCommand.h:18
RenameAnimatedMapCommand & operator=(const RenameAnimatedMapCommand &)=delete
DNACAPI void run(DNACalibDNAReader *output) override
Definition: RenameAnimatedMapCommand.cpp:70
RenameAnimatedMapCommand(const RenameAnimatedMapCommand &)=delete
DNACAPI RenameAnimatedMapCommand(MemoryResource *memRes=nullptr)
Definition: RenameAnimatedMapCommand.cpp:43
ScopedPtr< Impl > pImpl
Definition: RenameAnimatedMapCommand.h:55
DNACAPI RenameAnimatedMapCommand & operator=(RenameAnimatedMapCommand &&)
DNACAPI RenameAnimatedMapCommand(RenameAnimatedMapCommand &&)
DNACAPI void setName(std::uint16_t animatedMapIndex, const char *newName)
Method for setting a new name for animated map with given index.
Definition: RenameAnimatedMapCommand.cpp:62
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