# Path: dxfgrabber/layers.py
# class LayerTable(Table):
#     name = 'layers'
# 
#     @staticmethod
#     def from_tags(tags):
#         layers = LayerTable()
#         for entrytags in layers.entry_tags(tags):
#             layer = Layer(entrytags)
#             layers._table_entries[layer.name] = layer
#         return layers


from .defaultchunk import iterchunks, DefaultChunk
from .layers import LayerTable
from .styles import StyleTable
from .linetypes import LinetypeTable

# Purpose: handle tables section
# Created: 21.07.2012, taken from my ezdxf project
# Copyright (C) 2012, Manfred Moitzi
# License: MIT License
from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"


TABLENAMES = {
    'layer'       : 'layers',
    'ltype'       : 'linetypes',
    'appid'       : 'appids',
    'dimstyle'    : 'dimstyles',
    'style'       : 'styles',
    'ucs'         : 'ucs',
    'view'        : 'views',
    'vport'       : 'viewports',
    'block_record': 'block_records',
    }

# support for further tables types are possible
TABLESMAP = {

# Path: dxfgrabber/layers.py
# class LayerTable(Table):
#     name = 'layers'
# 
#     @staticmethod
#     def from_tags(tags):
#         layers = LayerTable()
#         for entrytags in layers.entry_tags(tags):
#             layer = Layer(entrytags)
#             layers._table_entries[layer.name] = layer
#         return layers


# Path: dxfgrabber/tablessection.py
from .defaultchunk import iterchunks, DefaultChunk
from .layers import LayerTable
from .styles import StyleTable
from .linetypes import LinetypeTable

# Purpose: handle tables section
# Created: 21.07.2012, taken from my ezdxf project
# Copyright (C) 2012, Manfred Moitzi
# License: MIT License
from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"


TABLENAMES = {
    'layer'       : 'layers',
    'ltype'       : 'linetypes',
    'appid'       : 'appids',
    'dimstyle'    : 'dimstyles',
    'style'       : 'styles',
    'ucs'         : 'ucs',
    'view'        : 'views',
    'vport'       : 'viewports',
    'block_record': 'block_records',
    }

# support for further tables types are possible
TABLESMAP = {

    'LAYER': LayerTable,
