work/scdata_l.h File Reference

#include <stdio.h>
#include <string.h>
#include "scdata.h"
#include "scrunner_msg.h"
#include "sccommon.h"
#include "wlcstdc.h"

Include dependency graph for scdata_l.h:


Enumerations

enum  SCr_proc_type { SCr_proc_data, SCr_proc_error, SCr_proc_user }
enum  SCr_user_opt { SCr_user_trans_start, SCr_user_trans_end, SCr_user_sys_off, SCr_user_sys_on }
enum  SCr_wl_state { SCr_wl_state_err = -1, SCr_wl_state_new = 0, SCr_wl_state_old = 1 }

Functions

int SCr_new_wl (const char *strdate)
char * SCr_user_to_str (int type)
void SCr_log_proc (int proc, int codeA, int codeB, const char *strdate)
void SCr_log_error (int type, int code, const char *strdate)
int SCr_log_data (const struct SCs_data *unloged, const char *strdate)

Variables

int SCr_not_loged
int SCr_max_not_loged
const char * SCr_proclog_dir
int SCr_proc_log_on

Detailed Description

Functions and structures used to:

Enumeration Type Documentation

enum SCr_proc_type

Internal process type

Enumerator:
SCr_proc_data  Login SCslave data record
SCr_proc_error  Error rised
SCr_proc_user  User interaction

enum SCr_user_opt

User interation options

Enumerator:
SCr_user_trans_start  Begin transfer
SCr_user_trans_end  End stransfer
SCr_user_sys_off  Shutdown system
SCr_user_sys_on  System turned on

enum SCr_wl_state

State of the current worklog file

Enumerator:
SCr_wl_state_err  error while checking state
SCr_wl_state_new  New file
SCr_wl_state_old  Old file


Function Documentation

int SCr_log_data ( const struct SCs_data unloged,
const char *  strdate 
)

Logs a data record from SCslave.

Parameters:
unloged data record
strdate date in ISO format

void SCr_log_error ( int  type,
int  code,
const char *  strdate 
)

Logs an error.

Parameters:
type error type
code error code
strdate current date in ISO format

void SCr_log_proc ( int  proc,
int  codeA,
int  codeB,
const char *  strdate 
)

Logs an innternal SCrunners process

Parameters:
proc process type from SCr_proc_type
codeA firts process code
codeB scunde process code
strdate current date in ISO format

int SCr_new_wl ( const char *  strdate  ) 

Checks the state of the current worklog file.

Parameters:
strdate current date in ISO format
Returns:
the state from SCr_wl_state

char* SCr_user_to_str ( int  type  ) 

Converts the user interaction code to its name.

Parameters:
type user interaction code from SCr_usr_opt
Returns:
a pointer to a string with the name of the users interaction


Variable Documentation

int SCr_max_not_loged

Maximum number of unsuccesfull data logs after wich a critilac error is generated

int SCr_not_loged

0 if last SCslave data record was loged succesfully; if not then the number unsuccesfull data logs

int SCr_proc_log_on

1 if proclog files should be generated; 0 if not

const char* SCr_proclog_dir

Proclogs directory path


Generated on Wed Feb 28 23:23:14 2007 for Selection Check Librarys by  doxygen 1.4.7