File: MethodABIField.cs

package info (click to toggle)
gnome-subtitles 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 103,144 kB
  • sloc: xml: 406,395; cs: 364,495; ansic: 3,104; perl: 1,477; sh: 769; python: 545; javascript: 500; makefile: 49
file content (56 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
namespace GtkSharp.Generation {

	using System;
	using System.Collections;
	using System.IO;
	using System.Xml;
	using System.Collections.Generic;

	public class MethodABIField : StructABIField {
		bool is_valid;
		XmlElement Elem;


		public MethodABIField (XmlElement elem, ClassBase container_type, string info_name) :
				base (elem, container_type, info_name) {
			Elem = elem;
			is_valid = true;
		}

		public override string CType {
			get {
				return "gpointer";
			}
		}

		public override bool IsCPointer() {
			return true;
		}

		public new string Name {
			get {
				var name = elem.GetAttribute("vm");
				if (name == null || name == "")
					name = elem.GetAttribute("signal_vm");

				return name;
			}
		}

		public override string StudlyName {
			get {
				return Name;
			}
		}

		public override string CName {

			get {
				if (parent_structure_name != null)
					return parent_structure_name + '.' + Name;
				return Name;
			}
		}
	}
}