Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

Pantheios N Stock Back-end
[Pantheios Stock Back-ends]


Detailed Description

Back-end library that splits output to N back-ends.


Modules

 Pantheios be.N Stock Back-end Flags
 Flags for the Pantheios N Stock Back-end.

Classes

struct  pan_be_N_t
 Structure that describes a back-end to be used by the Pantheios N Stock Back-end. More...

Defines

#define PANTHEIOS_BE_N_ENTRY(flags, backEndId, be_prefix)   PANTHEIOS_BE_N_STDFORM_ENTRY(backEndId, be_prefix, flags)
 Defines an entry in an array of pan_be_N_t.
#define PANTHEIOS_BE_N_STDFORM_ENTRY(backEndId, be_prefix, flags)
 Defines an entry in an array of pan_be_N_t.
#define PANTHEIOS_BE_N_TERMINATOR_ENTRY   { 0, 0, NULL, NULL, NULL, NULL }
 Defines a terminating entry in an array of pan_be_N_t.

Variables

PANTHEIOS_EXTERN_C pan_be_N_t PAN_BE_N_BACKEND_LIST []
 The application-defined array of back-end descriptors that specify what concrete back-ends are to be attached to the program.


Define Documentation

#define PANTHEIOS_BE_N_ENTRY ( flags,
backEndId,
be_prefix   )     PANTHEIOS_BE_N_STDFORM_ENTRY(backEndId, be_prefix, flags)

Defines an entry in an array of pan_be_N_t.

Deprecated:
Will be removed from a future version. Use PANTHEIOS_BE_N_STDFORM_ENTRY instead.

#define PANTHEIOS_BE_N_STDFORM_ENTRY ( backEndId,
be_prefix,
flags   ) 

Value:

{                                                               \
            flags                                                   \
        ,   backEndId                                               \
        ,   (int(PANTHEIOS_CALLCONV *)(char const*,int,void const*,void*,void**))be_prefix ## _init \
        ,   be_prefix ## _uninit                                    \
        ,   be_prefix ## _logEntry                                  \
        ,   NULL                                                    \
    }
Defines an entry in an array of pan_be_N_t.

Parameters:
backEndId The back-end identifier. Must be >0
be_prefix The prefix of all the back-end functions, e.g. pantheios_be_speech
flags A combination of the be.N flags that control the behaviour of the given back-end
This is used in combination with PANTHEIOS_BE_N_TERMINATOR_ENTRY to define the set of concrete back-ends are to be attached to the program:
pan_be_N_t  PAN_BE_N_BACKEND_LIST[] =
{
    PANTHEIOS_BE_N_STDFORM_ENTRY(1, pantheios_be_file, 0)
  , PANTHEIOS_BE_N_STDFORM_ENTRY(2, pantheios_be_fprintf, 0)
  , PANTHEIOS_BE_N_STDFORM_ENTRY(3, pantheios_be_null, 0)
#if defined(PLATFORMSTL_OS_IS_UNIX)
  , PANTHEIOS_BE_N_STDFORM_ENTRY(4, pantheios_be_syslog, 0)
#elif defined(PLATFORMSTL_OS_IS_WIN32) || \
      defined(PLATFORMSTL_OS_IS_WIN64)
  , PANTHEIOS_BE_N_STDFORM_ENTRY(4, pantheios_be_WindowsSyslog, 0)
#endif
  , PANTHEIOS_BE_N_STDFORM_ENTRY(5, pantheios_be_file, 0)
  , PANTHEIOS_BE_N_TERMINATOR_ENTRY
};

Note:
This is to be used insead of PANTHEIOS_BE_N_ENTRY
Examples:
c/example.c.N/example.c.N.c.

#define PANTHEIOS_BE_N_TERMINATOR_ENTRY   { 0, 0, NULL, NULL, NULL, NULL }

Defines a terminating entry in an array of pan_be_N_t.

See also:
PANTHEIOS_BE_N_STDFORM_ENTRY
Examples:
c/example.c.N/example.c.N.c.


Variable Documentation

PANTHEIOS_EXTERN_C pan_be_N_t PAN_BE_N_BACKEND_LIST[]

The application-defined array of back-end descriptors that specify what concrete back-ends are to be attached to the program.

Note:
The array must be defined with a last terminator element whose pfnInit member is NULL.
Examples:
c/example.c.N/example.c.N.c.


pantheios Library documentation © Matthew Wilson, 2006-2008 SourceForge.net Logo