#include <PsAttribute.h>
Inheritance diagram for PsAttribute:


Public Methods | |
| PsAttribute (PsSimulatedObject &owner, const PsName &attributeName) | |
| Constructor. | |
| virtual | ~PsAttribute () |
| Destructor. | |
| virtual const PsSimulatedObject & | getOwner () const |
| get the owner of this attribute | |
| virtual const PsName & | getName () const |
| get the name of the attribute | |
| virtual void | extract (istream &=cin)=0 |
| extract from a stream | |
| virtual void | insertInStream (ostream &=cout) const=0 |
| insert in a stream | |
| virtual void | printDebuggingInformation (ostream &err) const=0 |
| print any usefull debugging information for this attribute | |
Protected Methods | |
| void | touch () const |
Protected Attributes | |
| PsSimulatedObject & | _owner |
| a reference to the owner of this attribute | |
| const PsName | _name |
| name of the attribute for the owner | |
Definition at line 32 of file PsAttribute.h.
|
||||||||||||
|
Constructor.
Definition at line 23 of file PsAttribute.cxx.
00023 : 00024 PsFlowable(), 00025 _owner( owner ), 00026 _name ( attributeName ) 00027 { 00028 00029 } |
|
|
Destructor.
Definition at line 33 of file PsAttribute.cxx.
00033 {
00034
00035 }
|
|
|
extract from a stream
Implements PsFlowable. Implemented in PsControlParameterDuplique< Type >, PsGenericControlParameter< Type, AncestorClass >, PsInput< Type >, PsInputAlias< Type >, PsMomeOutput< Type >, and PsOutput< Type >. Referenced by PsControlParameterDuplique< Type >::extract(). |
|
|
get the name of the attribute
Definition at line 46 of file PsAttribute.cxx. References _name. Referenced by PsOutputNT::connect(), PsOutput< Type >::empty(), PsUnInitialisedAttributeException::insertInStream(), PsOutput< Type >::pack(), PsOutput< Type >::packAllValues(), PsOutput< Type >::PsOutput(), PsInput< Type >::realConnect(), and PsAbstractInput< Type >::setConnectable().
00046 {
00047 return _name ;
00048 }
|
|
|
get the owner of this attribute
Definition at line 39 of file PsAttribute.cxx. References _owner. Referenced by PsUnInitialisedAttributeException::insertInStream().
00040 {
00041 return _owner ;
00042 }
|
|
|
insert in a stream
Implements PsFlowable. Implemented in PsGenericControlParameter< Type, AncestorClass >, PsInput< Type >, PsInputAlias< Type >, and PsOutput< Type >. |
|
|
print any usefull debugging information for this attribute
Implemented in PsAbstractInput< Type >, PsGenericControlParameter< Type, AncestorClass >, PsInput< Type >, PsInputAlias< Type >, and PsOutput< Type >. |
|
|
Definition at line 69 of file PsAttribute.h. References _owner, PsnObjectHandle::attributeRead(), and PsSimulatedObject::getObjectHandle(). Referenced by PsOutput< Type >::connectedMyself(), PsOutput< Type >::getDateOfLastExactValue(), PsOutput< Type >::getLastExactValue(), PsOutput< Type >::localGet(), and PsOutput< Type >::notifyConnectedSensitiveInputs().
00069 : 00070 inline void touch() const 00071 { 00072 PsnObjectHandle * handle = _owner.getObjectHandle() ; 00073 if ( handle != NULL ) 00074 // handle could will be null during contruction phase of the owner 00075 { 00076 handle->attributeRead() ; 00077 } } |
|
|
name of the attribute for the owner
Definition at line 85 of file PsAttribute.h. Referenced by PsMomeOutput< Type >::get(), PsInput< Type >::get(), getName(), PsOutput< Type >::printDebuggingInformation(), PsSensitiveNotifyingInput< Type >::PsSensitiveNotifyingInput(), PsInputNT::registerMe(), PsMomeOutput< Type >::set(), and PsMomeOutput< Type >::~PsMomeOutput(). |
|
| Documentation generated on Mon Nov 25 15:25:52 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |