|
Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
|
List of clients. More...
#include <JClientList.hh>
Classes | |
| class | JComparator |
| Auxiliary class for comparing clients. More... | |
Public Member Functions | |
| JClientList () | |
| Default constructor. | |
| std::pair< iterator, bool > | insert (const JClient &client) |
| Insert client. | |
| iterator | find (const JClient &client) |
| Find client. | |
| iterator | find (const std::string &buffer) |
| Find client by its full name. | |
| void | start () |
| Start processes. | |
| void | stop (const int signal=-9) |
| Stop processes. | |
| unsigned int | count (const JClient::JMode mode) const |
| Get number of clients with given mode. | |
| unsigned int | count () const |
| Get number of active clients with born count exceeding died count. | |
| unsigned int | count (const CHSM::state &state) const |
| Get number of active clients in given state. | |
Protected Attributes | |
| const JComparator | comparator |
List of clients.
Definition at line 22 of file JClientList.hh.
|
inline |
Default constructor.
Definition at line 66 of file JClientList.hh.
Insert client.
| client | client |
Definition at line 78 of file JClientList.hh.
Find client.
| client | client |
Definition at line 101 of file JClientList.hh.
Find client by its full name.
| buffer | full name of client (possibly followed by more text) |
Definition at line 118 of file JClientList.hh.
|
inline |
Start processes.
Definition at line 134 of file JClientList.hh.
Stop processes.
| signal | signal |
Definition at line 149 of file JClientList.hh.
|
inline |
Get number of clients with given mode.
| mode | mode |
Definition at line 165 of file JClientList.hh.
Get number of active clients with born count exceeding died count.
Definition at line 184 of file JClientList.hh.
Get number of active clients in given state.
| state | state |
Definition at line 204 of file JClientList.hh.
|
protected |
Definition at line 59 of file JClientList.hh.