LibOFX

ofx_request.hh
Go to the documentation of this file.
1 /***************************************************************************
2 ofx_request.hh
3 -------------------
4 copyright : (C) 2005 by Ace Jones
5 email : acejones@users.sourceforge.net
6 ***************************************************************************/
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20 #ifndef OFX_REQUEST_H
21 #define OFX_REQUEST_H
22
23 #include <string>
24 #include "libofx.h"
25 #include "ofx_aggregate.hh"
26
34 class OfxRequest: public OfxAggregate
35 {
36 public:
43 OfxRequest(const OfxFiLogin& fi): OfxAggregate("OFX"), m_login(fi) {}
44
45 //protected:
46 public:
53 OfxAggregate SignOnRequest(void) const;
54
66 OfxAggregate RequestMessage(const std::string& msgtype, const std::string& trntype, const OfxAggregate& aggregate ) const;
67
68 protected:
69 OfxFiLogin m_login;
70 };
71
76
77 std::string time_t_to_ofxdatetime( time_t time );
78 std::string time_t_to_ofxdate( time_t time );
79 std::string OfxHeader(const char *hver);
80
82
83 #endif // OFX_REQUEST_H
OfxRequest::OfxRequest
OfxRequest(const OfxFiLogin &fi)
Definition: ofx_request.hh:50
OfxRequest::RequestMessage
OfxAggregate RequestMessage(const std::string &msgtype, const std::string &trntype, const OfxAggregate &aggregate) const
Definition: ofx_request.cpp:113
OfxRequest::SignOnRequest
OfxAggregate SignOnRequest(void) const
Definition: ofx_request.cpp:82
OfxFiLogin
Information sufficient to log into an financial institution.
Definition: inc/libofx.h:1383
OfxAggregate
A single aggregate as described in the OFX 1.02 specification.
Definition: ofx_aggregate.hh:40
OfxRequest
A generic request.
Definition: ofx_request.hh:34
OfxAggregate::OfxAggregate
OfxAggregate(const std::string &tag)
Definition: ofx_aggregate.hh:55
ofx_aggregate.hh
Declaration of OfxAggregate which allows you to construct a single OFX aggregate.