GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EMSG / V1-1-1 > emsg_st / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

EMSG_printProc.c File Reference

A message output processor . More...

#include <stdio.h>
#include <string.h>
#include <time.h>
#include <EMSG/EMSG_pubdefs.h>

Functions

void EMSG_print (EMSG_OutputModes mode, void *prm, const EMSG_Message *msg)
 Output processor callback routine to simply print messages.
unsigned int EMSG_printOptions (unsigned int mask, unsigned int valu)
 Selective set and clear of print processor options.


Detailed Description

A message output processor .

.. a simple printer.

This file contains the most basic output processor ... it simply prints the message.

Author:
A.P.Waite & Owen H Saxton
Id
EMSG_printProc.c,v 1.3 2011/03/25 21:37:59 saxton Exp

Function Documentation

void EMSG_print ( EMSG_OutputModes  mode,
void *  prm,
const EMSG_Message msg 
)

Output processor callback routine to simply print messages.

This routine prints a message using printf following options provided by the user.

Parameters:
mode (in) Output processor calling mode
prm (in) User parameter
msg (in) Message structure

References _EMSG_Message::code, EMSG_M_DATE, EMSG_M_DUMP, EMSG_M_MSEC, EMSG_M_NAME, EMSG_M_NSEC, EMSG_M_ROUTINE, EMSG_M_TASK, EMSG_M_TEXT, EMSG_M_TIME, EMSG_OUT_NORMAL, _EMSG_Message::fac, _EMSG_Message::nick, _EMSG_Message::rtn, _EMSG_Message::sev, _EMSG_Message::task, _EMSG_Message::text, _EMSG_Message::time, and _EMSG_Message::trace.

unsigned int EMSG_printOptions ( unsigned int  mask,
unsigned int  valu 
)

Selective set and clear of print processor options.

This routine does a selective set and clear on the print options word.

Parameters:
mask (in) Mask of options to touch
valu (in) Values to set (in masked bits only)
Returns:
Previous value of the options word


Generated on Tue Sep 27 19:10:10 2011 by  doxygen 1.5.8