25 #include "ParserEventGeneratorKit.h"
38 OfxMainContainer::~OfxMainContainer()
43 while (tmp != security_tree.
end())
49 tmp = account_tree.
begin();
50 while (tmp != account_tree.
end())
69 security_tree.
insert(security_tree.
begin(), container);
78 if ( account_tree.
size() == 0)
80 message_out(
DEBUG,
"OfxMainContainer::add_container, account is the first account");
81 account_tree.
insert(account_tree.
begin(), container);
85 message_out(
DEBUG,
"OfxMainContainer::add_container, account is not the first account");
120 message_out(
ERROR,
"OfxMainContainer::add_container, no accounts are present (tmp is invalid)");
127 message_out(
DEBUG,
"OfxMainContainer::add_container, adding a transaction");
129 if ( account_tree.
size() != 0)
136 message_out(
DEBUG,
"OfxMainContainer::add_container: tmp is valid, Accounts are present");
156 message_out(
DEBUG,
"Begin walking the trees of the main container to generate events");
160 while (tmp != security_tree.
end())
168 tmp = account_tree.
begin();
171 while (tmp != account_tree.
end())
178 message_out(
DEBUG,
"End walking the trees of the main container to generate events");
189 while (tmp != security_tree.
end() && retval == NULL)
unsigned int number_of_children(const iterator_base &) const
Count the number of children of node at position.
Represents a security, such as a stock or bond.
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer.
Represents a generic transaction.
pre_order_iterator end() const
Return iterator to the end of the tree.
int size() const
Count the total number of nodes.
iter insert_after(iter position, const T &x)
Insert node as next sibling of node pointed to by position.
int message_out(OfxMsgType error_type, const string message)
Message output function.
pre_order_iterator begin() const
Return iterator to the beginning of the tree.
bool is_valid(const iterator_base &) const
Determine whether the iterator is an 'end' iterator and thus not actually pointing to a node...
Represents a statement for either a bank account or a credit card account.
unsigned int number_of_siblings(const iterator_base &) const
Count the number of 'next' siblings of node at iterator.
virtual int gen_event()
Generate libofx.h events.
iter append_child(iter position)
Insert empty node as last child of node pointed to by position.
iter insert(iter position, const T &x)
Insert node as previous sibling of node pointed to by position.
An abstraction of a security, such as a stock, mutual fund, etc.
LibOFX internal object code.
Message IO functionality.
Represents a bank account or a credit card account.
int gen_event()
Generate libofx.h events.