Version: 9.15.0
YACS::HMI::CommandAddHPContainer Class Reference

#include <commandsProc.hxx>

Inheritance diagram for YACS::HMI::CommandAddHPContainer:
Collaboration diagram for YACS::HMI::CommandAddHPContainer:

Public Member Functions

 CommandAddHPContainer (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 554 of file commandsProc.hxx.

Constructor & Destructor Documentation

◆ CommandAddHPContainer()

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

Definition at line 3208 of file commandsProc.cxx.

3208  :CommandAddContainerBase(name,refContainer)
3209 {
3210 }
CommandAddContainerBase(std::string name, std::string refContainer)

Member Function Documentation

◆ createNewInstance()

Container * CommandAddHPContainer::createNewInstance ( ) const
protectedvirtual

Implements YACS::HMI::CommandAddContainerBase.

Definition at line 3218 of file commandsProc.cxx.

3219 {
3220  return new SalomeHPContainer;
3221 }

◆ dump()

std::string CommandAddHPContainer::dump ( )
protectedvirtual

Reimplemented from YACS::HMI::Command.

Definition at line 3212 of file commandsProc.cxx.

3213 {
3214  string ret ="CommandAddHPContainer " + _name + " " + _containerToClone;
3215  return ret;
3216 }

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


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