📦 snake-plissken / cSharpGPX

📄 GPX_Track.cs · 40 lines
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
38
39
40using System;
namespace cSharpGPX
{
	public class GPX_Track
	{
		private GPX_TrackSegment _trackSegment;
		private string _name;
		private int _number;

		public GPX_Track(GPX_TrackSegment trackSegment, string name = "", int number = 0)
		{
			this._trackSegment = trackSegment;
			this._name = name;
			this._number = number;
		}

		public string ToXMLstring()
		{
			return "\r\n\t<trk>" + this._trackSegment.ToXMLstring() + "\r\n\t</trk>";
		}

		public GPX_TrackSegment TrackSegment
		{
			get { return this._trackSegment; }
		}

		public string TrackName
		{
			get { return this._name; }
		}

		public int TrackNumber
		{
			get { return this._number; }
		}


	}
}