DNA Calib 1.1
Project brief
Classes | Public Member Functions | Private Attributes | List of all members
dnac::RenameAnimatedMapCommand Class Reference

RenameAnimatedMapCommand is used to rename an animated map. More...

#include <RenameAnimatedMapCommand.h>

Inheritance diagram for dnac::RenameAnimatedMapCommand:
Inheritance graph
Collaboration diagram for dnac::RenameAnimatedMapCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RenameAnimatedMapCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RenameAnimatedMapCommand (std::uint16_t animatedMapIndex, const char *newName, MemoryResource *memRes=nullptr)
 
DNACAPI RenameAnimatedMapCommand (const char *oldName, const char *newName, MemoryResource *memRes=nullptr)
 
DNACAPI ~RenameAnimatedMapCommand ()
 
 RenameAnimatedMapCommand (const RenameAnimatedMapCommand &)=delete
 
RenameAnimatedMapCommandoperator= (const RenameAnimatedMapCommand &)=delete
 
DNACAPI RenameAnimatedMapCommand (RenameAnimatedMapCommand &&)
 
DNACAPI RenameAnimatedMapCommandoperator= (RenameAnimatedMapCommand &&)
 
DNACAPI void setName (std::uint16_t animatedMapIndex, const char *newName)
 Method for setting a new name for animated map with given index. More...
 
DNACAPI void setName (const char *oldName, const char *newName)
 Method for setting a new name for animated map with given name. More...
 
DNACAPI void run (DNACalibDNAReader *output) override
 
- Public Member Functions inherited from dnac::Command
virtual ~Command ()
 
virtual void run (DNACalibDNAReader *output)=0
 

Private Attributes

ScopedPtr< ImplpImpl
 

Detailed Description

RenameAnimatedMapCommand is used to rename an animated map.

Constructor & Destructor Documentation

◆ RenameAnimatedMapCommand() [1/5]

dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand ( MemoryResource memRes = nullptr)
explicit
43 : pImpl{makeScoped<Impl>(memRes)} {
44}
ScopedPtr< Impl > pImpl
Definition: RenameAnimatedMapCommand.h:55

◆ RenameAnimatedMapCommand() [2/5]

dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand ( std::uint16_t  animatedMapIndex,
const char *  newName,
MemoryResource memRes = nullptr 
)
46 :
47 pImpl{makeScoped<Impl>(memRes)} {
48
49 pImpl->setName(animatedMapIndex, newName);
50}

References pImpl.

◆ RenameAnimatedMapCommand() [3/5]

dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand ( const char *  oldName,
const char *  newName,
MemoryResource memRes = nullptr 
)
52 :
53 pImpl{makeScoped<Impl>(memRes)} {
54
55 pImpl->setName(oldName, newName);
56}

References pImpl.

◆ ~RenameAnimatedMapCommand()

dnac::RenameAnimatedMapCommand::~RenameAnimatedMapCommand ( )
default

◆ RenameAnimatedMapCommand() [4/5]

dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand ( const RenameAnimatedMapCommand )
delete

◆ RenameAnimatedMapCommand() [5/5]

dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand ( RenameAnimatedMapCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

RenameAnimatedMapCommand & dnac::RenameAnimatedMapCommand::operator= ( const RenameAnimatedMapCommand )
delete

◆ operator=() [2/2]

RenameAnimatedMapCommand & dnac::RenameAnimatedMapCommand::operator= ( RenameAnimatedMapCommand &&  )
default

◆ run()

void dnac::RenameAnimatedMapCommand::run ( DNACalibDNAReader output)
overridevirtual

Implements dnac::Command.

70 {
71 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
72}

References pImpl.

◆ setName() [1/2]

void dnac::RenameAnimatedMapCommand::setName ( const char *  oldName,
const char *  newName 
)

Method for setting a new name for animated map with given name.

Note
The renaming will not happen if there is no animated map with given current name.
Parameters
oldNameThe current name of the animated map whose name to change.
newNameThe new name for the animated map.
66 {
67 pImpl->setName(oldName, newName);
68}

References pImpl.

◆ setName() [2/2]

void dnac::RenameAnimatedMapCommand::setName ( std::uint16_t  animatedMapIndex,
const char *  newName 
)

Method for setting a new name for animated map with given index.

Parameters
animatedMapIndexThe index of the animated map whose name to change.
newNameThe new name for the animated map.
62 {
63 pImpl->setName(animatedMapIndex, newName);
64}

References pImpl.

Member Data Documentation

◆ pImpl

ScopedPtr<Impl> dnac::RenameAnimatedMapCommand::pImpl
private

The documentation for this class was generated from the following files: