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 > ValueMapVariable< ObjType, TIn, ValType > FuncVariable< ObjType, StringFunctor, 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 21 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ VariableBase()

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

Definition at line 23 of file SimpleFlatTableProducer.h.

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

◆ ~VariableBase()

virtual VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 28 of file SimpleFlatTableProducer.h.

28 {}

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