20 #ifndef OFX_AGGREGATE_H 21 #define OFX_AGGREGATE_H 57 void Add(
const std::string& tag,
const std::string& data )
59 m_contents += std::string(
"<") + tag + std::string(
">") + data + std::string(
"\r\n");
68 void AddXml(
const std::string& tag,
const std::string& data )
70 m_contents += std::string(
"<") + tag + std::string(
">") + data + std::string(
"</") + tag + std::string(
">") + std::string(
"\r\n");
80 m_contents += sub.
Output();
90 return std::string(
"<") + m_tag + std::string(
">\r\n") + m_contents + std::string(
"</") + m_tag + std::string(
">\r\n");
95 std::string m_contents;
98 #endif // OFX_AGGREGATE_H A single aggregate as described in the OFX 1.02 specification.
void AddXml(const std::string &tag, const std::string &data)
void Add(const std::string &tag, const std::string &data)
void Add(const OfxAggregate &sub)
std::string Output(void) const
OfxAggregate(const std::string &tag)