Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

nml_oi.hh File Reference

#include "rcs_defs.hh"
#include "cms.hh"
#include "nml.hh"
#include "nmlmsg.hh"

Include dependency graph for nml_oi.hh:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Data Structures

class  NML_ERROR
class  NML_TEXT
class  NML_DISPLAY
class  NML_OPERATOR_REQUEST
class  NML_OPERATOR_REPLY

Defines

#define NML_ERROR_TYPE   ((NMLTYPE) 1)
#define NML_TEXT_TYPE   ((NMLTYPE) 2)
#define NML_DISPLAY_TYPE   ((NMLTYPE) 3)
#define NML_OPERATOR_REQUEST_TYPE   ((NMLTYPE) 4)
#define NML_OPERATOR_REPLY_TYPE   ((NMLTYPE) 5)
#define NML_ERROR_LEN   256
#define NML_TEXT_LEN   256
#define NML_DISPLAY_LEN   256
#define NML_OPERATOR_REQUEST_LEN   256
#define NML_OPERATOR_REPLY_LEN   256

Functions

int RCS_EXPORT nmlErrorFormat (NMLTYPE type, void *buffer, CMS *cms)


Define Documentation

#define NML_ERROR_TYPE   ((NMLTYPE) 1)
 

Definition at line 25 of file nml_oi.hh.

#define NML_TEXT_TYPE   ((NMLTYPE) 2)
 

Definition at line 26 of file nml_oi.hh.

#define NML_DISPLAY_TYPE   ((NMLTYPE) 3)
 

Definition at line 27 of file nml_oi.hh.

#define NML_OPERATOR_REQUEST_TYPE   ((NMLTYPE) 4)
 

Definition at line 28 of file nml_oi.hh.

#define NML_OPERATOR_REPLY_TYPE   ((NMLTYPE) 5)
 

Definition at line 29 of file nml_oi.hh.

#define NML_ERROR_LEN   256
 

Definition at line 33 of file nml_oi.hh.

#define NML_TEXT_LEN   256
 

Definition at line 34 of file nml_oi.hh.

#define NML_DISPLAY_LEN   256
 

Definition at line 35 of file nml_oi.hh.

#define NML_OPERATOR_REQUEST_LEN   256
 

Definition at line 36 of file nml_oi.hh.

#define NML_OPERATOR_REPLY_LEN   256
 

Definition at line 37 of file nml_oi.hh.


Function Documentation

int RCS_EXPORT nmlErrorFormat NMLTYPE    type,
void *    buffer,
CMS   cms
 

Definition at line 48 of file nml_oi.cc.

00049 {
00050   switch (type)
00051     {
00052     case NML_ERROR_TYPE:
00053       ((NML_ERROR *) buffer)->update (cms);
00054       break;
00055 
00056     case NML_TEXT_TYPE:
00057       ((NML_TEXT *) buffer)->update (cms);
00058       break;
00059 
00060     case NML_DISPLAY_TYPE:
00061       ((NML_DISPLAY *) buffer)->update (cms);
00062       break;
00063 
00064     case NML_OPERATOR_REQUEST_TYPE:
00065       ((NML_OPERATOR_REQUEST *) buffer)->update (cms);
00066       break;
00067 
00068     case NML_OPERATOR_REPLY_TYPE:
00069       ((NML_OPERATOR_REPLY *) buffer)->update (cms);
00070       break;
00071 
00072       // unknown type
00073     default:
00074       return 0;                 // 0 signifies didn't find
00075     }
00076 
00077   return 1;                     // 1 signifies found it
00078 }


Generated on Sun Dec 2 15:57:17 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001