summaryrefslogtreecommitdiff
path: root/M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl')
-rw-r--r--M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl38
1 files changed, 0 insertions, 38 deletions
diff --git a/M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl b/M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl
deleted file mode 100644
index b3b6d93f8a..0000000000
--- a/M4-RCs/qpid/dotnet/client-010/gentool/Enum.tpl
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-namespace org.apache.qpid.transport
-{
-${
-from genutil import *
-
-vtype = jtype(resolve_type(type))
-
-out(" public enum $name : $vtype")
-
-choices = [(scream(ch["@name"]), "= %s" % (ch["@value"]))
- for ch in type.query["enum/choice"]]
-}
- {
- $(",\n ".join(["%s%s" % ch for ch in choices]))
- }
-
-${
-
-out(" public struct $name")
-out("Getter")
-}
- {
- public static $name get($vtype value)
- {
- switch (value)
- {
-${
-choices = [(scream(ch["@name"]), "%s" % (ch["@value"]))
- for ch in type.query["enum/choice"]]
-
-for ch, value in choices:
- out(' case $value: return $name.$ch;\n')
-} default: throw new Exception("no such value: " + value);
- }
- }
- }
-}