LibOFX
OfxAggregate Class Reference

A single aggregate as described in the OFX 1.02 specification. More...

#include <ofx_aggregate.hh>

Inheritance diagram for OfxAggregate:
OfxRequest OfxAccountInfoRequest OfxPaymentRequest OfxStatementRequest

Public Member Functions

 OfxAggregate (const std::string &tag)
void Add (const std::string &tag, const std::string &data)
void AddXml (const std::string &tag, const std::string &data)
void Add (const OfxAggregate &sub)
std::string Output (void) const

Detailed Description

A single aggregate as described in the OFX 1.02 specification.

This aggregate has a tag, and optionally a number of subordinate elements and aggregates.

An example is: <CCACCTINFO> <CCACCTFROM> <ACCTID>1234 </CCACCTFROM> <SUPTXDL>Y <SVCSTATUS>ACTIVE </CCACCTINFO>

Definition at line 40 of file ofx_aggregate.hh.

Constructor & Destructor Documentation

◆ OfxAggregate()

Member Function Documentation

◆ Add() [1/2]

void OfxAggregate::Add ( const OfxAggregate & sub)
inline

Adds a subordinate aggregate to this aggregate

Parameters
subThe aggregate to be added

Definition at line 78 of file ofx_aggregate.hh.

◆ Add() [2/2]

void OfxAggregate::Add ( const std::string & tag,
const std::string & data )
inline

◆ AddXml()

void OfxAggregate::AddXml ( const std::string & tag,
const std::string & data )
inline

Adds an xml element to this aggregate, e.g. <TAG>data</TAG>

Parameters
tagThe tag of the element to be added
dataThe data of the element to be added

Definition at line 68 of file ofx_aggregate.hh.

Referenced by OfxStatementRequest::InvestmentStatementRequest().

◆ Output()

std::string OfxAggregate::Output ( void ) const
inline

Composes this aggregate into a string

Returns
string form of this aggregate

Definition at line 88 of file ofx_aggregate.hh.

Referenced by Add().


The documentation for this class was generated from the following file: