1// GtkSharp.Generation.ObjectField.cs - autogenerated field glue
2//
3// Copyright (c) 2004 Novell, Inc.
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of version 2 of the GNU General Public
7// License as published by the Free Software Foundation.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public
15// License along with this program; if not, write to the
16// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17// Boston, MA 02111-1307, USA.
18
19
20namespace GtkSharp.Generation {
21
22 using System;
23 using System.Collections;
24 using System.IO;
25 using System.Xml;
26
27 public class ObjectField : FieldBase {
28
29 public ObjectField (XmlElement elem, ClassBase container_type) : base (elem, container_type){
30 if (CType == "char*" || CType == "gchar*")
31 ctype = "const-" + CType;
32 }
33
34 public ObjectField (XmlElement elem, ClassBase container_type, FieldBase abi_field) : base (elem, container_type) {
35 if (CType == "char*" || CType == "gchar*")
36 ctype = "const-" + CType;
37 }
38
39 internal override bool Writable {
40 get {
41 return elem.GetAttributeAsBoolean ("writeable");
42 }
43 }
44
45 protected override string DefaultAccess {
46 get {
47 return "private";
48 }
49 }
50 }
51}
52
53