31class OfxGenericContainer
36 OfxGenericContainer *parentcontainer;
40 OfxGenericContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer);
41 OfxGenericContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
43 virtual ~OfxGenericContainer() {};
51 virtual void add_attribute(
const std::string identifier,
const std::string value);
74class OfxDummyContainer:
public OfxGenericContainer
77 OfxDummyContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
78 void add_attribute(
const std::string identifier,
const std::string value);
85class OfxInv401kContainer:
public OfxGenericContainer
88 OfxInv401kContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
89 void add_attribute(
const std::string identifier,
const std::string value);
96class OfxPushUpContainer:
public OfxGenericContainer
100 OfxPushUpContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
101 void add_attribute(
const std::string identifier,
const std::string value);
105class OfxStatusContainer:
public OfxGenericContainer
110 OfxStatusContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
111 ~OfxStatusContainer();
112 void add_attribute(
const std::string identifier,
const std::string value);
119class OfxBalanceContainer:
public OfxGenericContainer
132 double margin_balance;
136 double short_balance;
141 bool buying_power_valid;
143 OfxBalanceContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
144 ~OfxBalanceContainer();
145 void add_attribute(
const std::string identifier,
const std::string value);
155class OfxStatementContainer:
public OfxGenericContainer
158 OfxStatementData data;
160 OfxStatementContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
161 ~OfxStatementContainer();
162 void add_attribute(
const std::string identifier,
const std::string value);
165 void add_account(OfxAccountData * account_data);
178class OfxAccountContainer:
public OfxGenericContainer
183 OfxAccountContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
184 ~OfxAccountContainer();
185 void add_attribute(
const std::string identifier,
const std::string value);
189 void gen_account_id(
void);
190 std::string m_bankid;
191 std::string m_branchid;
192 std::string m_acctid;
193 std::string m_acctkey;
194 std::string m_brokerid;
202class OfxSecurityContainer:
public OfxGenericContainer
205 OfxSecurityData data;
207 OfxSecurityContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
208 ~OfxSecurityContainer();
209 void add_attribute(
const std::string identifier,
const std::string value);
222class OfxPositionContainer:
public OfxGenericContainer
225 OfxPositionData data;
227 OfxPositionContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
228 ~OfxPositionContainer();
229 void add_attribute(
const std::string identifier,
const std::string value);
230 void add_account(OfxAccountData * account_data);
243class OfxTransactionContainer:
public OfxGenericContainer
246 OfxTransactionData data;
248 OfxTransactionContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
249 ~OfxTransactionContainer();
250 virtual void add_attribute(
const std::string identifier,
const std::string value);
251 void add_account(OfxAccountData * account_data);
263class OfxBankTransactionContainer:
public OfxTransactionContainer
267 void add_attribute(
const std::string identifier,
const std::string value);
274class OfxInvestmentTransactionContainer:
public OfxTransactionContainer
279 void add_attribute(
const std::string identifier,
const std::string value);
289class OfxMainContainer:
public OfxGenericContainer
292 OfxMainContainer(
LibofxContext *p_libofx_context, OfxGenericContainer *para_parentcontainer, std::string para_tag_identifier);
294 int add_container(OfxGenericContainer * container);
301 OfxSecurityData * find_security(std::string unique_id);
Represents a bank account or a credit card account.
virtual int gen_event()
Generate libofx.h events.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
int add_to_main_tree()
Add this container to the main tree.
Represents the <BALANCE>, <INVBAL> or <INV401KBAL> OFX SGML entity.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
bool margin_balance_valid
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer.
std::string tag_identifier
OfxGenericContainer * getparent()
Returns the parent container object (the one representing the containing OFX SGML element)
virtual int gen_event()
Generate libofx.h events.
virtual void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
virtual int add_to_main_tree()
Add this container to the main tree.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
int gen_event()
Generate libofx.h events.
Represents an investment position, such as a stock or bond.
virtual int add_to_main_tree()
Add this container to the main tree.
virtual int gen_event()
Generate libofx.h events.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
Represents a security, such as a stock or bond.
virtual int gen_event()
Generate libofx.h events.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
virtual int add_to_main_tree()
Add this container to the main tree.
Represents a statement for either a bank account or a credit card account.
virtual int gen_event()
Generate libofx.h events.
virtual int add_to_main_tree()
Add this container to the main tree.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
Represents a generic transaction.
virtual int gen_event()
Generate libofx.h events.
virtual void add_attribute(const std::string identifier, const std::string value)
Add data to a container object.
virtual int add_to_main_tree()
Add this container to the main tree.