Version: 9.15.0
YACS::HMI::SubjectDataType Class Reference

#include <guiObservers.hxx>

Inheritance diagram for YACS::HMI::SubjectDataType:
Collaboration diagram for YACS::HMI::SubjectDataType:

Public Member Functions

 SubjectDataType (YACS::ENGINE::TypeCode *typeCode, Subject *parent, std::string alias)
 
virtual ~SubjectDataType ()
 
virtual std::string getName ()
 
virtual std::string getAlias ()
 
virtual YACS::ENGINE::TypeCodegetTypeCode ()
 
virtual void clean (Command *command=0)
 
void localclean (Command *command=0)
 
virtual TypeOfElem getType ()
 
- Public Member Functions inherited from YACS::HMI::Subject
 Subject (Subject *parent=0)
 
virtual ~Subject ()
 
virtual void attach (GuiObserver *obs)
 
virtual void detach (GuiObserver *obs)
 
virtual void select (bool isSelected)
 
virtual void update (GuiEvent event, int type, Subject *son)
 
virtual bool setName (std::string name)
 
virtual bool setProperties (std::map< std::string, std::string > properties)
 
virtual std::map< std::string, std::string > getProperties ()
 
virtual std::vector< std::string > knownProperties ()
 
virtual SubjectgetParent ()
 
virtual void setParent (Subject *son)
 
virtual bool destroy (Subject *son)
 From user action in Ihm, destroy an object. More...
 
virtual void loadChildren ()
 
virtual void loadLinks ()
 
virtual void addSubjectReference (Subject *ref)
 
void localclean (Command *command=0)
 
void registerUndoDestroy ()
 
void askRegisterUndoDestroy ()
 
bool isDestructible ()
 
virtual void setProgress (std::string newProgress)
 
virtual std::string getProgress ()
 
- Public Member Functions inherited from YACS::ENGINE::Observer
virtual void notifyObserver (Node *object, const std::string &event)
 
virtual void notifyObserver2 (Node *object, const std::string &event, void *something)
 
virtual void notifyObserverFromClone (Node *originalInstance, const std::string &event, Node *clonedInstanceGeneratingEvent)
 
virtual ~Observer ()
 

Protected Attributes

YACS::ENGINE::TypeCode_typeCode
 
std::string _alias
 
- Protected Attributes inherited from YACS::HMI::Subject
std::set< GuiObserver * > _setObs
 
Subject_parent
 
bool _destructible
 
bool _askRegisterUndo
 
std::string _progress
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::HMI::Subject
static void erase (Subject *sub, Command *command=0, bool post=false)
 

Detailed Description

Definition at line 491 of file guiObservers.hxx.

Constructor & Destructor Documentation

◆ SubjectDataType()

SubjectDataType::SubjectDataType ( YACS::ENGINE::TypeCode typeCode,
Subject parent,
std::string  alias 
)

Definition at line 4608 of file guiObservers.cxx.

4609  : Subject(parent), _typeCode(typeCode), _alias(alias)
4610 {
4611 }
YACS::ENGINE::TypeCode * _typeCode
Subject(Subject *parent=0)

◆ ~SubjectDataType()

SubjectDataType::~SubjectDataType ( )
virtual

Definition at line 4613 of file guiObservers.cxx.

4614 {
4615 }

Member Function Documentation

◆ clean()

void SubjectDataType::clean ( Command command = 0)
virtual

Clean process prior to delete is redefined in derived classes: a local clean treatment relative to the derived class, then a call to the parent class clean method.

Reimplemented from YACS::HMI::Subject.

Definition at line 4617 of file guiObservers.cxx.

4618 {
4619  if (_askRegisterUndo)
4620  {
4621  _askRegisterUndo = false;
4623  }
4624  localclean(command);
4625  Subject::clean(command);
4626 }
void localclean(Command *command=0)
virtual void clean(Command *command=0)

References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::Subject::clean(), localclean(), and YACS::HMI::Subject::registerUndoDestroy().

◆ getAlias()

std::string SubjectDataType::getAlias ( )
virtual

Definition at line 4638 of file guiObservers.cxx.

4639 {
4640  return _alias;
4641 }

References _alias.

Referenced by YACS::HMI::SchemaDirTypesItem::addTypeItem().

◆ getName()

std::string SubjectDataType::getName ( )
virtual

Reimplemented from YACS::HMI::Subject.

Definition at line 4633 of file guiObservers.cxx.

4634 {
4635  return _typeCode->name();
4636 }
virtual const char * name() const
Definition: TypeCode.cxx:72

References _typeCode, and YACS::ENGINE::TypeCode::name().

◆ getType()

virtual TypeOfElem YACS::HMI::SubjectDataType::getType ( )
inlinevirtual

Reimplemented from YACS::HMI::Subject.

Definition at line 501 of file guiObservers.hxx.

501 {return DATATYPE;}

References YACS::HMI::DATATYPE.

◆ getTypeCode()

YACS::ENGINE::TypeCode * SubjectDataType::getTypeCode ( )
virtual

Definition at line 4643 of file guiObservers.cxx.

4644 {
4645  return _typeCode;
4646 }

References _typeCode.

◆ localclean()

void SubjectDataType::localclean ( Command command = 0)

Definition at line 4628 of file guiObservers.cxx.

4629 {
4630  DEBTRACE("SubjectDataType::localClean ");
4631 }
#define DEBTRACE(msg)
Definition: YacsTrace.hxx:31

References DEBTRACE.

Referenced by clean().

Member Data Documentation

◆ _alias

std::string YACS::HMI::SubjectDataType::_alias
protected

Definition at line 504 of file guiObservers.hxx.

Referenced by getAlias().

◆ _typeCode

YACS::ENGINE::TypeCode* YACS::HMI::SubjectDataType::_typeCode
protected

Definition at line 503 of file guiObservers.hxx.

Referenced by getName(), and getTypeCode().


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