Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63575 sec.)

We're Hiring!