// Created with MonoDevelop
//
//    Copyright (C) 2009 Hiperscan GmbH Dresden, Germany
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.



using System;
using System.Collections.Generic;


namespace Hiperscan.FileIO
{

    public static partial class CSV
    {
        public class AddData : System.IComparable<AddData>
        {
            private List<uint> data;
            private DateTime date_time;
            private string serial;

            internal AddData()
            {
                this.data = new List<uint>();
            }

            public int CompareTo(AddData add_data)
            {
                if (add_data == null)
                    return 1;

                return this.DateTime.CompareTo(add_data.DateTime);
            }

            public List<uint> Data
            {
                get { return this.data; }
                set { this.data = value; }
            }

            public DateTime DateTime
            {
                get { return this.date_time; }
                set { this.date_time = value; }
            }

            public string Serial
            {
                get { return this.serial; }
                set { this.serial = value; }
            }
        }
    }
}