CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FWTableViewManager::TableHandle Class Reference

Public Member Functions

TableHandlecolumn (const char *formula, int precision, const char *name)
 
TableHandlecolumn (const char *label, int precision)
 
 TableHandle (const char *name, TableSpecs &specs)
 

Private Attributes

std::string m_name
 
TableSpecsm_specs
 

Detailed Description

Definition at line 104 of file FWTableViewManager.h.

Constructor & Destructor Documentation

FWTableViewManager::TableHandle::TableHandle ( const char *  name,
TableSpecs specs 
)
inline

Definition at line 113 of file FWTableViewManager.h.

References m_specs, and mergeVDriftHistosByStation::name.

Member Function Documentation

FWTableViewManager::TableHandle & FWTableViewManager::TableHandle::column ( const char *  name,
int  precision,
const char *  expression 
)

Define a column in the current table.

name to be used as header of the column.

precision specifying the number of significant digits in the fractional part.

expression to be used to retrieve the value from the object.

Definition at line 191 of file FWTableViewManager.cc.

References FWTableViewManager::TableEntry::expression, m_name, m_specs, FWTableViewManager::TableEntry::name, mergeVDriftHistosByStation::name, and FWTableViewManager::TableEntry::precision.

Referenced by column(), FWTableViewManager::setFrom(), and FWTableViewManager::tableFormats().

192 {
193  TableEntry columnEntry;
194  columnEntry.name = name;
195  columnEntry.precision = precision;
196  columnEntry.expression = expression;
197 
198  m_specs[m_name].push_back(columnEntry);
199  return *this;
200 }
TableHandle& FWTableViewManager::TableHandle::column ( const char *  label,
int  precision 
)
inline

Definition at line 108 of file FWTableViewManager.h.

References column().

109  {
110  return column(label, precision, label);
111  }
TableHandle & column(const char *formula, int precision, const char *name)

Member Data Documentation

std::string FWTableViewManager::TableHandle::m_name
private

Definition at line 119 of file FWTableViewManager.h.

Referenced by column().

TableSpecs& FWTableViewManager::TableHandle::m_specs
private

Definition at line 120 of file FWTableViewManager.h.

Referenced by column(), and TableHandle().