Task #226 (closed)
Opened 18 years ago
Closed 18 years ago
Add Enum(String) constructor to all enums
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | trivial | Milestone: | 3.0-M3 |
Component: | Security | Version: | 3.0-M3 |
Keywords: | enums, codegen, iteration6 | Cc: | cxallan |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
To go along with #145, adding a String constructor would make working with enumerations very easy. #145 will hopefully allow the transparent lookup of enumerations, i.e.
Pixels p = ... ; p.setPixelsType( new PixelsType("int8") );
should automatically look up the realy int8-PixelsType and use that instead.
However, without the String constructor, this would require a temp variable. Eck.
Change History (2)
comment:1 Changed 18 years ago by jmoore
- Keywords iteration6 added
comment:2 Changed 18 years ago by jmoore
- Cc callan added
- Resolution set to fixed
- Status changed from new to closed
r985 provides the Enum(String) constructor for all enums. Chris should be happy.