enumerated types and rootcint

Terrence Brannon (brannon@quake.usc.edu)
22 Jun 1997 15:31:56 -0700


In the following header file:

#ifndef __CINT__
#include "Parse.h"
#include <xview/xview.h>
#include <xview/panel.h>
#include "Drag.h"
#include "ROI_Drag.h"
#include "Magnify_Drag.h"
#else
struct Menu;
class ROI_Drag;
class ROI;
class Parse;
class Magnify_Drag;
class Drag;
struct Panel_item;
struct Xv_window;
struct Xv_opaque;
struct Window;
class String
enum result_state; // ?????????????????
#endif

enum result_state {UNDISPLAYED, ACTIVE_SOURCE, ACTIVE_RESULT, ARCHIVED};

It seems bizarre that I must have the line "enum result_state;"

If I don't have it, then when rootcinting the class definition:

class Result {
...
result_state state;

}

results in rootcint saying:

Error: No symbol result_statestate in current scope FILE:Result.h LINE:61

-- 
o============o  Sending unsolicited commercial e-mail (UCE)  to this address
 Legal Notice   is indication of your consent to pay me $120/hour for 1 hour
o============o  minimum for professional proofreading & technical assessment.
  Terrence Brannon * brannon@quake.usc.edu * http://quake.usc.edu/~brannon