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::OraPtrMapping Class Reference

#include <RelationalMapping.h>

Inheritance diagram for ora::OraPtrMapping:
ora::IRelationalMapping

Public Member Functions

 OraPtrMapping (const edm::TypeWithDict &attributeType, TableRegister &tableRegister)
 
void process (MappingElement &parentElement, const std::string &attributeName, const std::string &attributeNameForSchema, const std::string &scopeNameForSchema)
 
 ~OraPtrMapping ()
 
- Public Member Functions inherited from ora::IRelationalMapping
virtual ~IRelationalMapping ()
 

Private Attributes

TableRegisterm_tableRegister
 
edm::TypeWithDict m_type
 

Detailed Description

Definition at line 102 of file RelationalMapping.h.

Constructor & Destructor Documentation

ora::OraPtrMapping::OraPtrMapping ( const edm::TypeWithDict attributeType,
TableRegister tableRegister 
)

Definition at line 299 of file RelationalMapping.cc.

299  :
300  m_type(attributeType), m_tableRegister( tableRegister ){
301 }
edm::TypeWithDict m_type
TableRegister & m_tableRegister
ora::OraPtrMapping::~OraPtrMapping ( )

Definition at line 303 of file RelationalMapping.cc.

303  {
304 }

Member Function Documentation

void ora::OraPtrMapping::process ( MappingElement parentElement,
const std::string &  attributeName,
const std::string &  attributeNameForSchema,
const std::string &  scopeNameForSchema 
)
virtual

Implements ora::IRelationalMapping.

Definition at line 306 of file RelationalMapping.cc.

References ora::MappingElement::appendSubElement(), ora::MappingElement::columnNames(), edm::TypeWithDict::name(), ora::RelationalMappingFactory::newProcessor(), ora::MappingElement::OraPointerMappingElementType(), ora::MappingElement::setColumnNames(), AlCaHLTBitMon_QueryRunRegistry::string, ora::MappingElement::tableName(), and edm::TypeWithDict::templateArgumentAt().

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().

309  {
310 
311  std::string typeName = m_type.cppName();
312  ora::MappingElement& me = parentElement.appendSubElement( ora::MappingElement::OraPointerMappingElementType(), attributeName, typeName, parentElement.tableName() );
313  me.setColumnNames( parentElement.columnNames() );
314 
316  std::string ptrTypeName = ptrType.name();
317 
318  RelationalMappingFactory factory( m_tableRegister );
319  std::auto_ptr<IRelationalMapping> processor( factory.newProcessor( ptrType ) );
320  processor->process( me, ptrTypeName, attributeNameForSchema, scopeNameForSchema );
321 }
MappingElement & appendSubElement(const std::string &elementType, const std::string &variableName, const std::string &variableType, const std::string &tableName)
TypeWithDict templateArgumentAt(size_t index) const
std::string name() const
std::string cppName() const
edm::TypeWithDict m_type
TableRegister & m_tableRegister
static std::string OraPointerMappingElementType()
Returns the name of the ORA pointer mapping element type.
void setColumnNames(const std::vector< std::string > &columns)

Member Data Documentation

TableRegister& ora::OraPtrMapping::m_tableRegister
private

Definition at line 112 of file RelationalMapping.h.

edm::TypeWithDict ora::OraPtrMapping::m_type
private

Definition at line 111 of file RelationalMapping.h.