CCAFFEINE
0.8.8
|
#include <UserPortData.h>
Public Member Functions | |
UserPortData (const ::std::string &name_, const ::std::string &type_,::ccafeopq::TypeMap_shared &tm_, int serial) | |
::ccafeopq::TypeMap_shared | getUserPortProperties () |
void | setUserPortProperties (::ccafeopq::TypeMap_shared tm_) |
::std::string | getPortName () const |
::std::string | getPortType () const |
bool | getIsActive () |
bool | getIsConnected () |
const ::std::vector < ConnectionID_ptr > & | getConnectionIDs () const |
ConnectionID_ptr | addConnection (Gizzard *user, const ::std::string &uname, Gizzard *provider, const ::std::string &pname,::ccafeopq::Port *p) |
ConnectionID_ptr | addSelfConnection (Gizzard *user, const ::std::string &uname,::ccafeopq::Port *p) |
int | removeConnection (ConnectionID_ptr &cp) |
int | removeConnections () |
int | getNumberOfConnections () |
int | getMaxConnections () |
int | getMinConnections () |
::ccafeopq::Port * | getProvided () |
void | releaseProvided () |
::std::vector< ::ccafeopq::Port * > | getAllProvided () |
void | releaseAllProvided () |
::std::string | toString () const |
Static Public Member Functions | |
static void | initDefaultProperties (::ccafeopq::TypeMap_shared t, const std::string &name, const std::string &type) |
Private Member Functions | |
void | shutdown () |
Private Attributes | |
::ccafeopq::TypeMap_shared | tm |
::std::string | name |
::std::string | type |
int | serial |
bool | isActive |
bool | isSelfConnected |
::std::vector< ConnectionID_ptr > | conns |
Friends | |
class | Gizzard |
container of provided port and all its related data. These should only exist inside the lists inside the gizzard, but they must follow stl copy semantics.
UserPortData::UserPortData | ( | const ::std::string & | name_, |
const ::std::string & | type_, | ||
::ccafeopq::TypeMap_shared & | tm_, | ||
int | serial | ||
) |
create a provides port record. the typemap pushed in must be already created, not just an empty shared ptr. serial must be a unique int.
::ccafeopq::TypeMap_shared UserPortData::getUserPortProperties | ( | ) |
return a *copy* of the typemap.
int UserPortData::removeConnection | ( | ConnectionID_ptr & | cp | ) |
return number of active connections broken in process
int UserPortData::removeConnections | ( | ) |
return number of active connections broken in process