\section{tclpkg/tcldot/tcldot-\/util.c File Reference}
\label{tcldot-util_8c}\index{tclpkg/tcldot/tcldot-\/util.\-c@{tclpkg/tcldot/tcldot-\/util.\-c}}
{\ttfamily \#include \char`\"{}tcldot.\-h\char`\"{}}\\*
Include dependency graph for tcldot-\/util.c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tcldot-util_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
size\-\_\-t {\bf Tcldot\-\_\-string\-\_\-writer} ({\bf G\-V\-J\-\_\-t} $\ast$job, const char $\ast${\bf s}, size\-\_\-t len)
\item 
size\-\_\-t {\bf Tcldot\-\_\-channel\-\_\-writer} ({\bf G\-V\-J\-\_\-t} $\ast$job, const char $\ast${\bf s}, size\-\_\-t len)
\item 
{\bf Agraph\-\_\-t} $\ast$ {\bf cmd2g} (char $\ast$cmd)
\item 
{\bf Agnode\-\_\-t} $\ast$ {\bf cmd2n} (char $\ast$cmd)
\item 
{\bf Agedge\-\_\-t} $\ast$ {\bf cmd2e} (char $\ast$cmd)
\item 
char $\ast$ {\bf obj2cmd} (void $\ast$obj)
\item 
void {\bf delete\-Edge} ({\bf gctx\-\_\-t} $\ast$gctx, {\bf Agraph\-\_\-t} $\ast$g, {\bf Agedge\-\_\-t} $\ast$e)
\item 
void {\bf delete\-Node} ({\bf gctx\-\_\-t} $\ast$gctx, {\bf Agraph\-\_\-t} $\ast$g, {\bf Agnode\-\_\-t} $\ast$n)
\item 
void {\bf delete\-Graph} ({\bf gctx\-\_\-t} $\ast$gctx, {\bf Agraph\-\_\-t} $\ast$g)
\item 
void {\bf setgraphattributes} ({\bf Agraph\-\_\-t} $\ast$g, char $\ast$argv[$\,$], {\bf int} argc)
\item 
void {\bf setedgeattributes} ({\bf Agraph\-\_\-t} $\ast$g, {\bf Agedge\-\_\-t} $\ast$e, char $\ast$argv[$\,$], {\bf int} argc)
\item 
void {\bf setnodeattributes} ({\bf Agraph\-\_\-t} $\ast$g, {\bf Agnode\-\_\-t} $\ast$n, char $\ast$argv[$\,$], {\bf int} argc)
\item 
void {\bf list\-Graph\-Attrs} (Tcl\-\_\-\-Interp $\ast$interp, {\bf Agraph\-\_\-t} $\ast$g)
\item 
void {\bf list\-Node\-Attrs} (Tcl\-\_\-\-Interp $\ast$interp, {\bf Agraph\-\_\-t} $\ast$g)
\item 
void {\bf list\-Edge\-Attrs} (Tcl\-\_\-\-Interp $\ast$interp, {\bf Agraph\-\_\-t} $\ast$g)
\item 
void {\bf tcldot\-\_\-layout} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf Agraph\-\_\-t} $\ast$g, char $\ast$engine)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!cmd2e@{cmd2e}}
\index{cmd2e@{cmd2e}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{cmd2e}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Agedge\-\_\-t}$\ast$ cmd2e (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{cmd}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a56b7b73f9e80012ed3bd3895d0f912ea}


Definition at line 44 of file tcldot-\/util.\-c.



References N\-U\-L\-L.



Referenced by edgecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!cmd2g@{cmd2g}}
\index{cmd2g@{cmd2g}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{cmd2g}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Agraph\-\_\-t}$\ast$ cmd2g (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{cmd}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a7c1f0ef745a497a49d8320e2740e9b16}


Definition at line 30 of file tcldot-\/util.\-c.



References N\-U\-L\-L.



Referenced by graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!cmd2n@{cmd2n}}
\index{cmd2n@{cmd2n}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{cmd2n}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Agnode\-\_\-t}$\ast$ cmd2n (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{cmd}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_aa016f29885e2413f8f7ab28c3c759a52}


Definition at line 37 of file tcldot-\/util.\-c.



References N\-U\-L\-L.



Referenced by graphcmd(), and nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!delete\-Edge@{delete\-Edge}}
\index{delete\-Edge@{delete\-Edge}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{delete\-Edge}]{\setlength{\rightskip}{0pt plus 5cm}void delete\-Edge (
\begin{DoxyParamCaption}
\item[{{\bf gctx\-\_\-t} $\ast$}]{gctx, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf Agedge\-\_\-t} $\ast$}]{e}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a42992237e8576dd235f5bf5298b1921a}


