summaryrefslogtreecommitdiffstats
path: root/akregator/src/mk4storage/metakit/src/field.inl
blob: 823e626e314dff1ffa28e1e8935b2d8ba2b1d54c (plain)
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
// field.inl --
// $Id$
// This is part of Metakit, the homepage is http://www.equi4.com/metakit/

/** @file
 * Inlined members of the field class
 */

d4_inline bool c4_Field::IsRepeating() const
{
  return _type == 'V';
}

d4_inline int c4_Field::NumSubFields() const
{
  return _indirect->_subFields.GetSize();
}

d4_inline c4_Field& c4_Field::SubField(int index_) const
{
  return *(c4_Field*) _indirect->_subFields.GetAt(index_);
}

d4_inline const c4_String& c4_Field::Name() const
{
  return _name;
}
  
d4_inline char c4_Field::OrigType() const
{
  return _type;
}
  
d4_inline char c4_Field::Type() const
{
  return _type == 'M' ? 'B' : _type;
}