CMS 3D CMS Logo

Classes | Macros | Functions
RecordHelper.h File Reference
#include <type_traits>
#include "RelationalAccess/ICursor.h"
#include "CoralBase/AttributeList.h"
#include "CoralBase/AttributeSpecification.h"
#include "CoralBase/Attribute.h"

Go to the source code of this file.

Classes

class  ASCIIBoolFieldHandler< TOutput, FalseCharacter >
 
class  FieldHandler< TOutput, TCField, TDBField >
 
class  FieldHandlerBase< TOutput >
 
class  Group< TOutput >
 
struct  GroupFieldHandler< TOutput, TGroup, TCType >
 
class  RecordHelper< TOutput >
 

Macros

#define ADD_FIELD(HELPER, OUTPUT_NAME, FIELD_NAME)   HELPER.addField(#FIELD_NAME, &OUTPUT_NAME::set##FIELD_NAME);
 
#define RH_ASSIGN_GROUP(TOutput, TGroup)
 

Functions

std::string upcaseString (std::string aString)
 

Macro Definition Documentation

◆ ADD_FIELD

#define ADD_FIELD (   HELPER,
  OUTPUT_NAME,
  FIELD_NAME 
)    HELPER.addField(#FIELD_NAME, &OUTPUT_NAME::set##FIELD_NAME);

A helper macro to reduce the amount of typing, since the field name completely determines the setter.

Definition at line 198 of file RecordHelper.h.

Referenced by L1MuGMTParametersOnlineProducer::newObject().

◆ RH_ASSIGN_GROUP

#define RH_ASSIGN_GROUP (   TOutput,
  TGroup 
)
Value:
template <> \
struct Group<TOutput> { \
typedef TGroup Type; \
};

A macro that assigns a record type to a group.

Definition at line 130 of file RecordHelper.h.

Function Documentation

◆ upcaseString()

std::string upcaseString ( std::string  aString)

A C++ version of C's strupper

A simple C++ replacement for C's strupper

Definition at line 8 of file RecordHelper.cc.

References createfilelist::int, and HcalDetIdTransform::transform().

Referenced by FieldHandlerBase< TOutput >::getColumnName().

9 {
10  transform(aString.begin(), aString.end(), aString.begin(), (int (*) (int))toupper);
11  return aString;
12 }
unsigned transform(const HcalDetId &id, unsigned transformCode)