fintp_base
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
BatchZipArchiveStorage.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 "ZipArchive.h"
25
#include "ZipException.h"
26
#include "ZipMemFile.h"
27
#include "ZipString.h"
28
#include "ZipFileHeader.h"
29
#include "ZipCentralDir.h"
30
31
#include "../BatchStorageBase.h"
32
33
//TODO:
34
// 1. La eroare de formatare, pune in Mq pana la linia respectiva
35
// dupa care muta fisierul in ErrorPath si trimite mesaje de eroare
36
// 2. Daca este eroare pe prima linie dupa schimbarea Chunk-ului
37
// ultimul mesaj bun nu il pune
38
//
39
40
namespace
FinTP
41
{
42
class
ExportedObject
BatchZipArchiveStorage
:
public
BatchStorageBase
43
{
44
public
:
45
46
BatchZipArchiveStorage
();
47
~
BatchZipArchiveStorage
();
48
49
void
enqueue(
BatchResolution
& resolution );
50
BatchItem
dequeue();
51
52
// open/close storage
53
void
open(
const
string
& storageId, ios_base::openmode openMode );
54
void
close(
const
string
& storageId );
55
//void removeTemp();
56
57
void
commit
() {}
58
void
rollback
() {};
59
60
//nothing special TO DO
61
long
size
()
const
{
return
0; }
62
63
//nothing special TO DO
64
void
setBufferSize
(
const
unsigned
long
buffersize ){}
65
66
void
setBuffer(
const
unsigned
char
*zipContents,
const
unsigned
int
size );
67
ManagedBuffer* getBuffer();
68
69
void
setDequeFirst(
const
string
& findSubstr );
70
bool
isDequeFirst();
71
72
long
getCrtSequence
(){
return
m_CrtSequence;}
73
private
:
74
75
// m_CrtStorage is the batch file under construction or under parse
76
CZipArchive
m_CrtZipStorage
;
77
CZipMemFile
m_CrtZipMemFile
;
78
79
// current sequence in the current Storage
80
long
m_CrtSequence
;
81
string
m_CrtStorageId
;
82
int
m_NumberOfItems
;
83
int
m_getFirstIndex
;
84
};
85
}
86
87
#endif // BATCHZIPSTORAGE_H
src
BatchManager
Storages
BatchZipArchiveStorage.h
Generated on Tue Aug 12 2014 09:51:10 for fintp_base by
1.8.3.1