Logo ROOT  
Reference Guide
VariableSelectionRule.cxx
Go to the documentation of this file.
1// @(#)root/core/utils:$Id: VariableSelectionRule.cxx 41697 2011-11-01 21:03:41Z pcanal $
2// Author: Velislava Spasova September 2010
3
4/*************************************************************************
5 * Copyright (C) 1995-2011, Rene Brun, Fons Rademakers and al. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12//////////////////////////////////////////////////////////////////////////
13// //
14// VariableSelectionRule //
15// //
16//////////////////////////////////////////////////////////////////////////
17
19#include <iostream>
20
21void VariableSelectionRule::Print(std::ostream &out) const
22{
23 out<<"\t\tSelected: ";
24 switch(GetSelected()){
25 case BaseSelectionRule::kYes: out<<"Yes"<<std::endl;
26 break;
27 case BaseSelectionRule::kNo: out<<"No"<<std::endl;
28 break;
29 case BaseSelectionRule::kDontCare: out<<"Don't Care"<<std::endl;
30 break;
31 default: out<<"Unspecified"<<std::endl;
32 }
33 PrintAttributes(out,3);
34}
ESelect GetSelected() const
void PrintAttributes(int level) const
void Print(std::ostream &out) const final