pianod2
multisource multiuser scriptable networked music player
Classes | Public Member Functions | Protected Member Functions | List of all members
Football::Service< Connection > Class Template Reference

Football Service. More...

#include <football.h>

Inheritance diagram for Football::Service< Connection >:
Inheritance graph
[legend]
Collaboration diagram for Football::Service< Connection >:
Collaboration graph
[legend]

Classes

struct  const_iterator
 
struct  iterator
 

Public Member Functions

 Service (const FB_SERVICE_OPTIONS options, Service *parent=nullptr)
 
ConnectionnewConnectionFromFile (const std::string &filename)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
- Public Member Functions inherited from Football::ServiceBase
void close (void)
 Initiate shutdown of a service. More...
 
ConnectionnewConnectionFromFile (const std::string &filename)
 Create a new "connection" that reads from a file. More...
 
ConnectionnewLoopbackConnection (int *loopback)
 Create a new connection that loops back to the service. More...
 
virtual ssize_t conditional_print (bool(*callback)(FB_CONNECTION *), const std::string &message) override
 
virtual void serviceShutdown (void)
 Invoked when a service is shutting down. More...
 
- Public Member Functions inherited from Football::Thingie
virtual ~Thingie ()
 
ssize_t print (const std::string &message)
 Add a string to the output queues. More...
 
ssize_t conditional_broadcast (bool(*callback)(FB_CONNECTION *), const std::string &message)
 Send a message to some output queues depending on the callback function return value. More...
 
ssize_t printf (const char *format,...)
 Add messages to output queues. More...
 
ssize_t vprintf (const char *format, va_list parameters)
 
ssize_t bprintf (const char *format,...)
 
ssize_t bvprintf (const char *format, va_list parameters)
 
ssize_t cbprintf (bool(*callback)(FB_CONNECTION *), const char *format,...)
 
ssize_t cbvprintf (bool(*callback)(FB_CONNECTION *), const char *format, va_list parameters)
 
virtual std::streamsize xsputn (const char_type *data, std::streamsize count) override
 
virtual int_type overflow (int_type c) override
 

Protected Member Functions

virtual ConnectionallocNewConnection ()
 Factories for related types instead of generics. More...
 
- Protected Member Functions inherited from Football::ServiceBase
virtual void * myThingie (void) const final
 
 ServiceBase (FB_SERVICE_OPTIONS options, ServiceBase *parent=nullptr)
 Create a new service with requested options. More...
 
virtual ~ServiceBase () override
 

Additional Inherited Members

- Static Protected Member Functions inherited from Football::ServiceBase
static ServiceBasegetFromOld (FB_SERVICE *service)
 
- Protected Attributes inherited from Football::ServiceBase
FB_SERVICEservice
 Pointer to underlying Football service structure. More...
 

Detailed Description

template<class Connection>
class Football::Service< Connection >

Football Service.

The service is customized for use with a particular connection type.

Template Parameters
ConnectionThe connection type (extended from Football::Connection) used for the service's connections.

Constructor & Destructor Documentation

◆ Service()

template<class Connection >
Football::Service< Connection >::Service ( const FB_SERVICE_OPTIONS  options,
Service< Connection > *  parent = nullptr 
)
inline

Member Function Documentation

◆ allocNewConnection()

template<class Connection >
virtual Connection* Football::Service< Connection >::allocNewConnection ( )
inlineprotectedvirtual

Factories for related types instead of generics.

Implements Football::ServiceBase.

◆ begin() [1/2]

template<class Connection >
iterator Football::Service< Connection >::begin ( )
inline

◆ begin() [2/2]

template<class Connection >
const_iterator Football::Service< Connection >::begin ( ) const
inline

◆ end() [1/2]

template<class Connection >
iterator Football::Service< Connection >::end ( )
inline

◆ end() [2/2]

template<class Connection >
const_iterator Football::Service< Connection >::end ( ) const
inline

◆ newConnectionFromFile()

template<class Connection >
Connection* Football::Service< Connection >::newConnectionFromFile ( const std::string &  filename)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: