Go to the documentation of this file.
45 message_out(
INFO,
"Created OfxDummyContainer to hold unsupported aggregate " + para_tag_identifier);
76 memset(&data, 0,
sizeof(data));
78 if (parentcontainer != NULL)
80 strncpy(data.ofx_element_name, parentcontainer->
tag_identifier.c_str(), OFX_ELEMENT_NAME_LENGTH);
81 data.ofx_element_name_valid =
true;
85 OfxStatusContainer::~OfxStatusContainer()
89 libofx_context->statusCallback(data);
91 if ( data.server_message_valid )
99 if ( identifier ==
"CODE")
101 data.
code = atoi(value.c_str());
107 else if (identifier ==
"SEVERITY")
109 data.severity_valid =
true;
114 else if (value ==
"WARN")
118 else if (value ==
"ERROR")
125 data.severity_valid =
false;
128 else if ((identifier ==
"MESSAGE") || (identifier ==
"MESSAGE2"))
132 data.server_message_valid =
true;
150 amount_valid =
false;
155 OfxBalanceContainer::~OfxBalanceContainer()
157 if (parentcontainer->
type ==
"STATEMENT")
163 message_out (
ERROR,
"I completed a " +
type +
" element, but I haven't found a suitable parent to save it");
168 if (identifier ==
"BALAMT")
173 else if (identifier ==
"DTASOF")
int message_out(OfxMsgType error_type, const string message)
Message output function.
The root container. Created by the <OFX> OFX element or by the export functions.
OFX error code management functionnality.
void add_attribute(const string identifier, const string value)
Add data to a container object.
double ofxamount_to_double(const string ofxamount)
Convert OFX amount of money to double float.
const ErrorMsg find_error_msg(int param_code)
Retreive error code descriptions.
Various simple functions for type conversion & al.
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer.
Main header file containing the LibOfx API.
LibOFX internal object code.
void add_attribute(const string identifier, const string value)
Add data to a container object.
time_t ofxdate_to_time_t(const string ofxdate)
Convert a C++ string containing a time in OFX format to a C time_t.
Represents a statement for either a bank account or a credit card account.
An abstraction of an OFX error code sent by an OFX server.
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.
virtual void add_attribute(const string identifier, const string value)
Add data to a container object.
Message IO functionality.