process Namespace Reference

Functions

const char * as_string (process_t process)
process_t get_from_code (int code)

Function Documentation

const char* process::as_string ( process_t  process  )  [inline]

Definition at line 34 of file process.h.

References e_coh, e_dis, e_qel, e_res, and e_undefined_process.

00035      {
00036        switch(process) {
00037          case e_qel:          return "QEL";     break;
00038          case e_res:          return "RES";     break;
00039          case e_dis:          return "DIS";  break;        
00040          case e_coh:          return "COH";  break;
00041 
00042          case e_undefined_process:
00043          default:            
00044                       return "unknown PROCESS"; break;
00045        }
00046        return "bad PROCESS";
00047      }

process_t process::get_from_code ( int  code  )  [inline]

Definition at line 49 of file process.h.

References e_coh, e_dis, e_qel, e_res, and e_undefined_process.

00050      {
00051         if      (code == 1001) return e_qel;
00052         else if (code == 1002) return e_res;
00053         else if (code == 1003) return e_dis;
00054         else if (code == 1004) return e_coh;
00055         else                return e_undefined_process;
00056      }


Generated on 18 Jan 2018 for loon by  doxygen 1.6.1