1 |
using namespace std; |
using namespace std; |
2 |
|
|
3 |
#include <fstream> |
#include <fstream> |
4 |
// #include <stdlib.h> |
#include <stdlib.h> |
|
#include <cstdlib> |
|
5 |
#include <iostream> |
#include <iostream> |
6 |
#include <sstream> |
#include <sstream> |
7 |
// #include <stdio.h> |
#include <stdio.h> |
8 |
#include <cstdio> |
#include <math.h> |
9 |
// #include <math.h> |
#include <string.h> |
10 |
// #include <string.h> |
#include <time.h> |
|
// #include <time.h> |
|
|
#include <cmath> |
|
|
#include <string> |
|
|
#include <ctime> |
|
11 |
|
|
12 |
#include <bitset> |
#include <bitset> |
13 |
#include <new> |
#include <new> |
14 |
#include <TSQLServer.h> |
#include <TSQLServer.h> |
15 |
#include <TSQLResult.h> |
#include <TSQLResult.h> |
16 |
#include <TSQLRow.h> |
#include <TSQLRow.h> |
|
|
|
|
#define CODE1 0xFF //VRL |
|
|
#define CODE2 0x46 //kadr |
|
|
#define CODE3 0xD5 //header |
|
|
|
|
|
#define CODE_BYTE1 0xFA //PAMELA |
|
|
#define CODE_BYTE2 0xFE //packet |
|
|
#define CODE_BYTE3 0xDE //header |
|
|
|
|
|
#define NumberPack (int)(53) //Number of PAMELA packets |
|
|
|
|
|
#define copy(x) ((x)>0 ? "cp" : "copy") |
|
|
#define dir(y) ((y)>0 ? "mkdir" : "md") |
|
|
|
|
|
#define Nmax (int)(1.*powf(10.,8.))//maximum allowable size of buffer, in bytes |
|
|
|
|
|
#define Limit (int)(1.*powf(10.,5.))//maximum size of PAMELA packet, in bytes |
|