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

RemoveAnimatedMapCommand is used to remove animated maps. More...

#include <RemoveAnimatedMapCommand.h>

Inheritance diagram for dnac::RemoveAnimatedMapCommand:
Inheritance graph
Collaboration diagram for dnac::RemoveAnimatedMapCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RemoveAnimatedMapCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RemoveAnimatedMapCommand (std::uint16_t animatedMapIndex, MemoryResource *memRes=nullptr)
 
DNACAPI RemoveAnimatedMapCommand (ConstArrayView< std::uint16_t > animatedMapIndices, MemoryResource *memRes=nullptr)
 
DNACAPI ~RemoveAnimatedMapCommand ()
 
 RemoveAnimatedMapCommand (const RemoveAnimatedMapCommand &)=delete
 
RemoveAnimatedMapCommandoperator= (const RemoveAnimatedMapCommand &)=delete
 
DNACAPI RemoveAnimatedMapCommand (RemoveAnimatedMapCommand &&)
 
DNACAPI RemoveAnimatedMapCommandoperator= (RemoveAnimatedMapCommand &&)
 
DNACAPI void setAnimatedMapIndex (std::uint16_t animatedMapIndex)
 Method for setting the index of the animated map to remove. More...
 
DNACAPI void setAnimatedMapIndices (ConstArrayView< std::uint16_t > animatedMapIndices)
 Method for setting the indices of animated maps to remove. 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

RemoveAnimatedMapCommand is used to remove animated maps.

Constructor & Destructor Documentation

◆ RemoveAnimatedMapCommand() [1/5]

dnac::RemoveAnimatedMapCommand::RemoveAnimatedMapCommand ( MemoryResource memRes = nullptr)
explicit
40 : pImpl{makeScoped<Impl>(memRes)} {
41}
ScopedPtr< Impl > pImpl
Definition: RemoveAnimatedMapCommand.h:50

◆ RemoveAnimatedMapCommand() [2/5]

dnac::RemoveAnimatedMapCommand::RemoveAnimatedMapCommand ( std::uint16_t  animatedMapIndex,
MemoryResource memRes = nullptr 
)
43 :
44 pImpl{makeScoped<Impl>(memRes)} {
45
46 pImpl->setAnimatedMapIndex(animatedMapIndex);
47}

References pImpl.

◆ RemoveAnimatedMapCommand() [3/5]

dnac::RemoveAnimatedMapCommand::RemoveAnimatedMapCommand ( ConstArrayView< std::uint16_t >  animatedMapIndices,
MemoryResource memRes = nullptr 
)
49 :
50 pImpl{makeScoped<Impl>(memRes)} {
51
52 pImpl->setAnimatedMapIndices(animatedMapIndices);
53}

References pImpl.

◆ ~RemoveAnimatedMapCommand()

dnac::RemoveAnimatedMapCommand::~RemoveAnimatedMapCommand ( )
default

◆ RemoveAnimatedMapCommand() [4/5]

dnac::RemoveAnimatedMapCommand::RemoveAnimatedMapCommand ( const RemoveAnimatedMapCommand )
delete

◆ RemoveAnimatedMapCommand() [5/5]

dnac::RemoveAnimatedMapCommand::RemoveAnimatedMapCommand ( RemoveAnimatedMapCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

67 {
68 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
69}

References pImpl.

◆ setAnimatedMapIndex()

void dnac::RemoveAnimatedMapCommand::setAnimatedMapIndex ( std::uint16_t  animatedMapIndex)

Method for setting the index of the animated map to remove.

Parameters
animatedMapIndexThe index of the animated map.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set animated map(s) will be removed.
59 {
60 pImpl->setAnimatedMapIndex(animatedMapIndex);
61}

References pImpl.

◆ setAnimatedMapIndices()

void dnac::RemoveAnimatedMapCommand::setAnimatedMapIndices ( ConstArrayView< std::uint16_t >  animatedMapIndices)

Method for setting the indices of animated maps to remove.

Parameters
animatedMapIndicesThe animated map indices.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set animated map(s) will be removed.
63 {
64 pImpl->setAnimatedMapIndices(animatedMapIndices);
65}

References pImpl.

Member Data Documentation

◆ pImpl

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

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