public AmqpMethod(XmlNode n)
     : base(n)
 {
     m_Fields = new List <AmqpField>();
     foreach (XmlNode f in n.SelectNodes("field"))
     {
         m_Fields.Add(new AmqpField(f));
     }
     m_ResponseMethods = new List <string>();
     foreach (XmlNode r in n.SelectNodes("response"))
     {
         m_ResponseMethods.Add(Apigen.GetString(r, "@name"));
     }
 }
Example #2
0
        ///////////////////////////////////////////////////////////////////////////
        // Entry point

        public static void Main(string[] args) {
            Apigen instance = new Apigen(new ArrayList(args));
            instance.Generate();
        }
Example #3
0
 public string GetString(string path, string d)
 {
     return(Apigen.GetString(m_node, path, d));
 }
Example #4
0
 public int GetInt(string path)
 {
     return(Apigen.GetInt(m_node, path));
 }
Example #5
0
        ///////////////////////////////////////////////////////////////////////////
        // Entry point

        public static void Main(string[] args)
        {
            Apigen instance = new Apigen(new ArrayList(args));

            instance.Generate();
        }