How to access defines and enums in a convenient way?