test
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::PrimitiveMapping Class Reference

#include <RelationalMapping.h>

Inheritance diagram for ora::PrimitiveMapping:
ora::IRelationalMapping

Public Member Functions

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

Private Attributes

TableRegisterm_tableRegister
 
edm::TypeWithDict m_type
 

Detailed Description

Definition at line 47 of file RelationalMapping.h.

Constructor & Destructor Documentation

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

Definition at line 176 of file RelationalMapping.cc.

176  :
177  m_type(attributeType),m_tableRegister( tableRegister ){
178 }
edm::TypeWithDict m_type
TableRegister & m_tableRegister
ora::PrimitiveMapping::~PrimitiveMapping ( )

Definition at line 180 of file RelationalMapping.cc.

180  {
181 }

Member Function Documentation

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

Implements ora::IRelationalMapping.

Definition at line 183 of file RelationalMapping.cc.

References edm::TypeWithDict::isEnum(), ora::ClassUtils::isTypeString(), ora::MappingElement::primitiveMappingElementType(), ora::processLeafElement(), ora::ClassUtils::resolvedType(), AlCaHLTBitMon_QueryRunRegistry::string, t, and edm::TypeWithDict::typeInfo().

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().

186  {
188  const std::type_info* attrType = t.isEnum() ? &typeid(int) : &t.typeInfo();
189  //std::string tn = ClassUtils::demangledName(*attrType);
190  if(ClassUtils::isTypeString( t )) attrType = &typeid(std::string);
191  std::string typeName = coral::AttributeSpecification::typeNameForId(*attrType);
192 
193  processLeafElement(parentElement,
195  typeName,
196  attributeName,
197  attributeNameForSchema,
198  scopeNameForSchema,
199  m_tableRegister);
200 }
bool isEnum() const
edm::TypeWithDict resolvedType(const edm::TypeWithDict &typ)
Definition: ClassUtils.cc:486
static std::string primitiveMappingElementType()
Returns the name of the primitive mapping element type.
bool isTypeString(const edm::TypeWithDict &typ)
Definition: ClassUtils.cc:215
std::type_info const & typeInfo() const
edm::TypeWithDict m_type
void processLeafElement(MappingElement &parentElement, const std::string &elementType, const std::string &typeName, const std::string &attributeName, const std::string &attributeNameForSchema, const std::string &scopeNameForSchema, TableRegister &tableRegister)
TableRegister & m_tableRegister

Member Data Documentation

TableRegister& ora::PrimitiveMapping::m_tableRegister
private

Definition at line 56 of file RelationalMapping.h.

edm::TypeWithDict ora::PrimitiveMapping::m_type
private

Definition at line 55 of file RelationalMapping.h.