Class for CORBA Input Ports. More...
#include <CORBAPorts.hxx>


Public Member Functions | |
| InputCorbaPort (const std::string &name, Node *node, TypeCode *type) | |
| InputCorbaPort (const InputCorbaPort &other, Node *newHelder) | |
| virtual | ~InputCorbaPort () |
| bool | edIsManuallyInitialized () const |
| Specifies if this port has been manually set by the call of InputPort::edInit. More... | |
| void | edRemoveManInit () |
| Removes eventually previous manual initialisation. More... | |
| virtual void | put (const void *data) |
| void | put (CORBA::Any *data) |
| void | releaseData () override |
| InputPort * | clone (Node *newHelder) const |
| void * | get () const |
| virtual bool | isEmpty () |
| virtual CORBA::Any * | getAny () |
| virtual std::string | getAsString () |
| returns port value as a string that can be used in a GUI for example More... | |
| virtual PyObject * | getPyObj () |
| virtual void | exSaveInit () |
| Save the current data value for further reinitialization of the port. More... | |
| virtual void | exRestoreInit () |
| Restore the saved data value to current data value. More... | |
| virtual std::string | dump () |
| virtual std::string | typeName () |
| virtual std::string | valToStr () |
| Gives a string representation of the data, for user interfaces. More... | |
| virtual void | valFromStr (std::string valstr) |
| Allows to set data from a string representation used in user interface. More... | |
Public Member Functions inherited from YACS::ENGINE::InputPort | |
| virtual | ~InputPort () |
| std::string | getNameOfTypeOfCurrentInstance () const |
| virtual InputPort * | getPublicRepresentant () |
| returns the final physical port behind 'this'. More... | |
| virtual bool | isIntermediate () const |
| bool | edIsInitialized () const |
| soon deprecated More... | |
| template<class T > | |
| void | edInit (T value) |
| void | edInit (Any *value) |
| void | edInit (const std::string &impl, const void *value) |
| Initialize the port with an object (value) coming from a world with implementation impl. More... | |
| virtual void | checkBasicConsistency () const |
| Check basically that this port has one chance to be specified on time. It's a necessary condition not sufficient at all. More... | |
| virtual void | exInit (bool start) |
| virtual std::string | getHumanRepr () |
| virtual void | setStringRef (std::string strRef) |
| bool | canBeNull () const |
Public Member Functions inherited from YACS::ENGINE::DataFlowPort | |
| TypeOfChannel | getTypeOfChannel () const |
| returns type of channel the port will use for data exchange on runtime : DATAFLOW or DATASTREAM. More... | |
| virtual | ~DataFlowPort () |
Public Member Functions inherited from YACS::ENGINE::DataPort | |
| TypeCode * | edGetType () const |
| void | edSetType (TypeCode *type) |
| std::string | getName () const |
| void | setName (std::string theName) |
| bool | isDifferentTypeOf (const DataPort *other) const |
Public Member Functions inherited from YACS::ENGINE::Port | |
| virtual | ~Port () |
| Node * | getNode () const |
| int | getNumId () const |
| void | modified () |
Public Member Functions inherited from YACS::ENGINE::InPort | |
| virtual int | edGetNumberOfLinks () const |
| Returns number of physical backlinks NOT number of user backlinks. More... | |
| virtual std::set< OutPort * > | edSetOutPort () const |
| Returns physical backlinks NOT user backlinks. More... | |
| bool | canSafelySqueezeMemory () const |
| bool | isBackLinked () const |
| virtual | ~InPort () |
Protected Attributes | |
| CORBA::Any | _data |
| CORBA::Any * | _initData |
| CORBA::ORB_ptr | _orb |
Protected Attributes inherited from YACS::ENGINE::InputPort | |
| Any * | _initValue |
| std::string | _stringRef |
| bool | _canBeNull |
Protected Attributes inherited from YACS::ENGINE::DataPort | |
| TypeCode * | _type |
| std::string | _name |
Protected Attributes inherited from YACS::ENGINE::Port | |
| Node * | _node |
| int | _id |
Protected Attributes inherited from YACS::ENGINE::InPort | |
| std::set< std::pair< OutPort *, bool > > | _backLinks |
Private Attributes | |
| YACS::BASES::Mutex | _mutex |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::ENGINE::DataPort | |
| static DataPort * | isCrossingType (const std::vector< DataPort * > &historyOfLink) |
Static Public Attributes inherited from YACS::ENGINE::InputPort | |
| static const char | NAME [] ="InputPort" |
Static Public Attributes inherited from YACS::ENGINE::DataFlowPort | |
| static const char | NAME [] ="DataFlowPort" |
Static Public Attributes inherited from YACS::ENGINE::DataPort | |
| static const char | NAME [] ="DataPort" |
Protected Member Functions inherited from YACS::ENGINE::InputPort | |
| InputPort (const InputPort &other, Node *newHelder) | |
| InputPort (const std::string &name, Node *node, TypeCode *type, bool canBeNull=false) | |
| void | releaseDataUnsafe () |
Protected Member Functions inherited from YACS::ENGINE::DataFlowPort | |
| DataFlowPort (const DataFlowPort &other, Node *newHelder) | |
| DataFlowPort (const std::string &name, Node *node, TypeCode *type) | |
Protected Member Functions inherited from YACS::ENGINE::DataPort | |
| virtual | ~DataPort () |
| DataPort (const DataPort &other, Node *newHelder) | |
| DataPort (const std::string &name, Node *node, TypeCode *type) | |
Protected Member Functions inherited from YACS::ENGINE::Port | |
| Port (Node *node) | |
| Port (const Port &other, Node *newHelder) | |
Protected Member Functions inherited from YACS::ENGINE::InPort | |
| InPort (const InPort &other, Node *newHelder) | |
| InPort (const std::string &name, Node *node, TypeCode *type) | |
| void | edRemoveAllLinksLinkedWithMe () |
| virtual void | edNotifyReferencedBy (OutPort *fromPort, bool isLoopProof=true) |
| virtual void | edNotifyDereferencedBy (OutPort *fromPort) |
| virtual void | getAllRepresentants (std::set< InPort * > &repr) const |
Static Protected Attributes inherited from YACS::ENGINE::Port | |
| static int | _total = 0 |
| static const char | NAME [] ="Port" |
Definition at line 100 of file CORBAPorts.cxx.
References _orb, YACS::ENGINE::RuntimeSALOME::getOrb(), and YACS::ENGINE::getSALOMERuntime().
Referenced by clone().
| InputCorbaPort::InputCorbaPort | ( | const InputCorbaPort & | other, |
| Node * | newHelder | ||
| ) |
Definition at line 108 of file CORBAPorts.cxx.
References _data, _initData, _orb, YACS::ENGINE::RuntimeSALOME::getOrb(), and YACS::ENGINE::getSALOMERuntime().
|
virtual |
Implements YACS::ENGINE::InputPort.
Definition at line 191 of file CORBAPorts.cxx.
References InputCorbaPort().
|
virtual |
Reimplemented from YACS::ENGINE::InputPort.
Definition at line 258 of file CORBAPorts.cxx.
References _data, YACS::ENGINE::InputPort::_stringRef, YACS::ENGINE::convertCorbaXml(), YACS::ENGINE::DataPort::edGetType(), and YACS::ENGINE::Objref.
|
virtual |
Specifies if this port has been manually set by the call of InputPort::edInit.
Reimplemented from YACS::ENGINE::InputPort.
Definition at line 127 of file CORBAPorts.cxx.
References _initData.
|
virtual |
Removes eventually previous manual initialisation.
Reimplemented from YACS::ENGINE::InputPort.
Definition at line 132 of file CORBAPorts.cxx.
References _initData, and YACS::ENGINE::InputPort::edRemoveManInit().
|
virtual |
Restore the saved data value to current data value.
If no data has been saved (_initData == 0) don't restore
Implements YACS::ENGINE::InputPort.
Definition at line 252 of file CORBAPorts.cxx.
|
virtual |
Save the current data value for further reinitialization of the port.
Implements YACS::ENGINE::InputPort.
Definition at line 240 of file CORBAPorts.cxx.
|
virtual |
Implements YACS::ENGINE::InputPort.
Definition at line 196 of file CORBAPorts.cxx.
References _data.
|
virtual |
|
virtual |
returns port value as a string that can be used in a GUI for example
Do nothing here. To subclass
Reimplemented from YACS::ENGINE::DataPort.
Definition at line 226 of file CORBAPorts.cxx.
References YACS::ENGINE::convertPyObjectToString(), and getPyObj().
|
virtual |
Definition at line 213 of file CORBAPorts.cxx.
References _mutex, YACS::ENGINE::convertCorbaPyObject(), YACS::ENGINE::DataPort::edGetType(), and getAny().
Referenced by getAsString(), and valToStr().
|
virtual |
Reimplemented from YACS::ENGINE::InputPort.
Definition at line 201 of file CORBAPorts.cxx.
References _data.
|
virtual |
Implements YACS::ENGINE::InputPort.
Definition at line 139 of file CORBAPorts.cxx.
Referenced by exRestoreInit().
| void InputCorbaPort::put | ( | CORBA::Any * | data | ) |
Definition at line 168 of file CORBAPorts.cxx.
References _data, _mutex, YACS::ENGINE::InputPort::_stringRef, DEBTRACE, display(), registerObj(), and releaseObj().
|
overridevirtual |
Implements YACS::ENGINE::InputPort.
Definition at line 164 of file CORBAPorts.cxx.
|
inlinevirtual |
Reimplemented from YACS::ENGINE::InputPort.
Definition at line 64 of file CORBAPorts.hxx.
|
virtual |
Allows to set data from a string representation used in user interface.
Implemented in derived classes, depending on runtime, to set the data from its user interface representation. Typical use, a Python string representation that can be used in edition or restitution.
Reimplemented from YACS::ENGINE::DataFlowPort.
Definition at line 288 of file CORBAPorts.cxx.
|
virtual |
Gives a string representation of the data, for user interfaces.
Implemented in derived classes, depending on runtime, to provide the data representation for user interfaces. Typical use, a Python string representation that can be used in edition or restitution.
Reimplemented from YACS::ENGINE::DataFlowPort.
Definition at line 277 of file CORBAPorts.cxx.
References getPyObj().
|
protected |
Definition at line 68 of file CORBAPorts.hxx.
Referenced by dump(), exSaveInit(), get(), getAny(), InputCorbaPort(), isEmpty(), put(), and ~InputCorbaPort().
|
protected |
Definition at line 69 of file CORBAPorts.hxx.
Referenced by edIsManuallyInitialized(), edRemoveManInit(), exRestoreInit(), exSaveInit(), InputCorbaPort(), and ~InputCorbaPort().
|
private |
Definition at line 72 of file CORBAPorts.hxx.
Referenced by getPyObj(), and put().
|
protected |
Definition at line 70 of file CORBAPorts.hxx.
Referenced by InputCorbaPort().