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");
   107       account_tree.
insert(tmp.begin(), container);
   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");
   218   while (tmp != security_tree.
end() && retval == NULL)
 Represents a security, such as a stock or bond. 
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer. 
pre_order_iterator begin() const
Return iterator to the beginning of the tree. 
Represents a generic transaction. 
unsigned int number_of_siblings(const iterator_base &) const
Count the number of 'next' siblings of node at iterator. 
Iterator which traverses only the nodes which are siblings of each other. 
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. 
unsigned int number_of_children(const iterator_base &) const
Count the number of children of node at position. 
pre_order_iterator end() const
Return iterator to the end of the tree. 
LibOFX internal object code. 
Represents a statement for either a bank account or a credit card account. 
Message IO functionality. 
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. 
Represents an investment position, such as a stock or bond. 
An abstraction of a security, such as a stock, mutual fund, etc. 
Depth-first iterator, first accessing the node, then its children. 
bool is_valid(const iterator_base &) const
Determine whether the iterator is an 'end' iterator and thus not actually pointing to a node...
int size() const
Count the total number of nodes. 
Represents a bank account or a credit card account. 
int gen_event()
Generate libofx.h events.