CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
VariableBase Class Reference

#include <SimpleFlatTableProducer.h>

Inheritance diagram for VariableBase:
ExtVariable< ObjType > Variable< ObjType > ValueMapVariableBase< ObjType, TIn, ValType > FuncVariable< ObjType, StringFunctor, ValType > TypedValueMapVariable< ObjType, TIn, StringFunctor, ValType > ValueMapVariable< ObjType, TIn, ValType >

Public Member Functions

const std::string & name () const
 
 VariableBase (const std::string &aname, const edm::ParameterSet &cfg)
 
virtual ~VariableBase ()
 

Protected Attributes

std::string doc_
 
std::string name_
 
int precision_
 

Detailed Description

Definition at line 22 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ VariableBase()

VariableBase::VariableBase ( const std::string &  aname,
const edm::ParameterSet cfg 
)
inline

Definition at line 24 of file SimpleFlatTableProducer.h.

25  : name_(aname),
26  doc_(cfg.getParameter<std::string>("doc")),
27  precision_(cfg.existsAs<int>("precision") ? cfg.getParameter<int>("precision")
28  : (cfg.existsAs<std::string>("precision") ? -2 : -1)) {}

◆ ~VariableBase()

virtual VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 29 of file SimpleFlatTableProducer.h.

29 {}

Member Function Documentation

◆ name()

const std::string& VariableBase::name ( void  ) const
inline

Member Data Documentation

◆ doc_

std::string VariableBase::doc_
protected

◆ name_

std::string VariableBase::name_
protected

◆ precision_

int VariableBase::precision_
protected