1 |
pam-fi |
1.1 |
using namespace std; |
2 |
|
|
|
3 |
|
|
#include <fstream> |
4 |
|
|
#include <stdlib.h> |
5 |
|
|
#include <iostream> |
6 |
|
|
#include <sstream> |
7 |
|
|
#include <stdio.h> |
8 |
|
|
#include <math.h> |
9 |
|
|
#include <string.h> |
10 |
|
|
#include <time.h> |
11 |
|
|
|
12 |
|
|
#include <bitset> |
13 |
|
|
#include <new> |
14 |
|
|
#include <TSQLServer.h> |
15 |
|
|
#include <TSQLResult.h> |
16 |
|
|
#include <TSQLRow.h> |
17 |
|
|
|
18 |
|
|
#define CODE1 0xFF //VRL |
19 |
|
|
#define CODE2 0x46 //kadr |
20 |
|
|
#define CODE3 0xD5 //header |
21 |
|
|
|
22 |
|
|
#define CODE_BYTE1 0xFA //PAMELA |
23 |
|
|
#define CODE_BYTE2 0xFE //packet |
24 |
|
|
#define CODE_BYTE3 0xDE //header |
25 |
|
|
|
26 |
|
|
#define NumberPack (int)(53) //Number of PAMELA packets |
27 |
|
|
|
28 |
|
|
#define copy(x) ((x)>0 ? "cp" : "copy") |
29 |
|
|
#define dir(y) ((y)>0 ? "mkdir" : "md") |
30 |
|
|
|
31 |
|
|
#define Nmax (int)(1.*powf(10.,8.))//maximum allowable size of buffer, in bytes |
32 |
|
|
|
33 |
|
|
#define Limit (int)(1.*powf(10.,5.))//maximum size of PAMELA packet, in bytes |