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 )
92 delete [] data.server_message;
99 if ( identifier ==
"CODE")
101 data.
code = atoi(value.c_str());
103 data.name = error_msg.name;
104 data.description = error_msg.description;
105 data.code_valid =
true;
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"))
130 data.server_message =
new char[value.length()+1];
131 strcpy(data.server_message, value.c_str());
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")
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.