void detachSocket(Socket &socket)
std::vector< const Connection * > ConnectionTable
Vector of Connection pointers.
virtual void loadState(const ObjectState *state)
const Connection & connection(const Socket &socket) const
virtual ObjectState * saveState() const
ConnectionTable connections_
Contains all the connections to sockets.
Segment * destinationSegment() const
void moveBefore(Segment &segment)
static const std::string OSKEY_DESTINATION
ObjectState attribute key for destination segment name.
void moveAfter(Segment &segment)
Segment * sourceSegment_
Source segment.
static const std::string OSNAME_SEGMENT
ObjectState name for Segment.
bool hasSourceSegment() const
std::string name_
Name of the segment.
void setName(const std::string &name)
Bus * parent_
The parent bus.
Segment * sourceSegment() const
bool isConnectedTo(const Socket &socket) const
bool hasDestinationSegment() const
static const std::string OSKEY_NAME
ObjectState attribute key for segment name.
int connectionCount() const
void removeConnection(const Connection *connection)
Segment * destinationSegment_
Destination segment.
void loadStateWithoutReferences(const ObjectState *state)
void attachSocket(Socket &socket)