[omniORB] struct constructor

Matthew Bettencourt matt@ssc.usm.edu
Tue Feb 11 20:07:00 2003


I just figured out that omniORB is critical of invalid enum's.  So, I 
have a structure in an idl file, is there a way to create a constructor 
for this struct so I can set all the val's to values??

Thanks
Matt
Grid.idl
---------------------
enum MaskTypes {MCEL_MASKTYPE_INVALID,MCEL_MASKTYPE_CONST,MCEL_MASKTYPE_VAR,
		MCEL_MASKTYPE_LAST};
struct GridStruct {
...
   MaskTypes mask_type;
...
}


what I want to define is
GridStruct::GridStruct() {
	mask_type = MCEL_MASKTYPE_INVALID;
}

Thanks
Matt