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 Reflex::Type &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
 
Reflex::Type m_type
 

Detailed Description

Definition at line 47 of file RelationalMapping.h.

Constructor & Destructor Documentation

ora::PrimitiveMapping::PrimitiveMapping ( const Reflex::Type &  attributeType,
TableRegister tableRegister 
)

Definition at line 173 of file RelationalMapping.cc.

173  :
174  m_type(attributeType),m_tableRegister( tableRegister ){
175 }
TableRegister & m_tableRegister
ora::PrimitiveMapping::~PrimitiveMapping ( )

Definition at line 177 of file RelationalMapping.cc.

177  {
178 }

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 180 of file RelationalMapping.cc.

References ora::ClassUtils::isTypeString(), ora::MappingElement::primitiveMappingElementType(), ora::processLeafElement(), ora::ClassUtils::resolvedType(), and lumiQTWidget::t.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().

183  {
185  const std::type_info* attrType = &t.TypeInfo();
186  if(t.IsEnum()) attrType = &typeid(int);
187  //std::string tn = ClassUtils::demangledName(*attrType);
188  if(ClassUtils::isTypeString( t )) attrType = &typeid(std::string);
189  std::string typeName = coral::AttributeSpecification::typeNameForId(*attrType);
190 
191  processLeafElement(parentElement,
193  typeName,
194  attributeName,
195  attributeNameForSchema,
196  scopeNameForSchema,
197  m_tableRegister);
198 }
bool isTypeString(const Reflex::Type &typ)
Definition: ClassUtils.cc:137
static std::string primitiveMappingElementType()
Returns the name of the primitive mapping element type.
Reflex::Type resolvedType(const Reflex::Type &typ)
Definition: ClassUtils.cc:404
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.

Reflex::Type ora::PrimitiveMapping::m_type
private

Definition at line 55 of file RelationalMapping.h.