fintp_base
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BatchResolution.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 BATCHACTION_H
22 #define BATCHACTION_H
23 
24 #include <string>
25 using namespace std;
26 
27 #include "DllMain.h"
28 #include "BatchItem.h"
29 
30 namespace FinTP
31 {
33  {
34  public:
35 
37  {
39  Hold
40  };
41 
43  {
45  SYNCHRONOUS
46  };
47 
49  BatchResolution( BatchResolution::BatchAction resolution, const BatchItem& item );
50  ~BatchResolution();
51 
52  // resolution accessors
53  BatchResolution::BatchAction getResolution() const { return m_Resolution; }
54  void setResolution( const BatchResolution::BatchAction action ) { m_Resolution = action; }
55 
56  const BatchItem& getItem() const { return m_Item; }
57  void setItem( const BatchItem& item ) { m_Item = item; }
58 
59  string getTransform() const { return m_Transform; }
60  void setTransform( const string& batchTransform ) { m_Transform = batchTransform; }
61 
62  string getIntendedBatchId() const { return m_IntendedBatchId; }
63  void setIntendedBatchId( const string& batchid ) { m_IntendedBatchId = batchid; }
64 
65  static string ToString( BatchResolution::BatchAction action );
66 
67  void setItemPayload( const string& payload ) { m_Item.setPayload( payload ); }
68  void setItemXmlPayload( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* payload ) { m_Item.setXmlPayload( payload ); }
69 
70  void setItemMessageId( const string& messageId ) { m_Item.setMessageId( messageId ); }
71  void setItemLast( const bool flag = true ) { m_Item.setLast( flag ); }
72  /*void setItemPayload( const char* payload );
73  void setItemPayload( const ManagedBuffer *payload );*/
74 
75  private :
76 
78  string m_Transform;
81  };
82 }
83 
84 #endif // BATCHACTION_H