Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEnumConstant.cxx
Go to the documentation of this file.
1// @(#)root/meta:$Id$
2// Author: Bianca-Cristina Cristescu 10/07/13
3
4/*************************************************************************
5 * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
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/** \class TEnumConstant
13The TEnumConstant class implements the constants of the enum type.
14*/
15
16#include "TEnumConstant.h"
17#include "TEnum.h"
18
19
21
22////////////////////////////////////////////////////////////////////////////////
23/// Constructor of the TEnumConstant.
24/// Takes as parameters DataMemberInfo, value, and enum type.
25
26TEnumConstant::TEnumConstant(DataMemberInfo_t *info, const char* name, Long64_t value, TEnum* type)
27 : TGlobal(info), fEnum(type), fValue(value) {
28 //Set name of constant
29 this->SetName(name);
30
31 // Add the constant to the enum type.
32 type->AddConstant(this);
33}
34
35////////////////////////////////////////////////////////////////////////////////
36///Destructor
37
39{
40}
long long Long64_t
Definition RtypesCore.h:69
#define ClassImp(name)
Definition Rtypes.h:382
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
char name[80]
Definition TGX11.cxx:110
The TEnumConstant class implements the constants of the enum type.
virtual ~TEnumConstant()
Destructor.
The TEnum class implements the enum type.
Definition TEnum.h:33
Global variables class (global variables are obtained from CINT).
Definition TGlobal.h:28
virtual void SetName(const char *name)
Set the name of the TNamed.
Definition TNamed.cxx:140