40 lines
877 B
C
40 lines
877 B
C
|
|
#ifndef _H_WHEEL_DEF_H_
|
||
|
|
#define _H_WHEEL_DEF_H_
|
||
|
|
|
||
|
|
#ifdef WIN32
|
||
|
|
#pragma warning( disable : 4996 )
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include <sstream>
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
using namespace std;
|
||
|
|
|
||
|
|
|
||
|
|
const int WHEEL_LEN_MAX = 21; /* wheel id max length */
|
||
|
|
const int TRK_WHEEL_MAX = 2000; /* track wheel max */
|
||
|
|
const int TRK_WZONE_MAX = 500; /* track wheel zone max */
|
||
|
|
|
||
|
|
|
||
|
|
typedef unsigned int AR_UINT[2000];
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
namespace baosight{
|
||
|
|
|
||
|
|
|
||
|
|
struct WHEEL_UNIT
|
||
|
|
{
|
||
|
|
int pos; /* coil index TI */
|
||
|
|
char trackId[21]; /* wheel id */
|
||
|
|
time_t timeIn; /* time in */
|
||
|
|
time_t timeOut; /* time out */
|
||
|
|
bool matched; /* matched data with time zone */
|
||
|
|
};
|
||
|
|
|
||
|
|
typedef WHEEL_UNIT WHEEL_ZONE[TRK_WHEEL_MAX];
|
||
|
|
|
||
|
|
typedef WHEEL_ZONE WHEEL_ZONES[TRK_WZONE_MAX];
|
||
|
|
};
|
||
|
|
#endif
|