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 16 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ VariableBase()

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

Definition at line 18 of file SimpleFlatTableProducer.h.

19  : name_(aname),
20  doc_(cfg.getParameter<std::string>("doc")),
21  precision_(cfg.existsAs<int>("precision") ? cfg.getParameter<int>("precision")
22  : (cfg.existsAs<std::string>("precision") ? -2 : -1)) {}

◆ ~VariableBase()

virtual VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 23 of file SimpleFlatTableProducer.h.

23 {}

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