Definition at line 68 of file tcldot-\/util.\-c.



References agdelete(), gctx\-\_\-t\-::g, gctx\-\_\-t\-::ictx, ictx\-\_\-t\-::interp, and obj2cmd().



Referenced by edgecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!delete\-Graph@{delete\-Graph}}
\index{delete\-Graph@{delete\-Graph}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{delete\-Graph}]{\setlength{\rightskip}{0pt plus 5cm}void delete\-Graph (
\begin{DoxyParamCaption}
\item[{{\bf gctx\-\_\-t} $\ast$}]{gctx, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a6d59a7dc0f8538c7919764674e557c55}


Definition at line 108 of file tcldot-\/util.\-c.



References agclose(), agdelsubg(), agfstsubg(), agnxtsubg(), agroot(), delete\-Graph(), gctx\-\_\-t\-::ictx, ictx\-\_\-t\-::interp, and obj2cmd().



Referenced by delete\-Graph(), and graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!delete\-Node@{delete\-Node}}
\index{delete\-Node@{delete\-Node}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{delete\-Node}]{\setlength{\rightskip}{0pt plus 5cm}void delete\-Node (
\begin{DoxyParamCaption}
\item[{{\bf gctx\-\_\-t} $\ast$}]{gctx, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a4d7de58d588e56e69d8219ab4b5cee71}


Definition at line 87 of file tcldot-\/util.\-c.



References agdelete(), gctx\-\_\-t\-::g, gctx\-\_\-t\-::ictx, ictx\-\_\-t\-::interp, and obj2cmd().



Referenced by nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!list\-Edge\-Attrs@{list\-Edge\-Attrs}}
\index{list\-Edge\-Attrs@{list\-Edge\-Attrs}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{list\-Edge\-Attrs}]{\setlength{\rightskip}{0pt plus 5cm}void list\-Edge\-Attrs (
\begin{DoxyParamCaption}
\item[{Tcl\-\_\-\-Interp $\ast$}]{interp, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a7e64a396d13d7bc9778111348b163cfd}


Definition at line 210 of file tcldot-\/util.\-c.



References A\-G\-E\-D\-G\-E, agnxtattr(), Agsym\-\_\-s\-::name, and N\-U\-L\-L.



Referenced by edgecmd(), and graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!list\-Graph\-Attrs@{list\-Graph\-Attrs}}
\index{list\-Graph\-Attrs@{list\-Graph\-Attrs}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{list\-Graph\-Attrs}]{\setlength{\rightskip}{0pt plus 5cm}void list\-Graph\-Attrs (
\begin{DoxyParamCaption}
\item[{Tcl\-\_\-\-Interp $\ast$}]{interp, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a3b90effb0394e1c5e0b4f2d5ffebd7be}


Definition at line 196 of file tcldot-\/util.\-c.



References agnxtattr(), A\-G\-R\-A\-P\-H, Agsym\-\_\-s\-::name, and N\-U\-L\-L.



Referenced by graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!list\-Node\-Attrs@{list\-Node\-Attrs}}
\index{list\-Node\-Attrs@{list\-Node\-Attrs}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{list\-Node\-Attrs}]{\setlength{\rightskip}{0pt plus 5cm}void list\-Node\-Attrs (
\begin{DoxyParamCaption}
\item[{Tcl\-\_\-\-Interp $\ast$}]{interp, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a349e7003714bf874646adeae4f206c40}


Definition at line 203 of file tcldot-\/util.\-c.



References A\-G\-N\-O\-D\-E, agnxtattr(), Agsym\-\_\-s\-::name, and N\-U\-L\-L.



Referenced by graphcmd(), and nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!obj2cmd@{obj2cmd}}
\index{obj2cmd@{obj2cmd}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{obj2cmd}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ obj2cmd (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a7aaca60f07a3c3e2d7bc7e7a75fbe2f2}


Definition at line 55 of file tcldot-\/util.\-c.



References A\-G\-I\-N\-E\-D\-G\-E, A\-G\-N\-O\-D\-E, A\-G\-O\-U\-T\-E\-D\-G\-E, A\-G\-R\-A\-P\-H, and A\-G\-T\-Y\-P\-E.



Referenced by delete\-Edge(), delete\-Graph(), delete\-Node(), edgecmd(), graphcmd(), and nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!setedgeattributes@{setedgeattributes}}
\index{setedgeattributes@{setedgeattributes}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{setedgeattributes}]{\setlength{\rightskip}{0pt plus 5cm}void setedgeattributes (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf Agedge\-\_\-t} $\ast$}]{e, }
\item[{char $\ast$}]{argv[$\,$], }
\item[{{\bf int}}]{argc}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_aad503e154ae910070bbeeb62bae8b850}


Definition at line 155 of file tcldot-\/util.\-c.



References agattr(), A\-G\-E\-D\-G\-E, agfindedgeattr, and agroot().



Referenced by edgecmd(), graphcmd(), and nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!setgraphattributes@{setgraphattributes}}
\index{setgraphattributes@{setgraphattributes}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{setgraphattributes}]{\setlength{\rightskip}{0pt plus 5cm}void setgraphattributes (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{char $\ast$}]{argv[$\,$], }
\item[{{\bf int}}]{argc}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a323809480a8479890cc4ea56aca66587}


Definition at line 143 of file tcldot-\/util.\-c.



References agattr(), agfindgraphattr, A\-G\-R\-A\-P\-H, and agroot().



Referenced by graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!setnodeattributes@{setnodeattributes}}
\index{setnodeattributes@{setnodeattributes}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{setnodeattributes}]{\setlength{\rightskip}{0pt plus 5cm}void setnodeattributes (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n, }
\item[{char $\ast$}]{argv[$\,$], }
\item[{{\bf int}}]{argc}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a986ec4ea85b90c51a67f62f6b95b344a}


Definition at line 178 of file tcldot-\/util.\-c.



References agattr(), agfindnodeattr, A\-G\-N\-O\-D\-E, and agroot().



Referenced by graphcmd(), and nodecmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!Tcldot\-\_\-channel\-\_\-writer@{Tcldot\-\_\-channel\-\_\-writer}}
\index{Tcldot\-\_\-channel\-\_\-writer@{Tcldot\-\_\-channel\-\_\-writer}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{Tcldot\-\_\-channel\-\_\-writer}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t Tcldot\-\_\-channel\-\_\-writer (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-J\-\_\-t} $\ast$}]{job, }
\item[{const char $\ast$}]{s, }
\item[{size\-\_\-t}]{len}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a59108dbb8508d66ed4e6a48d3687c329}


