using namespace std;

#include <fstream>
//  #include <stdlib.h>
#include <cstdlib>
#include <iostream>
#include <sstream>
// #include <stdio.h>
#include <cstdio>
// #include <math.h>
// #include <string.h>
// #include <time.h>
#include <cmath>
#include <string>
#include <ctime>

#include <bitset>
#include <new>
#include <TSQLServer.h>
#include <TSQLResult.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                 
