I'm sure that the solution to my problem involves typemaps...but my typemap knowledge is limited.

In the C++ code:
typedef enum { Injector=0, NorthLinac, SouthLinac, BldCount } BldID;

....

//This subroutine will assign the BldID value to the argument as output.
int RfName(const char *, BldID &, unsigned &, unsigned &)

When I try to call the subroutine in perl, the wrapper code expects an argument of type BldID...

Is this an example of where an "argout" typemap should be used? 

If anyone can help me get started with this, it would be greatly appreciated.

Michele Joyce