gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
JackBaseWithPortNames Class Reference

#include <JackBase.H>

Inheritance diagram for JackBaseWithPortNames:
[legend]
Collaboration diagram for JackBaseWithPortNames:
[legend]

Public Member Functions

void findInputConnections ()
 
- Public Member Functions inherited from JackBase
 JackBase ()
 
 JackBase (string clientName_)
 
 JackBase (string clientName_, string serverName)
 
virtual ~JackBase ()
 Destructor. More...
 
virtual int stopClient (void)
 
virtual int disconnect (void)
 
int getSampleRate (void) const
 
virtual int createPorts (string inName, int inCnt, string outName, int outCnt)
 
virtual int destroyPorts ()
 
void getPhysicalPorts (vector< jack_port_t *> &inPorts, vector< jack_port_t *> &outPorts)
 
void getPhysicalPortCount (int &in, int &out)
 
bool connected ()
 
virtual int connect (string clientName_)
 
virtual int connect (const string &clientName_, const string &serverName)
 
virtual void print (ostream &os)
 
string getClientName ()
 
virtual void setClientName (string cn)
 
string portNameFromPort (jack_port_id_t p)
 
string portNameFromPort (jack_port_t *p)
 
string clientNameFromPort (jack_port_id_t p)
 
string clientNameFromPort (jack_port_t *p)
 
string clientNameFromPortName (string fullPortName)
 
string clientNameFromPortNames (string fullPortName, string shortPortName)
 
string shortPortNameFromPortName (const string fullPortName)
 
bool operator== (const string &cn)
 
int getInputPortSize ()
 
jack_port_t * getInputPort (int i)
 
jack_port_t * getOutputPort (int i)
 
void addInputPort (jack_port_t *inP)
 
void addOutputPort (jack_port_t *outP)
 
int populatInOutPorts (const string &inName, vector< string > &inPorts, const string &outName, vector< string > &outPorts)
 
int connectPorts (const string inName, const string outName)
 
virtual int disconnectPorts (const string &inName, const string &outName)
 
void setClient (jack_client_t *c)
 

Public Attributes

map< string, map< string, vector< string > > > inputPortNamesAndConnections
 The input port names which map to a vector of the connected clients and each of their connected ports. More...
 
vector< string > outputPortNames
 The output port names. More...
 
- Public Attributes inherited from JackBase
bool connect1To1
 When true, then connections are made in a 1 to 1 manner. When False, then connections are made in an all to all manner. More...
 

Additional Inherited Members

- Protected Member Functions inherited from JackBase
virtual void determineLatencies ()
 
int getPortListAndCount (JackPortFlags flags, vector< jack_port_t *> *ports, const char *portNamePattern, const char *typeNamePattern)
 
int getPortListAndCount (JackPortFlags flags, vector< string > *ports, const char *portNamePattern, const char *typeNamePattern)
 
virtual void reSyncPorts (void)
 
virtual void reSyncConnections (void)
 
- Protected Attributes inherited from JackBase
jack_client_t * client
 The jack client. More...
 
string clientName
 The name of this client. More...
 
jack_options_t jackOptions
 Options for jack. More...
 
jack_status_t status
 The status of jack. More...
 
int physicalInputPortCnt
 The number of physical input ports. More...
 
int physicalOutputPortCnt
 The number of physical input ports. More...
 
vector< jack_port_t * > inputPorts
 The input ports. More...
 
vector< jack_port_t * > outputPorts
 The output ports. More...
 
vector< jack_nframes_t > inputLatencies
 The input latencies, one for each port. More...
 
vector< jack_nframes_t > outputLatencies
 The output latencies, one for each port. More...
 

Detailed Description

Adds port name member variables to the JackBase class. Inter client connections are also managed here. Only input port connections are stored on the assumption that they are all connected to output ports.

Definition at line 671 of file JackBase.H.

Member Function Documentation

◆ findInputConnections()

void JackBaseWithPortNames::findInputConnections ( )
inline

Iterating through the inputPorts, find what they are connected to.

Definition at line 678 of file JackBase.H.

Member Data Documentation

◆ inputPortNamesAndConnections

map<string, map<string, vector<string> > > JackBaseWithPortNames::inputPortNamesAndConnections

The input port names which map to a vector of the connected clients and each of their connected ports.

Definition at line 673 of file JackBase.H.

◆ outputPortNames

vector<string> JackBaseWithPortNames::outputPortNames

The output port names.

Definition at line 674 of file JackBase.H.


The documentation for this class was generated from the following file:
gtkIOStream: JackBaseWithPortNames Class Reference
GTK+ IOStream  Beta