ROOT
6.18/05
Reference Guide
core
dictgen
src
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
18
#include "
VariableSelectionRule.h
"
19
#include <iostream>
20
21
void
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
}
VariableSelectionRule.h
BaseSelectionRule::kDontCare
@ kDontCare
Definition:
BaseSelectionRule.h:47
BaseSelectionRule::kYes
@ kYes
Definition:
BaseSelectionRule.h:45
BaseSelectionRule::kNo
@ kNo
Definition:
BaseSelectionRule.h:46
BaseSelectionRule::GetSelected
ESelect GetSelected() const
Definition:
BaseSelectionRule.cxx:103
BaseSelectionRule::PrintAttributes
void PrintAttributes(int level) const
Definition:
BaseSelectionRule.cxx:178
VariableSelectionRule::Print
void Print(std::ostream &out) const
Definition:
VariableSelectionRule.cxx:21