/* TextGrid_def.h */
/* Paul Boersma, March 7, 1997 */

#define ooSTRUCT TextPoint
oo_DEFINE_CLASS (TextPoint, AnyPoint)

	oo_STRING (mark)

	/* 'after' was a temporary attribute (19970211-19970307). */
	#if oo_READING_ASCII
		if (Thing_version == 1) (void) ascgets2 (f);
	#elif oo_READING_BINARY
		if (Thing_version == 1) (void) bingets2 (f);
	#endif

oo_END_CLASS (TextPoint)
#undef ooSTRUCT

#define ooSTRUCT TextInterval
oo_DEFINE_CLASS (TextInterval, Function)

	oo_STRING (text)

oo_END_CLASS (TextInterval)
#undef ooSTRUCT

#define ooSTRUCT TextTier
oo_DEFINE_CLASS (TextTier, Function)

	oo_COLLECTION (SortedSetOfDouble, points, TextPoint)

oo_END_CLASS (TextTier)
#undef ooSTRUCT

#define ooSTRUCT IntervalTier
oo_DEFINE_CLASS (IntervalTier, Function)

	oo_COLLECTION (SortedSetOfDouble, intervals, TextInterval)

oo_END_CLASS (IntervalTier)
#undef ooSTRUCT

#define ooSTRUCT TextGrid
oo_DEFINE_CLASS (TextGrid, Function)

	oo_OBJECT (Ordered, tiers)   /* TextTier and IntervalTier objects */

oo_END_CLASS (TextGrid)
#undef ooSTRUCT

/* End of file TextGrid_def.h */
