78 lines
2.0 KiB
C
78 lines
2.0 KiB
C
/*******************************************************************************
|
|
* *
|
|
* Société de Transports de Montréal. *
|
|
* 2012 *
|
|
* *
|
|
* Projet Zones Tests *
|
|
* *
|
|
* *
|
|
* *
|
|
*******************************************************************************/
|
|
/*
|
|
Description:
|
|
Description du fichier si nécessaire.
|
|
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
/* Revision:
|
|
### 20121210 JFM
|
|
Verision d'origine.
|
|
|
|
### YYYYMMDD Description du besoin ou du bug
|
|
Description du changement.
|
|
*/
|
|
|
|
/* ************************************************************************** */
|
|
#ifndef GLOBAL_DEFINE
|
|
#define GLOBAL_DEFINE
|
|
|
|
//Screen resolution.
|
|
#define SCREEN_RES_WIDTH 1600
|
|
#define SCREEN_RES_HEIGHT 768
|
|
|
|
//Train parameters
|
|
#define MR_BOGIE_LENGTH 1.52 //meters
|
|
#define MPM_BOGIE_LENGTH 2.0 //meters
|
|
|
|
|
|
|
|
//Misc definitions
|
|
#define USE_FAST_LOGFILE_LOADING
|
|
#define MAX_LOG_FILE_COUNT 25000
|
|
#define MAX_LOG_DIR_SIZE (qint64)1073741824 //in bytes = 1 GB
|
|
#define USE_ANALOG_ACQUISITION
|
|
|
|
|
|
#define ZT_TCP_PORT 1234
|
|
#define ZT_UDP_PORT 41245
|
|
|
|
//Debug defs
|
|
//#define LOG_RAM_USAGE
|
|
|
|
//General purpose return values.
|
|
enum eGeneralRetValue
|
|
{
|
|
RET_OK,
|
|
RET_ERROR
|
|
};
|
|
|
|
enum eZTID
|
|
{
|
|
ANGRIGNON_ZT_ID,
|
|
HONORE_BEAUGRAND_ZT_ID,
|
|
LONGUEUIL_ZT_ID,
|
|
BERRI_UQAM_ZT_ID,
|
|
SNOWDON_ZT_ID,
|
|
SAINT_MICHEL_ZT_ID,
|
|
COTE_VERTU_ZT_ID,
|
|
HENRI_BOURASSA_ZT_ID,
|
|
MONTMORENCY_ZT_ID,
|
|
MONTMORENCY_10_12_ZT_ID,
|
|
MONTMORENCY_10_22_ZT_ID,
|
|
|
|
NB_ZT_ID
|
|
};
|
|
|
|
#endif
|