--- /dev/null
+/*\r
+ * \r
+ * Copyright 2001-2005 The Ant-Contrib project\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package net.sf.antcontrib.cpptasks;\r
+\r
+import net.sf.antcontrib.cpptasks.compiler.Assembler;\r
+import net.sf.antcontrib.cpptasks.devstudio.DevStudioAssembler;\r
+import net.sf.antcontrib.cpptasks.gcc.GccAssembler;\r
+\r
+import org.apache.tools.ant.types.EnumeratedAttribute;\r
+\r
+/**\r
+ * Enumeration of supported assemblers\r
+ * \r
+ * <table width="100%" border="1"> <thead>Supported assemblers </thead>\r
+ * <tr>\r
+ * <td>gas (default)</td>\r
+ * <td>GAS assembler</td>\r
+ * </tr>\r
+ * <tr>\r
+ * <td>masm</td>\r
+ * <td>MASM assembler</td>\r
+ * </tr>\r
+ * </table>\r
+ * \r
+ */\r
+public class AssemblerEnum extends EnumeratedAttribute {\r
+ private final static ProcessorEnumValue[] assemblers = new ProcessorEnumValue[] {\r
+ new ProcessorEnumValue("gas", GccAssembler.getInstance()),\r
+ new ProcessorEnumValue("masm", DevStudioAssembler\r
+ .getInstance()), };\r
+\r
+ public Assembler getAssembler() {\r
+ return (Assembler) assemblers[getIndex()].getProcessor();\r
+ }\r
+\r
+ public String[] getValues() {\r
+ return ProcessorEnumValue.getValues(assemblers);\r
+ }\r
+}
\ No newline at end of file