Hi,
Is there a way to map a data type (e.g. int, float, ...) to an arbitrary value, such as an enuermation.
Idealy, what I am going for is a method by which I can supply an enumeration value (or an int) and get back a typename for a particular data type which can be used to create a variable of that type.
For example:
TYPE_MAP(CORBA::tk_float):ataType MyLocalVariable;
MyLocalVariable = 3.4;
Is this, or anything like this possible in C++? (Maybe with macros?)
Regards,
Doug M.
Is there a way to map a data type (e.g. int, float, ...) to an arbitrary value, such as an enuermation.
Idealy, what I am going for is a method by which I can supply an enumeration value (or an int) and get back a typename for a particular data type which can be used to create a variable of that type.
For example:
TYPE_MAP(CORBA::tk_float):ataType MyLocalVariable;
MyLocalVariable = 3.4;
Is this, or anything like this possible in C++? (Maybe with macros?)
Regards,
Doug M.