Version: 8.3.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
 

Detailed Description

Definition at line 554 of file commandsProc.hxx.

Constructor & Destructor Documentation

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

Definition at line 3206 of file commandsProc.cxx.

3206  :CommandAddContainerBase(name,refContainer)
3207 {
3208 }

Member Function Documentation

Container * CommandAddHPContainer::createNewInstance ( ) const
protectedvirtual

Implements YACS::HMI::CommandAddContainerBase.

Definition at line 3216 of file commandsProc.cxx.

3217 {
3218  return new SalomeHPContainer;
3219 }
std::string CommandAddHPContainer::dump ( )
protectedvirtual

Reimplemented from YACS::HMI::Command.

Definition at line 3210 of file commandsProc.cxx.

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

3211 {
3212  string ret ="CommandAddHPContainer " + _name + " " + _containerToClone;
3213  return ret;
3214 }

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