error: expected constructor, destructor, or type conversion before 'class'

Next time you post, use CTRL-T to autoformat the code and make it easier to read.

I think you may just need // before AEID right at the top to make it a comment line.