Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsInputNT Class Reference

class PsInputNT defines what an input is, regardless of the encapsulated data type More...

#include <PsInputNT.h>

Inheritance diagram for PsInputNT:

Inheritance graph
[legend]
Collaboration diagram for PsInputNT:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsInputNT (PsSimulatedObject &owner, const PsName &nom)
 Constructor.

virtual ~PsInputNT (void)
 Destructor.

virtual bool connect (const PsName &objectName, const PsName &outputName)=0
 how to connect an input to the coresponding output

virtual bool connect (PsSimulatedObject &object, const PsName &outputName)=0
 how to connect an input to the coresponding output

virtual bool connect (PsSimulatedObject *pointerToObject, const PsName &outputName)=0
 how to connect an input to the coresponding output

virtual const PsOutputNTgetConnectedOutput () const=0
 get a pointer to output this input is connected to

virtual void disconnect ()=0
 disconnect the input from the connected output

virtual void registerMe ()
 add the input to list of inputs of the owner

virtual bool realConnect (PsOutputNT *output)=0
 the real connecting member function


Detailed Description

class PsInputNT defines what an input is, regardless of the encapsulated data type

Definition at line 31 of file PsInputNT.h.


Constructor & Destructor Documentation

PsInputNT::PsInputNT PsSimulatedObject   owner,
const PsName   nom
 

Constructor.

Definition at line 21 of file PsInputNT.cxx.

00021                                                                         : 
00022    PsAttribute (owner, inputName) 
00023 {
00024 
00025 }

PsInputNT::~PsInputNT void    [virtual]
 

Destructor.

Definition at line 28 of file PsInputNT.cxx.

00028                       {
00029 
00030 }


Member Function Documentation

virtual bool PsInputNT::connect PsSimulatedObject   pointerToObject,
const PsName   outputName
[pure virtual]
 

how to connect an input to the coresponding output

Parameters:
pointerToObject the object owning outputName
outputName the name of the output to be connected to
Returns:
bool connection successfull

Implemented in PsAbstractInput< Type >, PsInput< Type >, and PsInputAlias< Type >.

virtual bool PsInputNT::connect PsSimulatedObject   object,
const PsName   outputName
[pure virtual]
 

how to connect an input to the coresponding output

Parameters:
object the object owning outputName
outputName the name of the output to be connected to
Returns:
bool connection successfull

Implemented in PsAbstractInput< Type >, PsInput< Type >, and PsInputAlias< Type >.

virtual bool PsInputNT::connect const PsName   objectName,
const PsName   outputName
[pure virtual]
 

how to connect an input to the coresponding output

Parameters:
objectName the object owning outputName
outputName the name of the output to be connected to
Returns:
bool connecting successfull

Implemented in PsAbstractInput< Type >, PsInput< Type >, and PsInputAlias< Type >.

virtual void PsInputNT::disconnect   [pure virtual]
 

disconnect the input from the connected output

Implemented in PsInput< Type >, PsInputAlias< Type >, and PsSensitiveInput< Type >.

virtual const PsOutputNT* PsInputNT::getConnectedOutput   const [pure virtual]
 

get a pointer to output this input is connected to

Implemented in PsAbstractInput< Type >, PsInput< Type >, and PsInputAlias< Type >.

virtual bool PsInputNT::realConnect PsOutputNT   output [pure virtual]
 

the real connecting member function

Parameters:
output a pointer to the real output to connect to
Returns:
connection was successfull

Implemented in PsInput< Type >, and PsInputAlias< Type >.

Referenced by PsOutputNT::connect().

void PsInputNT::registerMe   [virtual]
 

add the input to list of inputs of the owner

Definition at line 32 of file PsInputNT.cxx.

References PsSimulatedObject::_inputTable, PsAttribute::_name, PsAttribute::_owner, and PsNameToPointerMap< PsInputNT >::addObjectWithIndex().

Referenced by PsAbstractInput< Type >::PsAbstractInput().

00033 {
00034    _owner._inputTable.addObjectWithIndex (_name, this) ;
00035 }


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

Documentation generated on Mon Nov 25 15:26:07 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001