vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::IOPinBase Class Referenceabstract

Base class that defines the very basic method that every IO pin will have. More...

#include <BaseClass.h>

Inheritance diagram for vrecko::IOPinBase:
vrecko::InputPinBase vrecko::IORequestPinBase vrecko::OutputPinBase vrecko::InputPin< _MessageType > vrecko::RequestInputPinBase vrecko::RequestOutputPinBase vrecko::OutputPin< _MessageType > vrecko::RequestInputPin< _MessageType, _ReturningMessageType > vrecko::RequestOutputPin< _MessageType, _ReturningMessageType >

Public Member Functions

std::string & getPinName ()
 Returns the name of the current IO pin. Every pin must have a name that is unique in its ability and in its "type", i.e. two input pins with the same name should exist, but you can create input and also output pins with the identical name. More...
 
virtual VreckoMessagecreateCompatibleMessage ()=0
 Creates an instance of a message type that is recognized by this input/output. More...
 

Protected Attributes

std::string pinName
 
BaseClassowner
 

Detailed Description

Base class that defines the very basic method that every IO pin will have.

The input or output pins are the basis for message sending between objects in Vrecko. All the usual messages should pass through some output pin and are received in other object's input pin.

Author
Vit Kovalcik
Date
2011

Member Function Documentation

virtual VreckoMessage* vrecko::IOPinBase::createCompatibleMessage ( )
pure virtual

Creates an instance of a message type that is recognized by this input/output.

If you will create a new descendant class of type XY, this method will generally be:

virtual VreckoMessage* createCompatibleMessage() { return new XY; };

Returns
(VreckoMessage*)

Implemented in vrecko::RequestOutputPin< _MessageType, _ReturningMessageType >, vrecko::RequestInputPin< _MessageType, _ReturningMessageType >, vrecko::OutputPin< _MessageType >, and vrecko::InputPin< _MessageType >.

std::string& vrecko::IOPinBase::getPinName ( )
inline

Returns the name of the current IO pin. Every pin must have a name that is unique in its ability and in its "type", i.e. two input pins with the same name should exist, but you can create input and also output pins with the identical name.

Returns
(std::string&) Reference to a pin name.

Member Data Documentation

BaseClass* vrecko::IOPinBase::owner
protected
std::string vrecko::IOPinBase::pinName
protected

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