Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ClassSelectionRule.cxx
Go to the documentation of this file.
1// @(#)root/core/utils:$Id: ClassSelectionRule.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// ClassSelection //
15// //
16//////////////////////////////////////////////////////////////////////////
17
18#include "ClassSelectionRule.h"
19#include <iostream>
20
25
30
31//const std::list<VariableSelectionRule>& ClassSelectionRule::GetFieldSelectionRules()
32const std::list<VariableSelectionRule>& ClassSelectionRule::GetFieldSelectionRules() const
33{
35}
36
41
46
47void ClassSelectionRule::Print(std::ostream &out) const
48{
49 out<<"\t\tSelected (line "<< GetLineNumber() <<"): ";
50 switch(GetSelected()){
51 case BaseSelectionRule::kYes: out<<"Yes"<<std::endl;
52 break;
53 case BaseSelectionRule::kNo: out<<"No"<<std::endl;
54 break;
55 case BaseSelectionRule::kDontCare: out<<"Don't Care"<<std::endl;
56 break;
57 default: out<<"Unspecified"<<std::endl;
58 }
59 out<<"\t\tAttributes: "<<std::endl;
60 PrintAttributes(out,2);
61
63 //out<<"\t\tHas field entries"<<std::endl;
64 std::list<VariableSelectionRule> fields = GetFieldSelectionRules();
65 std::list<VariableSelectionRule>::iterator fit = fields.begin();
66 int j = 0;
67
68 for (; fit != fields.end(); ++fit, ++j)
69 {
70 out<<"\t\tField "<<j<<":"<<std::endl;
71 out<<*fit;
72 }
73 }
74 else {
75 out<<"\t\tNo field sel rules"<<std::endl;
76 }
78 //out<<"\t\tHas method entries"<<std::endl;
79 std::list<FunctionSelectionRule> methods = GetMethodSelectionRules();
80 std::list<FunctionSelectionRule>::iterator mit = methods.begin();
81 int k = 0;
82
83 for (; mit != methods.end(); ++mit, ++k)
84 {
85 out<<"\t\tMethod "<<k<<":"<<std::endl;
86 out<<*mit;
87 }
88 }
89 else {
90 out<<"\t\tNo method sel rules"<<std::endl;
91 }
92}
93
94//const std::list<FunctionSelectionRule>& ClassSelectionRule::GetMethodSelectionRules()
95const std::list<FunctionSelectionRule>& ClassSelectionRule::GetMethodSelectionRules() const
96{
98}
99
101{
102 return fIsInheritable;
103}
104
106{
107 fIsInheritable = inherit;
108}
109
114
119
124
129
134
139
141{
142 fRequestOnlyTClass = value;
143}
144
146{
147 fRequestProtected = value;
148}
149
151{
152 fRequestPrivate = value;
153}
154
159
161{
162 fRequestedRNTupleSerializationMode = serializationMode;
163}
164
165void ClassSelectionRule::SetRequestedRNTupleSoARecord(const std::string &recordName)
166{
167 fRequestedRNTupleSoARecord = recordName;
168}
169
174
179
181{
182 return fRequestPrivate;
183}
184
189
194
196{
198}
VariableSelectionRule FunctionSelectionRule
long GetLineNumber() const
ESelect GetSelected() const
void PrintAttributes(int level) const
void SetRequestedRNTupleSerializationMode(int serializationMode)
void SetInheritable(bool inherit)
void SetRequestNoInputOperator(bool excl)
int RequestedRNTupleSerializationMode() const
bool HasFieldSelectionRules() const
const std::list< FunctionSelectionRule > & GetMethodSelectionRules() const
bool RequestNoInputOperator() const
void SetRequestProtected(bool val)
void SetRequestedRNTupleSoARecord(const std::string &recordName)
void AddFieldSelectionRule(const VariableSelectionRule &field)
std::list< FunctionSelectionRule > fMethodSelectionRules
std::string fRequestedRNTupleSoARecord
void SetRequestedVersionNumber(int version)
const std::list< VariableSelectionRule > & GetFieldSelectionRules() const
void SetRequestPrivate(bool val)
void Print(std::ostream &out) const final
bool HasMethodSelectionRules() const
const std::string & RequestedRNTupleSoARecord() const
void AddMethodSelectionRule(const FunctionSelectionRule &method)
void SetRequestNoStreamer(bool noStreamer)
void SetRequestOnlyTClass(bool val)
std::list< VariableSelectionRule > fFieldSelectionRules
void SetRequestStreamerInfo(bool needStreamerInfo)