Definition at line 23 of file tcldot-\/util.\-c.



References G\-V\-J\-\_\-s\-::output\-\_\-file.



Referenced by graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!tcldot\-\_\-layout@{tcldot\-\_\-layout}}
\index{tcldot\-\_\-layout@{tcldot\-\_\-layout}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{tcldot\-\_\-layout}]{\setlength{\rightskip}{0pt plus 5cm}void tcldot\-\_\-layout (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{char $\ast$}]{engine}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_ab76b9c9e080d6e736cf871841ff82b51}


Definition at line 218 of file tcldot-\/util.\-c.



References agattr(), agisdirected(), A\-G\-R\-A\-P\-H, agxset(), G\-D\-\_\-bb, G\-D\-\_\-drawing, gv\-Free\-Layout(), gvlayout\-\_\-select(), gv\-Layout\-Jobs(), gvplugin\-\_\-list(), N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, Nop, N\-U\-L\-L, P\-O\-I\-N\-T\-S\-\_\-\-P\-E\-R\-\_\-\-I\-N\-C\-H, P\-Sinputscale, R\-O\-U\-N\-D, and strcasecmp().



Referenced by graphcmd().

\index{tcldot-\/util.\-c@{tcldot-\/util.\-c}!Tcldot\-\_\-string\-\_\-writer@{Tcldot\-\_\-string\-\_\-writer}}
\index{Tcldot\-\_\-string\-\_\-writer@{Tcldot\-\_\-string\-\_\-writer}!tcldot-util.c@{tcldot-\/util.\-c}}
\subsubsection[{Tcldot\-\_\-string\-\_\-writer}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t Tcldot\-\_\-string\-\_\-writer (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-J\-\_\-t} $\ast$}]{job, }
\item[{const char $\ast$}]{s, }
\item[{size\-\_\-t}]{len}
\end{DoxyParamCaption}
)}\label{tcldot-util_8c_a7dca4cf3546cd61f4cc6b700d4b8bae5}


Definition at line 17 of file tcldot-\/util.\-c.



References G\-V\-J\-\_\-s\-::context, and N\-U\-L\-L.



Referenced by graphcmd().

