Reading bool or enum attributes in C++

My problem seems to be simple, but I could not find or figure out the right
I need to read a value of a bool attribute. The attribute value is defined
enum {false, true},
so I define

I try read its value