LibOFX
OfxAggregate Class Reference

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

Inheritance diagram for OfxAggregate:
OfxRequest OfxRequest OfxAccountInfoRequest OfxAccountInfoRequest OfxPaymentRequest OfxPaymentRequest OfxStatementRequest OfxStatementRequest OfxAccountInfoRequest OfxAccountInfoRequest OfxPaymentRequest OfxPaymentRequest OfxStatementRequest OfxStatementRequest

Public Member Functions

 OfxAggregate (const string &tag)
 
void Add (const string &tag, const string &data)
 
void AddXml (const string &tag, const string &data)
 
void Add (const OfxAggregate &sub)
 
string Output (void) const
 
 OfxAggregate (const string &tag)
 
void Add (const string &tag, const string &data)
 
void AddXml (const string &tag, const string &data)
 
void Add (const OfxAggregate &sub)
 
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 42 of file build/libofx-0.10.0/lib/ofx_aggregate.hh.

Constructor & Destructor Documentation

◆ OfxAggregate() [1/2]

OfxAggregate::OfxAggregate ( const string &  tag)
inline

Creates a new aggregate, using this tag

Parameters
tagThe tag of this aggregate

Definition at line 50 of file build/libofx-0.10.0/lib/ofx_aggregate.hh.

◆ OfxAggregate() [2/2]

OfxAggregate::OfxAggregate ( const string &  tag)
inline

Creates a new aggregate, using this tag

Parameters
tagThe tag of this aggregate

Definition at line 50 of file lib/ofx_aggregate.hh.

Member Function Documentation

◆ Add() [1/4]

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

◆ Add() [2/4]

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

Adds an element to this aggregate

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

Definition at line 59 of file lib/ofx_aggregate.hh.

◆ Add() [3/4]

void OfxAggregate::Add ( const OfxAggregate sub)
inline

Adds a subordinate aggregate to this aggregate

Parameters
subThe aggregate to be added

Definition at line 80 of file lib/ofx_aggregate.hh.

◆ Add() [4/4]

void OfxAggregate::Add ( const OfxAggregate sub)
inline

Adds a subordinate aggregate to this aggregate

Parameters
subThe aggregate to be added

Definition at line 80 of file build/libofx-0.10.0/lib/ofx_aggregate.hh.

◆ AddXml() [1/2]

void OfxAggregate::AddXml ( const string &  tag,
const 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 70 of file build/libofx-0.10.0/lib/ofx_aggregate.hh.

◆ AddXml() [2/2]

void OfxAggregate::AddXml ( const string &  tag,
const 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 70 of file lib/ofx_aggregate.hh.

◆ Output() [1/2]

string OfxAggregate::Output ( void  ) const
inline

Composes this aggregate into a string

Returns
string form of this aggregate

Definition at line 90 of file build/libofx-0.10.0/lib/ofx_aggregate.hh.

Referenced by Add().

◆ Output() [2/2]

string OfxAggregate::Output ( void  ) const
inline

Composes this aggregate into a string

Returns
string form of this aggregate

Definition at line 90 of file lib/ofx_aggregate.hh.


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