#include <LuxConnection.h>
Public Types | |
typedef Lux | ConnectionTag_t |
typedef Connection< Lux > | Connection_t |
Public Member Functions | |
Connection (const char *conname) | |
virtual | ~Connection () |
LuxAppPointer & | lux () |
virtual bool | connected () const |
Return whether we are connected properly right now. | |
void | ready () |
void | poll () |
virtual void | close () |
Completely close the connection and remove all connectors. | |
template<class T > | |
ConnectorBase * | connect (const char *cname, const T &obj, int mode=ConnectionBase::out) |
template<class T1 , class T2 > | |
ConnectorBase * | connect (const char *cname, const T1 &obj1, const T2 &obj2, int mode) |
virtual void | interact (const char *=0) |
Allow for interaction with the connection. |
typedef Lux Connection< Lux >::ConnectionTag_t |
typedef Connection<Lux> Connection< Lux >::Connection_t |
Connection< Lux >::Connection | ( | const char * | conname | ) | [inline] |
virtual Connection< Lux >::~Connection | ( | ) | [inline, virtual] |
LuxAppPointer& Connection< Lux >::lux | ( | ) | [inline] |
virtual bool Connection< Lux >::connected | ( | ) | const [inline, virtual] |
void Connection< Lux >::ready | ( | ) | [inline] |
void Connection< Lux >::poll | ( | ) | [inline] |
virtual void Connection< Lux >::close | ( | ) | [inline, virtual] |
Completely close the connection and remove all connectors.
This is the equivalent of running the destructor, using this routine you can control when the connection is closed. By default it just removes all connectors.
Reimplemented from ConnectionBase.
ConnectorBase* Connection< Lux >::connect | ( | const char * | cname, | |
const T & | obj, | |||
int | mode = ConnectionBase::out | |||
) | [inline] |
References ConnectionBase::connect().
ConnectorBase* Connection< Lux >::connect | ( | const char * | cname, | |
const T1 & | obj1, | |||
const T2 & | obj2, | |||
int | mode | |||
) | [inline] |
References ConnectionBase::connect().
virtual void Connection< Lux >::interact | ( | const char * | = 0 |
) | [inline, virtual] |
Allow for interaction with the connection.
An optional string can be provided to tell how to do the interaction.
Reimplemented from ConnectionBase.
References Pooma::poll().