CMS 3D CMS Logo

Classes | Defines | Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/L1TriggerConfig/GMTConfigProducers/interface/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 >

Defines

#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)

Define Documentation

#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 200 of file RecordHelper.h.

Referenced by L1MuGMTParametersOnlineProducer::newObject().

#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 129 of file RecordHelper.h.


Function Documentation

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.

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

{
  transform(aString.begin(), aString.end(), aString.begin(), (int (*) (int))toupper);
  return aString;
}