Changeset 199


Ignore:
Timestamp:
1999-03-11T13:11:19+13:00 (25 years ago)
Author:
rjmcnab
Message:

Added a function to get a string version of comerror_t

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/comtypes.cpp

    r197 r199  
    1212/*
    1313   $Log$
     14   Revision 1.4  1999/03/11 00:11:19  rjmcnab
     15   Added a function to get a string version of comerror_t
     16
    1417   Revision 1.3  1999/03/09 21:00:47  rjmcnab
    1518   Reorganised the statusaction, added more functions to comtypes.
     
    2730
    2831#include "comtypes.h"
     32
     33
     34text_t get_comerror_string (comerror_t err) {
     35  if (err == noError) return "no error";
     36  else if (err == authenticationFailure) return "authentication failure";
     37  else if (err == protocolError) return "protocol error";
     38  else if (err == systemProblem) return "system problem";
     39
     40  return "unknown problem";
     41}
    2942
    3043
  • trunk/gsdl/src/recpt/comtypes.h

    r197 r199  
    3333
    3434enum comerror_t {noError, authenticationFailure, protocolError, systemProblem};
    35 
     35text_t get_comerror_string (comerror_t err);
    3636
    3737// ShortColInfo ::= SEQUENCE {
Note: See TracChangeset for help on using the changeset viewer.