// @(#)root/meta:$Id$ // Author: Bianca-Cristina Cristescu 10/07/13 /************************************************************************* * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ ////////////////////////////////////////////////////////////////////////// // // // The TEnumConstant class implements the constants of the enum type. // // // ////////////////////////////////////////////////////////////////////////// #include "TEnumConstant.h" #include "TEnum.h" ClassImp(TEnumConstant) //______________________________________________________________________________ TEnumConstant::TEnumConstant(DataMemberInfo_t *info, const char* name, Long64_t value, TEnum* type) : TGlobal(info), fEnum(type), fValue(value) { // Constructor of the TEnumConstant. // Takes as parameters DataMemberInfo, value, and enum type. //Set name of constant this->SetName(name); // Add the constant to the enum type. type->AddConstant(this); } //______________________________________________________________________________ TEnumConstant::~TEnumConstant() { //Destructor }