Revision 747440c86dddc9c54fe454586d833e7fa50c4e1e authored by Fons Rademakers on 24 August 2006, 13:49:54 UTC, committed by Fons Rademakers on 24 August 2006, 13:49:54 UTC
- configure: new option --fail-on-missing, when this is set configure will fail if the files for a requested plugin are not found. Needed for proper Debian install. - many Debian packaging fixes. git-svn-id: http://root.cern.ch/svn/root/trunk@16103 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 5fa8d84
Base.cxx
// @(#)root/reflex:$Name: HEAD $:$Id: Base.cxx,v 1.9 2006/07/04 15:02:55 roiser Exp $
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear in all copies and derivatives.
//
// This software is provided "as is" without express or implied warranty.
#ifndef REFLEX_BUILD
#define REFLEX_BUILD
#endif
#include "Reflex/Base.h"
#include "Class.h"
//-------------------------------------------------------------------------------
ROOT::Reflex::Base::Base( const Type & baseType,
OffsetFunction offsetfp,
unsigned int modifiers )
: fOffsetFP( offsetfp ),
fModifiers( modifiers ),
fBaseType( Type() ),
fBaseClass( 0 ) {
//-------------------------------------------------------------------------------
// Construct the information for a base. The pointer to the base class (type Class)
// is set to 0 initially and set on first access.
fBaseType = baseType;
}
//-------------------------------------------------------------------------------
const ROOT::Reflex::Class * ROOT::Reflex::Base::BaseClass() const {
//-------------------------------------------------------------------------------
// Return the pointer to the base class. Set on first access.
if ( fBaseClass ) return fBaseClass;
if ( fBaseType ) {
fBaseClass = dynamic_cast< const Class * >(fBaseType.ToTypeBase());
return fBaseClass;
}
return 0;
}
//-------------------------------------------------------------------------------
std::string ROOT::Reflex::Base::Name( unsigned int mod ) const {
//-------------------------------------------------------------------------------
// Construct the name of the base. Qualify if requested.
std::string s = "";
if ( 0 != ( mod & ( QUALIFIED | Q ))) {
if ( IsPublic()) { s += "public "; }
if ( IsProtected()) { s += "protected "; }
if ( IsPrivate()) { s += "private "; }
if ( IsVirtual()) { s += "virtual "; }
}
s += fBaseType.Name( mod );
return s;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...