CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::QVReader Class Reference

Public Member Functions

 QVReader (const edm::TypeWithDict &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 
void read (const std::vector< int > &fullId, void *destinationAddress)
 

Private Attributes

DataElement m_localElement
 
edm::TypeWithDict m_objectType
 
PVectorReader m_reader
 

Detailed Description

Definition at line 22 of file QueryableVectorStreamer.cc.

Constructor & Destructor Documentation

ora::QVReader::QVReader ( const edm::TypeWithDict objectType,
MappingElement mapping,
ContainerSchema contSchema 
)
inline

Definition at line 24 of file QueryableVectorStreamer.cc.

References ora::PVectorReader::build(), ora::DataElement::clear(), m_localElement, and m_reader.

24  :
25  m_objectType( objectType ),
27  m_reader( ClassUtils::containerSubType(objectType,"store_base_type"), mapping, contSchema ){
29  InputRelationalData dummy;
30  m_reader.build( m_localElement,dummy );
31  }
bool build(DataElement &offset, IRelationalData &relationalData)
edm::TypeWithDict containerSubType(const edm::TypeWithDict &typ, const std::string &subTypeName)
Definition: ClassUtils.cc:468
edm::TypeWithDict m_objectType

Member Function Documentation

void ora::QVReader::read ( const std::vector< int > &  fullId,
void *  destinationAddress 
)
inline

Definition at line 33 of file QueryableVectorStreamer.cc.

References ora::PVectorReader::clear(), i, m_reader, ora::PVectorReader::read(), ora::PVectorReader::select(), and ora::PVectorReader::setRecordId().

Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), ora::QueryableVectorLoader::load(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().

33  {
34  m_reader.select( fullId[0] );
35  std::vector<int> recordId;
36  for(size_t i=1;i<fullId.size();i++) {
37  recordId.push_back( fullId[i] );
38  }
39  m_reader.setRecordId(recordId);
40  m_reader.read( destinationAddress );
41  m_reader.clear();
42  }
int i
Definition: DBlmapReader.cc:9
void read(void *address)
Reads a data element.
void setRecordId(const std::vector< int > &identity)
void select(int oid)

Member Data Documentation

DataElement ora::QVReader::m_localElement
private

Definition at line 46 of file QueryableVectorStreamer.cc.

Referenced by QVReader().

edm::TypeWithDict ora::QVReader::m_objectType
private

Definition at line 45 of file QueryableVectorStreamer.cc.

PVectorReader ora::QVReader::m_reader
private

Definition at line 47 of file QueryableVectorStreamer.cc.

Referenced by QVReader(), and read().