Changeset 30


Ignore:
Timestamp:
03/04/13 11:39:53 (11 years ago)
Author:
lucsch
Message:

Updating tutorial

Location:
trunk/tutorial
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/model_tutorial.tex

    r27 r30  
    175175\end{figure} 
    176176 
     177\section{Running TmDmCreator} 
     178 
     179TmDmCreator is a command-line utility. As an input, it takes the 3 files described in details above (base structure.sql, user\_structure.sql, user\_content.txt) and produces a resulting SQL file. Its behavior may be controlled using different parameters described bellow (see figure~\ref{fig:command-line-output}). 
     180 
     181 
     182\subsection{Optional parameters} 
     183\begin{description*} 
     184  \item [--verbose] Be more verbose, specifically when an error occur.  
     185  \item [--toolmap] Write output directly into a ToolMap project instead of a SQL file (not implemented actually).  
     186  \item [--overwrite] when specified, the output file will be erased if existing.  
     187  \item [--language =<num>] specify the language column to use. Column numbering starts at 0. This option allows multilingual support. 
     188\end{description*} 
     189 
     190\subsection{Mandatory parameters} 
     191\begin{description*} 
     192  \item [base structure sql file] base\_structure.sql file name 
     193  \item [user structure sql file] user\_structure file name 
     194  \item [user content txt file] user\_content.txt file name 
     195  \item [result file] either a sql file name for SQL output or a directory name for a ToolMap output. 
     196\end{description*} 
     197 
     198\subsection{Sample} 
     199A typical TmDmCreator command like will look like the following:  
     200 
     201\crealplisting{bash} 
     202\begin{lstlisting} 
     203TmDmCreator --verbose --language=0 base_structure.sql user_structure.sql user_content.txt result.sql 
     204\end{lstlisting} 
     205 
     206\begin{figure} [htbp] 
     207        \centering 
     208    \includegraphics[width=1\textwidth]{img/command-line-tmdmcreator.png} 
     209    \caption{Command line output from TmDmCreator} 
     210    \label{fig:command-line-output} 
     211\end{figure} 
     212 
     213 
    177214 
    178215 
Note: See TracChangeset for help on using the changeset viewer.