CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::InsertCache Class Reference

#include <MultiRecordInsertOperation.h>

List of all members.

Public Member Functions

 InsertCache (const RecordSpec &m_spec, const coral::AttributeList &data)
void processNextIteration ()
const std::vector< Record * > & records () const
 ~InsertCache ()

Private Attributes

const coral::AttributeList & m_data
std::vector< Record * > m_records
const RecordSpecm_spec

Detailed Description

Definition at line 15 of file MultiRecordInsertOperation.h.


Constructor & Destructor Documentation

ora::InsertCache::InsertCache ( const RecordSpec m_spec,
const coral::AttributeList &  data 
)

Definition at line 11 of file MultiRecordInsertOperation.cc.

                                                               :
  m_spec(spec),m_records(),m_data( data ){
}
ora::InsertCache::~InsertCache ( )

Definition at line 16 of file MultiRecordInsertOperation.cc.

                            {
  for(std::vector<Record*>::const_iterator iR = m_records.begin();
      iR != m_records.end(); ++iR ){
    delete *iR;
  }
}

Member Function Documentation

void ora::InsertCache::processNextIteration ( )

Definition at line 23 of file MultiRecordInsertOperation.cc.

References SiStripGain_Fake_cff::Record.

Referenced by ora::STLContainerWriter::write(), and ora::CArrayWriter::write().

                                         {
  Record* rec = new Record(m_spec);
  newRecordFromAttributeList(*rec, m_data );
  m_records.push_back( rec );
}
const std::vector< ora::Record * > & ora::InsertCache::records ( ) const

Definition at line 29 of file MultiRecordInsertOperation.cc.

                                                           {
  return m_records;
}

Member Data Documentation

const coral::AttributeList& ora::InsertCache::m_data [private]

Definition at line 24 of file MultiRecordInsertOperation.h.

std::vector<Record*> ora::InsertCache::m_records [private]

Definition at line 23 of file MultiRecordInsertOperation.h.

Definition at line 22 of file MultiRecordInsertOperation.h.