39   memset(&data, 0, 
sizeof(data));
 
   42 OfxSecurityContainer::~OfxSecurityContainer()
 
   47   if (identifier == 
"UNIQUEID")
 
   50     data.unique_id_valid = 
true;
 
   52   else if (identifier == 
"UNIQUEIDTYPE")
 
   55     data.unique_id_type_valid = 
true;
 
   57   else if (identifier == 
"SECNAME")
 
   60     data.secname_valid = 
true;
 
   62   else if (identifier == 
"TICKER")
 
   64     strncpy(data.
ticker, value.c_str(), 
sizeof(data.
ticker));
 
   65     data.ticker_valid = 
true;
 
   67   else if (identifier == 
"UNITPRICE")
 
   70     data.unitprice_valid = 
true;
 
   72   else if (identifier == 
"DTASOF")
 
   75     data.date_unitprice_valid = 
true;
 
   77   else if (identifier == 
"CURDEF")
 
   79     strncpy(data.
currency, value.c_str(), OFX_CURRENCY_LENGTH);
 
   80     data.currency_valid = 
true;
 
   82   else if (identifier == 
"MEMO" || identifier == 
"MEMO2")
 
   84     strncpy(data.
memo, value.c_str(), 
sizeof(data.
memo));
 
   85     data.memo_valid = 
true;
 
   87   else if (identifier == 
"FIID")
 
   89     strncpy(data.
fiid, value.c_str(), OFX_FIID_LENGTH);
 
   90     data.fiid_valid = 
true;
 
  100   libofx_context->securityCallback(data);
 
  106   if (MainContainer != NULL)
 
  108     return MainContainer->add_container(
this);
 
A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer. 
virtual void add_attribute(const string identifier, const string value)
Add data to a container object. 
virtual int add_to_main_tree()
Add this container to the main tree. 
virtual int gen_event()
Generate libofx.h events. 
char currency[OFX_CURRENCY_LENGTH]
Message IO functionality. 
char memo[OFX_MEMO2_LENGTH]
char fiid[OFX_FIID_LENGTH]
void add_attribute(const string identifier, const string value)
Add data to a container object. 
char unique_id[OFX_UNIQUE_ID_LENGTH]
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. 
char unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH]
char ticker[OFX_TICKER_LENGTH]
Various simple functions for type conversion & al. 
The root container. Created by the <OFX> OFX element or by the export functions. 
char secname[OFX_SECNAME_LENGTH]
LibOFX internal object code.