fintp_base
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
BatchZipStorage.h
Go to the documentation of this file.
1
/*
2
* FinTP - Financial Transactions Processing Application
3
* Copyright (C) 2013 Business Information Systems (Allevo) S.R.L.
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>
17
* or contact Allevo at : 031281 Bucuresti, 23C Calea Vitan, Romania,
18
* phone +40212554577, office@allevo.ro <mailto:office@allevo.ro>, www.allevo.ro.
19
*/
20
21
#ifndef BATCHZIPSTORAGE_H
22
#define BATCHZIPSTORAGE_H
23
24
#include "../BatchStorageBase.h"
25
#include "../../Zip/zip.h"
26
#include "../../Zip/unzip.h"
27
28
//TODO:
29
// 1. La eroare de formatare, pune in Mq pana la linia respectiva
30
// dupa care muta fisierul in ErrorPath si trimite mesaje de eroare
31
// 2. Daca este eroare pe prima linie dupa schimbarea Chunk-ului
32
// ultimul mesaj bun nu il pune
33
//
34
35
namespace
FinTP
36
{
37
class
ExportedObject
BatchZipStorage
:
public
BatchStorageBase
38
{
39
public
:
40
41
BatchZipStorage
();
42
~
BatchZipStorage
();
43
44
void
enqueue(
BatchResolution
& resolution );
45
BatchItem
dequeue();
46
47
// open/close storage
48
void
open(
const
string
& storageId, ios_base::openmode openMode );
49
void
close(
const
string
& storageId );
50
void
removeTemp();
51
52
void
commit
() {}
53
void
rollback
() {};
54
55
//nothing special TO DO
56
long
size
()
const
{
return
0; }
57
58
//nothing special TO DO
59
void
setBufferSize
(
const
unsigned
long
buffersize ){}
60
61
void
setBuffer(
const
unsigned
char
*zipContents,
const
unsigned
int
size );
62
ManagedBuffer* getBuffer();
63
64
private
:
65
66
// m_CrtStorage is the batch file under construction or under parse
67
HZIP m_CrtUnzipStorage,
m_CrtZipStorage
;
68
69
// current sequence in the current Storage
70
long
m_CrtSequence
;
71
72
string
m_CrtStorageId
;
73
74
int
m_NumberOfItems
;
75
};
76
}
77
78
#endif // BATCHZIPSTORAGE_H
src
BatchManager
Storages
BatchZipStorage.h
Generated on Tue Aug 12 2014 09:51:10 for fintp_base by
1.8.3.1