HDF5 Stock Database

I am looking for examples or direction on using HDF5 as a stock database
using C++. Can someone point me the right direction?

Thanks in advance,
Peter

H5::CompType *CQuote::DefineDataType( H5::CompType *pComp ) {

  if ( NULL == pComp ) pComp = new H5::CompType( sizeof( CQuote ) );

  CDatedDatum::DefineDataType( pComp );

  pComp->insertMember( "DateTime", HOFFSET( CQuote, m_dt ),
H5::PredType::NATIVE_LLONG );

  pComp->insertMember( "Bid", HOFFSET( CQuote, m_dblBid ),
H5::PredType::NATIVE_DOUBLE );

  pComp->insertMember( "Ask", HOFFSET( CQuote, m_dblAsk ),
H5::PredType::NATIVE_DOUBLE );

  pComp->insertMember( "BidSize", HOFFSET( CQuote, m_nBidSize ),
H5::PredType::NATIVE_INT );

  pComp->insertMember( "AskSize", HOFFSET( CQuote, m_nAskSize ),
H5::PredType::NATIVE_INT );

  return pComp;

}

The above is an example in Visual Studio of getting a compound data type
defined. I have other code written in iterator style to write and read
compound data records.

I haven't figured out whether or not to keep my code private or to publish
it. For one thing, it is missing documentation. I've been trying to crank
out code when I can to get something useful first.

How far along are you with your project?

Ray

···

From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Corporate OnRamp
Sent: Monday, April 18, 2011 17:33
To: hdf-forum@hdfgroup.org
Subject: [Hdf-forum] HDF5 Stock Database

I am looking for examples or direction on using HDF5 as a stock database
using C++. Can someone point me the right direction?

Thanks in advance,
Peter

--
This message has been scanned for viruses and
dangerous content by <http://www.mailscanner.info/> MailScanner, and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.