Add process functions
flags: revamp
Add entree class
entree: add type function

Move type enum out of entree.
Use static_cast.
entree: tweaks