%%
%% This is file `tikz-timing-columntype.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tikz-timing.dtx  (with options: `tikz-timing-columntype.sty')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from tikz-timing-columntype.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file tikz-timing.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Copyright (C) 2009-2012 by Martin Scharrer <martin@scharrer-online.de>
%% ----------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Martin Scharrer.
%%
%% This work consists of the files tikz-timing.dtx and tikz-timing.ins
%% and the derived filebase tikz-timing*.sty.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{tikz-timing-columntype}[%
    2017/12/20
    v0.7f
    tikz-timing library for timing cell types]
\RequirePackage{array}

\tikzset{timing/columntype/.code 2 args =
  \newcolumntype{#1}{>{\celltiming}#2<{\endcelltiming}}%
}%
\RequirePackage{pgfopts}
\tikzset{timing/columntype/.cd,
  type/.style 2 args={/tikz/timing/columntype={#1}{#2}},%
  notype/.code={},
  notype/.value forbidden={},
}

\ProcessPgfOptions{/tikz/timing/columntype}
\expandafter\ifx\csname opt@\@currname.\@currext\endcsname\empty
  \tikzset{timing/columntype={T}{l}}%
\fi
\def\celltiming#1\ignorespaces{%
  #1%
  \begin{tikzpicture}[timing/picture,baseline={(0,0)}]
    \def\tikztiming@endhook{\end@celltiming}
    \tikztiming@init
    \let\tikztiming@settings\empty
    \@ifnextchar{[}%
      {\tikztiming@celltiming}%
      {\tikztiming@celltiming[]}%
}
\let\endcelltiming\relax
\def\tikztiming@celltiming[#1]{%
  \ifx\relax#1\relax\else
    \tikztiming@testoptarg#1\relax\relax
  \fi
  \ifx\tikztiming@lastchar\empty
    \def\tikztiming@lastchar{@}%
  \fi
  \expandafter\scope\expandafter[\tikztiming@settings]%
    \begingroup
    \let\unskip\relax
    \let\\\relax
    \tikztiming@parser
}
\def\end@celltiming{%
    \tikzset{timing/before}%
    \tikztiming@str;
    \expandafter\node
    \expandafter[\tikztiming@settings,shape=tikztiming@shape,anchor=origin] at (0,0) {};
    \tikzset{timing/after}%
  \endscope
  \end{tikzpicture}%
}
\endinput
%%
%% End of file `tikz-timing-columntype.sty'.
