PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/glib/library/utilities/g_option_string_entry.e

http://github.com/tybor/Liberty
Specman e | 57 lines | 42 code | 12 blank | 3 comment | 2 complexity | 141af0c62541c7f6bdf24bfd6d9ea6b5 MD5 | raw file
 1indexing
 2	description: "."
 3	copyright: "[
 4					Copyright (C) 2007 Paolo Redaelli, Glib developers
 5					
 6					This library is free software; you can redistribute it and/or
 7					modify it under the terms of the GNU Lesser General Public License
 8					as published by the Free Software Foundation; either version 2.1 of
 9					the License, or (at your option) any later version.
10					
11					This library is distributed in the hopeOA that it will be useful, but
12					WITHOUT ANY WARRANTY; without even the implied warranty of
13					MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14					Lesser General Public License for more details.
15
16					You should have received a copy of the GNU Lesser General Public
17					License along with this library; if not, write to the Free Software
18					Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19					02110-1301 USA
20			]"
21
22class G_OPTION_STRING_ENTRY
23	-- A string G_OPTION_ENTRY.
24
25inherit 
26	G_OPTION_ENTRY redefine make, fill_tagged_out_memory end 
27
28	-- TODO: REFERENCE[STRING]
29
30creation make
31
32feature
33	make (a_long_name: STRING; a_short_name: CHARACTER; a_description: STRING) is
34		local t: like argument_type
35		do
36			not_yet_implemented
37			Precursor (a_long_name,a_short_name, a_description)
38			-- TODO: string arg type seems to be missing in the enum wrapper! goption_entry_struct_set_arg(handle, t.g_option_arg_string)
39			create item.make_empty
40			goption_entry_struct_set_arg_data(handle, item.to_external)
41		end
42
43feature -- Queries
44	item: STRING
45
46	set_item (a_value: like item) is
47		do
48			item.copy(a_value)
49		end
50
51	fill_tagged_out_memory is
52		do
53			Precursor
54			tagged_out_memory.append(item)
55		end
56end -- class G_OPTION_STRING_ENTRY
57