Version: 8.3.0
YACS::ENGINE::DataFlowPort Class Reference

#include <DataFlowPort.hxx>

Inheritance diagram for YACS::ENGINE::DataFlowPort:
Collaboration diagram for YACS::ENGINE::DataFlowPort:

Public Member Functions

std::string getNameOfTypeOfCurrentInstance () const
 
TypeOfChannel getTypeOfChannel () const
 returns type of channel the port will use for data exchange on runtime : DATAFLOW or DATASTREAM. More...
 
virtual ~DataFlowPort ()
 
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::DataPort
TypeCodeedGetType () const
 
void edSetType (TypeCode *type)
 
std::string getName () const
 
void setName (std::string theName)
 
std::string getNameOfTypeOfCurrentInstance () const
 
bool isDifferentTypeOf (const DataPort *other) const
 
virtual void edRemoveAllLinksLinkedWithMe ()=0 throw (Exception)
 
virtual std::string getAsString ()
 returns port value as a string that can be used in a GUI for example More...
 
- Public Member Functions inherited from YACS::ENGINE::Port
virtual ~Port ()
 
NodegetNode () const
 
int getNumId () const
 
void modified ()
 

Static Public Attributes

static const char NAME [] ="DataFlowPort"
 
- Static Public Attributes inherited from YACS::ENGINE::DataPort
static const char NAME [] ="DataPort"
 

Protected Member Functions

 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::ENGINE::DataPort
static DataPortisCrossingType (const std::vector< DataPort * > &historyOfLink)
 
- Protected Attributes inherited from YACS::ENGINE::DataPort
TypeCode_type
 
std::string _name
 
- Static Protected Attributes inherited from YACS::ENGINE::Port
static int _total = 0
 
static const char NAME [] ="Port"
 

Detailed Description

Definition at line 32 of file DataFlowPort.hxx.

Constructor & Destructor Documentation

DataFlowPort::DataFlowPort ( const DataFlowPort other,
Node newHelder 
)
protected

Definition at line 27 of file DataFlowPort.cxx.

27  :DataPort(other,newHelder),Port(other,newHelder)
28 {
29 }
DataFlowPort::DataFlowPort ( const std::string &  name,
Node node,
TypeCode type 
)
protected

Definition at line 31 of file DataFlowPort.cxx.

31  :DataPort(name,node,type),Port(node)
32 {
33 }
DataFlowPort::~DataFlowPort ( )
virtual

Definition at line 35 of file DataFlowPort.cxx.

36 {
37 }

Member Function Documentation

string DataFlowPort::getNameOfTypeOfCurrentInstance ( ) const
virtual

Reimplemented from YACS::ENGINE::Port.

Reimplemented in YACS::ENGINE::OutputPort, YACS::ENGINE::InputPort, and YACS::ENGINE::InPropertyPort.

Definition at line 39 of file DataFlowPort.cxx.

References NAME.

40 {
41  return NAME;
42 }
TypeOfChannel YACS::ENGINE::DataFlowPort::getTypeOfChannel ( ) const
inlinevirtual

returns type of channel the port will use for data exchange on runtime : DATAFLOW or DATASTREAM.

Implements YACS::ENGINE::DataPort.

Definition at line 41 of file DataFlowPort.hxx.

References YACS::ENGINE::DATAFLOW.

41 { return DATAFLOW; }
void DataFlowPort::valFromStr ( std::string  valstr)
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 in YACS::ENGINE::OutputPyPort, YACS::ENGINE::OutputCorbaPort, YACS::ENGINE::InputPyPort, YACS::ENGINE::OutputXmlPort, YACS::ENGINE::InputCorbaPort, and YACS::ENGINE::InputXmlPort.

Definition at line 61 of file DataFlowPort.cxx.

62 {
63 }
std::string DataFlowPort::valToStr ( )
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 in YACS::ENGINE::OutputPyPort, YACS::ENGINE::OutputCorbaPort, YACS::ENGINE::InputPyPort, YACS::ENGINE::OutputXmlPort, YACS::ENGINE::InputCorbaPort, and YACS::ENGINE::InputXmlPort.

Definition at line 50 of file DataFlowPort.cxx.

51 {
52  return "no display conversion available";
53 }

Member Data Documentation

const char DataFlowPort::NAME ="DataFlowPort"
static

Definition at line 35 of file DataFlowPort.hxx.

Referenced by getNameOfTypeOfCurrentInstance().


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