BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcRecoUtil/MdcRecoUtil/HTColumn.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: HTColumn.h,v 1.2 2009/12/23 02:59:56 zhangy Exp $
4//
5// Description:
6// Class HTColumn.
7// Base class for the ntuple columns. This is abstract one, all
8// real things will be implemented it the classes for specific types.
9//
10// Environment:
11// Software developed for the BaBar Detector at the SLAC B-Factory.
12//
13// Author List:
14// Salnikov
15//
16// Copyright Information:
17// Copyright (C) 1997 Saclay
18//
19// History:
20// Migration for BESIII MDC
21//
22//------------------------------------------------------------------------
23
24#ifndef HTColumn_H
25#define HTColumn_H
26
27
28//-------------
29// C Headers --
30//-------------
31extern "C" {
32}
33
34//---------------
35// C++ Headers --
36//---------------
37#include <iostream>
38#include <string>
39
40//----------------------
41// Base Class Headers --
42//----------------------
43
44//-------------------------------
45// Collaborating Class Headers --
46//-------------------------------
47
48//------------------------------------
49// Collaborating Class Declarations --
50//------------------------------------
51class HTColumnAcceptor ;
52
53// ---------------------
54// -- Class Interface --
55// ---------------------
56
57class HTColumn {
58
59 //--------------------
60 // Declarations --
61 //--------------------
62
63 // Typedefs, consts, and enums
64
65 //--------------------
66 // Instance Members --
67 //--------------------
68
69public:
70
71 // Constructors
72 HTColumn( const std::string& label,
73 const std::string& block=std::string(),
74 const std::string& indexLabel=std::string() );
75
76 // Copy Constructor
77 HTColumn( const HTColumn& );
78
79 // Destructor
80 virtual ~HTColumn( );
81
82 // Operators
83 HTColumn& operator=(const HTColumn&) ;
84
85 // Selectors (const)
86 virtual const std::string& label() const ;
87 virtual const std::string& block() const ;
88 virtual const std::string& indexLabel() const ;
89
90 // typeinfo
91 virtual const std::string& typeName() const = 0 ;
92
93 // modifiers
94 virtual void clearData() = 0 ;
95
96 virtual void print(/*std::ostream& out*/) const ;
97
98protected:
99
100 // Helper functions
101
102private:
103
104 // Friends
105
106 // Data members
107 std::string _label ;
108 std::string _block ;
109 std::string _indexLabel ;
110
111};
112
113#endif // HTColumn_H
HTColumn & operator=(const HTColumn &)
Definition: HTColumn.cxx:95
HTColumn(const std::string &label, const std::string &block=std::string(), const std::string &indexLabel=std::string())
virtual void clearData()=0
virtual void print() const
Definition: HTColumn.cxx:128
virtual ~HTColumn()
Definition: HTColumn.cxx:83
virtual const std::string & typeName() const =0
virtual const std::string & indexLabel() const
Definition: HTColumn.cxx:122
virtual const std::string & block() const
Definition: HTColumn.cxx:116
virtual const std::string & label() const
Definition: HTColumn.cxx:110