Version: 9.15.0
YACS::HMI::CommandAddContainer Class Reference

#include <commandsProc.hxx>

Inheritance diagram for YACS::HMI::CommandAddContainer:
Collaboration diagram for YACS::HMI::CommandAddContainer:

Public Member Functions

 CommandAddContainer (std::string name, std::string refContainer="")
 
- Public Member Functions inherited from YACS::HMI::CommandAddContainerBase
 CommandAddContainerBase (std::string name, std::string refContainer)
 
virtual ~CommandAddContainerBase ()
 
SubjectContainerBasegetSubjectContainer ()
 
- Public Member Functions inherited from YACS::HMI::Command
 Command ()
 
virtual bool execute ()
 the command is executed a first time after its registration for undo redo, then on redo More...
 
virtual bool reverse (bool isNormal=true)
 Reverse action: undo. More...
 
virtual bool executeSubOnly ()
 execute only sub commands in a reverse action More...
 
std::string recursiveDump (int level=0)
 
void addSubCommand (Command *command)
 
bool isNormalReverse ()
 

Protected Member Functions

std::string dump ()
 
YACS::ENGINE::ContainercreateNewInstance () const
 
- Protected Member Functions inherited from YACS::HMI::CommandAddContainerBase
virtual bool localExecute ()
 
virtual bool localReverse ()
 

Additional Inherited Members

- Protected Attributes inherited from YACS::HMI::CommandAddContainerBase
std::string _name
 
std::string _containerToClone
 
SubjectContainerBase_subcont
 
- Protected Attributes inherited from YACS::HMI::Command
std::vector< Command * > _subCommands
 
bool _normalReverse
 

Detailed Description

Definition at line 545 of file commandsProc.hxx.

Constructor & Destructor Documentation

◆ CommandAddContainer()

CommandAddContainer::CommandAddContainer ( std::string  name,
std::string  refContainer = "" 
)

Definition at line 3191 of file commandsProc.cxx.

3191  :CommandAddContainerBase(name,refContainer)
3192 {
3193 }
CommandAddContainerBase(std::string name, std::string refContainer)

Member Function Documentation

◆ createNewInstance()

Container * CommandAddContainer::createNewInstance ( ) const
protectedvirtual

Implements YACS::HMI::CommandAddContainerBase.

Definition at line 3201 of file commandsProc.cxx.

3202 {
3203  return new SalomeContainer;
3204 }

◆ dump()

std::string CommandAddContainer::dump ( )
protectedvirtual

Reimplemented from YACS::HMI::Command.

Definition at line 3195 of file commandsProc.cxx.

3196 {
3197  string ret ="CommandAddContainer " + _name + " " + _containerToClone;
3198  return ret;
3199 }

References YACS::HMI::CommandAddContainerBase::_containerToClone, and YACS::HMI::CommandAddContainerBase::_name.


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