Subversion Repositories Kolibri OS

Rev

Rev 8490 | Rev 9089 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8490 Rev 8500
Line 5... Line 5...
5
	bool opened;
5
	bool opened;
6
	collection attributes;
6
	collection attributes;
7
	collection values;
7
	collection values;
8
	dword value;
8
	dword value;
9
	bool is();
9
	dword number;
-
 
10
	bool is();
10
	bool parse();
11
	bool parse();
11
	void debug_tag();
12
	void debug_tag();
12
	dword get_next_param();
13
	dword get_next_param();
13
	dword get_value_of();
14
	dword get_value_of();
14
} tag=0;
15
	signed get_number_of();
-
 
16
} tag=0;
15
 
17
 
Line 16... Line 18...
16
bool _tag::is(dword _text) 
18
bool _tag::is(dword _text) 
17
{ 
19
{ 
18
	if ( !strcmp(#name, _text) ) {
20
	if ( !strcmp(#name, _text) ) {
Line 205... Line 207...
205
		value = values.get(pos);
207
		value = values.get(pos);
206
	}
208
	}
207
	return value;
209
	return value;
208
}
210
}
209
>
211
 
-
 
212
signed _tag::get_number_of(dword _attr_name)
-
 
213
{
-
 
214
	if (get_value_of(_attr_name)) {
-
 
215
		number = atoi(tag.value);
-
 
216
	} else {
-
 
217
		number = 0;
-
 
218
	}
-
 
219
	return number;
-
 
220
}
-
 
221
>