Class for Study output Ports. More...
#include <StudyPorts.hxx>
Public Member Functions | |
OutputStudyPort (const std::string &name, Node *node, TypeCode *type) | |
OutputStudyPort (const OutputStudyPort &other, Node *newHelder) | |
OutputPort * | clone (Node *newHelder) const |
void | setData (const std::string &data) |
std::string | getData () |
virtual void | putIOR (const std::string &ior) |
virtual std::string | dump () |
virtual std::string | getPyObj () |
virtual std::string | getAsString () |
returns port value as a string that can be used in a GUI for example More... | |
virtual std::string | typeName () |
virtual void | getDataFromStudy (SALOMEDS::Study_var myStudy) |
Public Member Functions inherited from YACS::ENGINE::OutputXmlPort | |
OutputXmlPort (const std::string &name, Node *node, TypeCode *type) | |
OutputXmlPort (const OutputXmlPort &other, Node *newHelder) | |
virtual void | put (const void *data) throw (ConversionException) |
void | put (const char *data) throw (ConversionException) |
virtual const char * | get () const throw (ConversionException) |
OutputPort * | clone (Node *newHelder) const |
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::OutputPort | |
virtual | ~OutputPort () |
std::set< InPort * > | edSetInPort () const |
bool | isAlreadyLinkedWith (InPort *withp) const |
bool | isAlreadyInSet (InputPort *inputPort) const |
bool | isConnected () const |
std::string | getNameOfTypeOfCurrentInstance () const |
int | removeInPort (InPort *inPort, bool forward) throw (Exception) |
virtual bool | edAddInputPort (InputPort *phyPort) throw (Exception) |
virtual bool | edAddInPropertyPort (InPropertyPort *phyPort) throw (Exception) |
virtual int | edRemoveInputPort (InputPort *inputPort, bool forward) throw (Exception) |
bool | addInPort (InPort *inPort) throw (Exception) |
void | edRemoveAllLinksLinkedWithMe () throw (Exception) |
virtual void | exInit () |
virtual void | checkBasicConsistency () const throw (Exception) |
Check validity of output port. Nothing on base class. More... | |
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::OutPort | |
virtual void | checkConsistency (LinkInfo &info) const |
virtual int | edGetNumberOfOutLinks () const |
virtual void | getAllRepresented (std::set< OutPort * > &represented) const |
virtual | ~OutPort () |
std::vector< DataPort * > | calculateHistoryOfLinkWith (InPort *end) |
Protected Attributes | |
std::string | _storeData |
Protected Attributes inherited from YACS::ENGINE::OutputXmlPort | |
std::string | _data |
Protected Attributes inherited from YACS::ENGINE::OutputPort | |
std::set< InputPort * > | _setOfInputPort |
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::OutputPort | |
static const char | NAME [] ="OutputPort" |
Protected Member Functions inherited from YACS::ENGINE::OutputPort | |
OutputPort (const OutputPort &other, Node *newHelder) | |
OutputPort (const std::string &name, Node *node, TypeCode *type) | |
const std::set< InputPort * > & | getSetOfPhyLinks () const |
Returns physical links linked to this. Contrary to edSetInPort that returns semantic links. More... | |
Static Protected Attributes inherited from YACS::ENGINE::Port | |
static int | _total = 0 |
static const char | NAME [] ="Port" |
YACS::ENGINE::OutputStudyPort::OutputStudyPort | ( | const std::string & | name, |
Node * | node, | ||
TypeCode * | type | ||
) |
Definition at line 51 of file StudyPorts.cxx.
Referenced by clone().
YACS::ENGINE::OutputStudyPort::OutputStudyPort | ( | const OutputStudyPort & | other, |
Node * | newHelder | ||
) |
Definition at line 58 of file StudyPorts.cxx.
|
virtual |
Implements YACS::ENGINE::OutputPort.
Definition at line 65 of file StudyPorts.cxx.
References OutputStudyPort().
|
virtual |
Reimplemented from YACS::ENGINE::OutputXmlPort.
Definition at line 121 of file StudyPorts.cxx.
References YACS::ENGINE::OutputXmlPort::_data, _storeData, and DEBTRACE.
|
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 133 of file StudyPorts.cxx.
References getData().
Referenced by YACS::HMI::CommandSetOutPortValue::localExecute(), and YACS::HMI::CommandSetOutPortValue::localReverse().
std::string YACS::ENGINE::OutputStudyPort::getData | ( | ) |
Definition at line 77 of file StudyPorts.cxx.
References _storeData, and DEBTRACE.
Referenced by YACS::ENGINE::StudyInNode::checkBasicConsistency(), getAsString(), getDataFromStudy(), getPyObj(), and YACS::ENGINE::VisitorSaveSalomeSchema::writeStudyInNodeParameters().
|
virtual |
Definition at line 138 of file StudyPorts.cxx.
References DEBTRACE, YACS::ENGINE::Double, YACS::ENGINE::DataPort::edGetType(), getData(), YACS::ENGINE::Int, YACS::ENGINE::Objref, YACS::ENGINE::OutputXmlPort::put(), and putIOR().
Referenced by YACS::ENGINE::StudyInNode::execute().
|
virtual |
Definition at line 129 of file StudyPorts.cxx.
References getData().
|
virtual |
Definition at line 83 of file StudyPorts.cxx.
References YACS::ENGINE::Array, YACS::ENGINE::Bool, DEBTRACE, YACS::ENGINE::Double, YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::Int, YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::Objref, YACS::ENGINE::OutputXmlPort::put(), YACS::ENGINE::Sequence, YACS::ENGINE::String, and YACS::ENGINE::Struct.
Referenced by getDataFromStudy().
void YACS::ENGINE::OutputStudyPort::setData | ( | const std::string & | data | ) |
Definition at line 70 of file StudyPorts.cxx.
References _storeData, DEBTRACE, and YACS::ENGINE::Port::modified().
Referenced by YACS::ENGINE::StudyInNode::setData().
|
inlinevirtual |
Reimplemented from YACS::ENGINE::OutputPort.
Definition at line 44 of file StudyPorts.hxx.
|
protected |
Definition at line 47 of file StudyPorts.hxx.