Core.h File Reference

#include <map>
#include "Singleton.h"
#include "ServiceBase.h"
#include "Timer.h"
#include "Poller.h"
#include "String.h"
#include "StringList.h"
#include "NamedObject.h"

Include dependency graph for Core.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Core
struct  Core::SpawnInfo

Typedefs

typedef ServiceBase *(*) Fabrica (const ValueList &)

Functions

CoreCORE ()
String CORE_COLOR_TITLE (const String &str)
template<class T>
int REGISTER_SERVICE ()

Variables

static const char *const MSG_CORE_SERVICE_ALREADY_REGISTERED = "Service '%s' already registered."
static const char *const MSG_CORE_SERVICE_UNKNOWN = "Service '%s' is unknown."
static const char *const MSG_CORE_SERVICE_CANNOT_SPAWN = "Cannot spawn service '%s'."
static const char *const MSG_CORE_SERVICE_CANNOT_FORK = "Cannot fork service '%s'."
static const char *const MSG_CORE_SERVICE_NOT_FORKABLE = "Service '%s' is not forkable."
static const char *const MSG_CORE_SERVICE_NSTANCES_LIMIT_EXCEEDED = "Instances limit number for service '%s' exceeded. Limit is %u, already runned %u."
static const char *const MSG_CORE_UNEXPECTED_ID = "Unexpected object id %llu."


Typedef Documentation

typedef ServiceBase*(*) Fabrica(const ValueList &)

Definition at line 31 of file Core.h.


Function Documentation

Core* CORE (  )  [inline]

Definition at line 103 of file Core.h.

References Singleton< T >::instance().

Referenced by Inetd::Inetd(), Init::Init(), Core::init(), FShGetLine::onOutput(), REGISTER_SERVICE(), Connection::setup(), TcpServer::TcpServer(), Connection::~Connection(), and TcpServer::~TcpServer().

String CORE_COLOR_TITLE ( const String str  )  [inline]

Definition at line 109 of file Core.h.

References COLOR_STRING.

Referenced by Core::listServices().

template<class T>
int REGISTER_SERVICE (  ) 

Definition at line 115 of file Core.h.

References CORE(), ERROR_BACKTRACE(), FAILED(), and OK.


Variable Documentation

const char* const MSG_CORE_SERVICE_ALREADY_REGISTERED = "Service '%s' already registered." [static]

Definition at line 21 of file Core.h.

Referenced by Core::registerService().

const char* const MSG_CORE_SERVICE_CANNOT_FORK = "Cannot fork service '%s'." [static]

Definition at line 24 of file Core.h.

Referenced by Core::fork().

const char* const MSG_CORE_SERVICE_CANNOT_SPAWN = "Cannot spawn service '%s'." [static]

Definition at line 23 of file Core.h.

Referenced by Core::spawn().

const char* const MSG_CORE_SERVICE_NOT_FORKABLE = "Service '%s' is not forkable." [static]

Definition at line 25 of file Core.h.

Referenced by Core::fork().

const char* const MSG_CORE_SERVICE_NSTANCES_LIMIT_EXCEEDED = "Instances limit number for service '%s' exceeded. Limit is %u, already runned %u." [static]

Definition at line 26 of file Core.h.

Referenced by Core::spawn().

const char* const MSG_CORE_SERVICE_UNKNOWN = "Service '%s' is unknown." [static]

Definition at line 22 of file Core.h.

Referenced by Core::spawn().

const char* const MSG_CORE_UNEXPECTED_ID = "Unexpected object id %llu." [static]

Definition at line 27 of file Core.h.

Referenced by Core::kill(), and Core::notify().


Generated on Thu Sep 6 20:11:38 2007 for Pylon Application Platform by  doxygen 1.5.1