// @(#)root/core/utils:$Id: ClassSelectionRule.cxx 41697 2011-11-01 21:03:41Z pcanal $ // Author: Velislava Spasova September 2010 /************************************************************************* * Copyright (C) 1995-2011, Rene Brun, Fons Rademakers and al. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ ////////////////////////////////////////////////////////////////////////// // // // ClassSelection // // // ////////////////////////////////////////////////////////////////////////// #include "ClassSelectionRule.h" #include void ClassSelectionRule::AddFieldSelectionRule(const VariableSelectionRule& field) { fFieldSelectionRules.emplace_back(field); } bool ClassSelectionRule::HasFieldSelectionRules() const { return !fFieldSelectionRules.empty(); } //const std::list& ClassSelectionRule::GetFieldSelectionRules() const std::list& ClassSelectionRule::GetFieldSelectionRules() const { return fFieldSelectionRules; } void ClassSelectionRule::AddMethodSelectionRule(const FunctionSelectionRule& method) { fMethodSelectionRules.emplace_back(method); } bool ClassSelectionRule::HasMethodSelectionRules() const { return !fMethodSelectionRules.empty(); } void ClassSelectionRule::Print(std::ostream &out) const { out<<"\t\tSelected (line "<< GetLineNumber() <<"): "; switch(GetSelected()){ case BaseSelectionRule::kYes: out<<"Yes"< fields = GetFieldSelectionRules(); std::list::iterator fit = fields.begin(); int j = 0; for (; fit != fields.end(); ++fit, ++j) { out<<"\t\tField "< methods = GetMethodSelectionRules(); std::list::iterator mit = methods.begin(); int k = 0; for (; mit != methods.end(); ++mit, ++k) { out<<"\t\tMethod "<& ClassSelectionRule::GetMethodSelectionRules() const std::list& ClassSelectionRule::GetMethodSelectionRules() const { return fMethodSelectionRules; } bool ClassSelectionRule::IsInheritable() const { return fIsInheritable; } void ClassSelectionRule::SetInheritable(bool inherit) { fIsInheritable = inherit; } bool ClassSelectionRule::RequestStreamerInfo() const { return fRequestStreamerInfo; } void ClassSelectionRule::SetRequestStreamerInfo(bool pl) { fRequestStreamerInfo = pl; } bool ClassSelectionRule::RequestNoStreamer() const { return fRequestNoStreamer; } void ClassSelectionRule::SetRequestNoStreamer(bool mn) { fRequestNoStreamer = mn; } bool ClassSelectionRule::RequestNoInputOperator() const { return fRequestNoInputOperator; } void ClassSelectionRule::SetRequestNoInputOperator(bool excl) { fRequestNoInputOperator = excl; } void ClassSelectionRule::SetRequestOnlyTClass(bool value) { fRequestOnlyTClass = value; } void ClassSelectionRule::SetRequestProtected(bool value) { fRequestProtected = value; } void ClassSelectionRule::SetRequestPrivate(bool value) { fRequestPrivate = value; } void ClassSelectionRule::SetRequestedVersionNumber(int version) { fRequestedVersionNumber = version; } bool ClassSelectionRule::RequestOnlyTClass() const { return fRequestOnlyTClass; } bool ClassSelectionRule::RequestProtected() const { return fRequestProtected; } bool ClassSelectionRule::RequestPrivate() const { return fRequestPrivate; } int ClassSelectionRule::RequestedVersionNumber() const { return fRequestedVersionNumber; }