Go to the documentation of this file.
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");
158 if ( account_tree.
size() != 0)
165 message_out(
DEBUG,
"OfxMainContainer::add_container: tmp is valid, Accounts are present");
185 message_out(
DEBUG,
"Begin walking the trees of the main container to generate events");
189 while (tmp != security_tree.
end())
197 tmp = account_tree.
begin();
200 while (tmp != account_tree.
end())
207 message_out(
DEBUG,
"End walking the trees of the main container to generate events");
212 OfxSecurityData * OfxMainContainer::find_security(std::string unique_id)
218 while (tmp != security_tree.
end() && retval == NULL)
An abstraction of a security, such as a stock, mutual fund, etc.
virtual int gen_event()
Generate libofx.h events.
int gen_event()
Generate libofx.h events.
Represents a bank account or a credit card account.
pre_order_iterator begin() const
Return iterator to the beginning of the tree.
pre_order_iterator end() const
Return iterator to the end of the tree.
Represents a security, such as a stock or bond.
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer.
iter append_child(iter position)
Insert empty node as last child of node pointed to by position.
LibOFX internal object code.
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 std::string message)
Message output function.
iter insert(iter position, const T &x)
Insert node as previous sibling of node pointed to by position.
Represents a statement for either a bank account or a credit card account.
int size() const
Count the total number of nodes.
bool is_valid(const iterator_base &) const
Determine whether the iterator is an 'end' iterator and thus not actually pointing to a node.
unsigned int number_of_children(const iterator_base &) const
Count the number of children of node at position.
Represents a generic transaction.
unsigned int number_of_siblings(const iterator_base &) const
Count the number of 'next' siblings of node at iterator.
Represents an investment position, such as a stock or bond.
Message IO functionality.
std::string tag_identifier