CMS 3D CMS Logo

Public Member Functions | Private Attributes

FWTableViewManager::TableHandle Class Reference

List of all members.

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.

         :m_name(name), m_specs(specs) 
         {
            m_specs[name].clear();
         }

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().

{
   TableEntry columnEntry;
   columnEntry.name = name;
   columnEntry.precision = precision;
   columnEntry.expression = expression;
   
   m_specs[m_name].push_back(columnEntry);
   return *this;
}
TableHandle& FWTableViewManager::TableHandle::column ( const char *  label,
int  precision 
) [inline]

Definition at line 108 of file FWTableViewManager.h.

References column().

         {
            return column(label, precision, label);
         }

Member Data Documentation

Definition at line 119 of file FWTableViewManager.h.

Referenced by column().

Definition at line 120 of file FWTableViewManager.h.

Referenced by column(), and TableHandle().