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