45 message_out(
INFO,
"Created OfxDummyContainer to hold unsupported aggregate " + para_tag_identifier);
75 memset(&data, 0,
sizeof(data));
77 if (parentcontainer != NULL)
79 strncpy(data.ofx_element_name, parentcontainer->
tag_identifier.c_str(), OFX_ELEMENT_NAME_LENGTH);
80 data.ofx_element_name_valid =
true;
84 OfxStatusContainer::~OfxStatusContainer()
88 libofx_context->statusCallback(data);
90 if ( data.server_message_valid )
98 if ( identifier ==
"CODE")
100 data.
code = atoi(value.c_str());
102 data.
name = error_msg.name;
106 else if (identifier ==
"SEVERITY")
108 data.severity_valid =
true;
113 else if (value ==
"WARN")
117 else if (value ==
"ERROR")
124 data.severity_valid =
false;
127 else if ((identifier ==
"MESSAGE") || (identifier ==
"MESSAGE2"))
131 data.server_message_valid =
true;
149 amount_valid =
false;
154 OfxBalanceContainer::~OfxBalanceContainer()
156 if (parentcontainer->
type ==
"STATEMENT")
162 message_out (
ERROR,
"I completed a " +
type +
" element, but I haven't found a suitable parent to save it");
167 if (identifier ==
"BALAMT")
172 else if (identifier ==
"DTASOF")
const ErrorMsg find_error_msg(int param_code)
Retreive error code descriptions.
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer.
OFX error code management functionnality.
virtual void add_attribute(const string identifier, const string value)
Add data to a container object.
void add_attribute(const string identifier, const string value)
Add data to a container object.
int message_out(OfxMsgType error_type, const string message)
Message output function.
time_t ofxdate_to_time_t(const string ofxdate)
Convert a C++ string containing a time in OFX format to a C time_t.
double ofxamount_to_double(const string ofxamount)
Convert OFX amount of money to double float.
Various simple functions for type conversion & al.
Represents a statement for either a bank account or a credit card account.
void add_attribute(const string identifier, const string value)
Add data to a container object.
void add_attribute(const string identifier, const string value)
Add data to a container object.
LibOFX internal object code.
An abstraction of an OFX error code sent by an OFX server.
Message IO functionality.
The root container. Created by the <OFX> OFX element or by the export functions.
void add_attribute(const string identifier, const string value)
Add data to a container object.