CMS 3D CMS Logo

Classes | Macros | Functions
RecordHelper.h File Reference
#include <boost/type_traits.hpp>
#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 >
 
struct  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 192 of file RecordHelper.h.

◆ 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 124 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.

9 {
10  transform(aString.begin(), aString.end(), aString.begin(), (int (*) (int))toupper);
11  return aString;
12 }

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

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

Group
Definition: RecordHelper.h:119
susybsm::HSCParticleType::Type
Type
Definition: HSCParticle.h:20
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
createfilelist.int
int
Definition: createfilelist.py:10