using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MKVTest
{
    class SerializeMkvInfo
    {

        public string Serialize(string filePath)
        {
            var file = File.ReadAllLines(filePath);
            var depth = 0;

            foreach (var line in file)
            {
                
            }
        }

        private string 

        private int GetDepth(string line)
        {
            var depth = -1;

            for (var i = 0; i < line.Length; i++)
            {
                if (char.IsPunctuation(line[i]) || char.IsWhiteSpace(line[i]))
                {
                    depth++;
                }
                else
                {
                    break;
                }
            }

            return depth;
        }

        private bool IsClusterHead(string data)
        {
            var isClusterHeader = false;

            switch (data)
            {
                case "EBML head":

                    break;
                case "Chapters":

                    break;
                case "Segment":

                    break;
                case "Segment information":

                    break;
                case "Segment tracks":

                    break;
                case "A track":

                    break;
                case "Video track":

                    break;
                case "Audio track":

                    break;
            }

            return isClusterHeader;
        }
    }
}
