CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

#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; \
};
TStandardGroup Type
Definition: RecordHelper.h:125

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.

References create_public_lumi_plots::transform.

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

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